facebook

MyEclipse and Maven2

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #309461 Reply

    logixplayer
    Member

    Hi all,

    I am getting some very weird behaviour from maven that I have never seen before. Basicaly I refactored some classes, like util.constants (lower c) to util.Constants (capital C), but when I run the maven build from the cocmmand line (mvn clean install), it builds the war project with util.constants (lower c) I get a classdefnotfoundError (wrong name)!!!
    I mean how is util.constants being referenced when it is not even in my source code base!!
    Is maven caching? I mean how does it know which classes I refactored? This is not allowing me to deploy my web service as I keep getting these errors (others too).

    Any idea on how to resolve this issue???
    Thank you.

    #309470 Reply

    Ram
    Member

    logixplayer,

    I don’t have visibility of your issue.

    Can you please elaborate more?
    Can you copy and paste your installation details. You can get them from – MyEclipse > Installation Summary > Installation Details
    can you copy paste the contents of your log file located at workspace dir > .metadata > .log
    Can you mention the steps you followed to reproduce this issue.

    You can send a mail to support@genuitec.com. Please add ATTN: RAM in the subject and refer to this thread.

    #309476 Reply

    logixplayer
    Member

    hi, here is some more info:

    +++++++++++++++++++++++++++++++++++++++++++++++++
    *** Date:
    Wednesday, June 30, 2010 9:28:31 o’clock AM EDT

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 8.5
    Build id: 8.5-20100319

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 8.5
    Build id: 8.5-20100319

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Users\LogixPlayer\AppData\Local\Genuitec\MyEclipse 8.5\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Users\LogixPlayer\AppData\Local\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
    -startup
    C:\Users\LogixPlayer\AppData\Local\Genuitec\MyEclipse 8.5\../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    -install
    C:/Users/LogixPlayer/AppData/Local/Genuitec/MyEclipse 8.5
    -configuration
    configuration
    -data
    C:\dev\x-wave
    -launcher
    C:\Users\LogixPlayer\AppData\Local\Genuitec\MyEclipse 8.5\myeclipse.exe
    -install
    C:/Users/LogixPlayer/AppData/Local/Genuitec/MyEclipse 8.5
    -configuration
    configuration
    -vm
    C:/Users/LogixPlayer/AppData/Local/Genuitec/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client/jvm.dll

    +++++++++++++++++++++++++++++++++++++++++++++++++

    the log file contents are fairly large….

    let me explain the issue again:

    I am getting some very weird behaviour from maven that I have never seen before. Basicaly I refactored some classes, like util.constants (lower c) to util.Constants (capital C), but when I run the maven build to produce a WAR from the command line (mvn clean install), it builds the war project with util.constants (lower c). Upon further investigation, I looked into the target directory. There are a series of directories that get created: classes maven-archiver surefire-reports test-classes war xyz.war

    When I look into xyz.war it does not contain Constants.class but it contains constants.class! It seems like somehow there is a refactoring issue or maven is just not reading the source code right? BUT the weird this is within the target directory, if I just go straight to “classes” (do not go through the compiled war artifact), I see all the correct classes compiled.

    So basically, when I run my war file in tomcat, I get a classdefnotfoundError (wrong name)!!! I mean how is util.constants being referenced when it is not even in my source code base!! Is maven caching? I mean how does it know which classes I refactored? This is not allowing me to deploy my web service as I keep getting these errors (others too).

    Any idea on how to resolve this issue??? Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: MyEclipse and Maven2

You must be logged in to post in the forum log in