Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Problem with Maven project in Eclipse (Juno)

Hi.
 
The m2e-wtp feature was already installed. Still it's not showing my project when trying to deploy something on an internal Eclipse server. Do I have to configure something to tell Eclipse that this project is a web app? In the pom I have <packaging>war</packaging>.
 
Regards
Bjoern
 
 
Gesendet: Donnerstag, 06. Juni 2013 um 13:01 Uhr
Von: "Fred Bricon" <fbricon@xxxxxxxxx>
An: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Betreff: Re: [m2e-users] Problem with Maven project in Eclipse (Juno)
you need to install https://www.eclipse.org/m2e-wtp/ if you want a seamless integration with WTP server adapters
 
2013/6/6 Hans Wurst <choncha@xxxxxxx>
Hi,
 
thanks for your immediate reply. I did everything you suggested. Deleted the files and reimported the project. Via Run As/Debug As -> Maven Install or Maven build I can execute different maven goals but I can't deploy it on a server. It doesn't seem to be a proper web app and there is no Run As/Debug As -> ... on Server available. What di I have to do to deploy it on the (internal) Eclipse servers?
When I run the command Maven -> Update Project is get the same error (Unsupported IClasspathEntry kind=4) again. What am I missing? Thanks for helping!
 
Regards
Bjoern
 
 
Gesendet: Donnerstag, 06. Juni 2013 um 10:30 Uhr
Von: "Adrien Rivard" <adrien.rivard@xxxxxxxxx>
An: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Betreff: Re: [m2e-users] Problem with Maven project in Eclipse (Juno)
maven-eclipse-plugin (eclipse:eclipse) and m2e are not compatible,you should not use the first one anymore.Remove the project from workspace, delete the .project,.classpath and .settings files and reimport as existing maven project, and it will be better.
 
 
On Thu, Jun 6, 2013 at 10:21 AM, Hans Wurst <choncha@xxxxxxx> wrote:
Hi!
 
I'm new to Maven and web service programming but will have to deal in the future. I have the source code of an web app developed by another company. According to their install instructions I should set up Eclipse with SVN and Maven integration. I get the project into Eclipse by creating a new project from SVN. Then I run mvn eclipse:eclipse from the command line to create the projects settings (with project closed in Eclipse during that operation). After that I open the project again and enable the Maven nature. There I'll get the following error message:
 
An internal error occurred during: "Enabling Maven Dependency Management".
Unsupported IClasspathEntry kind=4
 
The mvn eclipse:eclipse command seems to create a "wrong" .classpath file. One of my collegues was able to get this shitty project working but he isn't sure what trick was doing the magic to get it running. His .classpath file differs a lot from the one that maven creates on my machine. My entries look like:
<classpathentry kind="var" path="M2_REPO/javax/activation/com.springsource.javax.activation/1.1.1/com.springsource.javax.activation-1.1.1.jar" sourcepath="M2_REPO/javax/activation/com.springsource.javax.activation/1.1.1/com.springsource.javax.activation-1.1.1-sources.jar"/>
whereas his are more of this type:
<classpathentry kind="var" path="M2_REPO/javax/activation/com.springsource.javax.activation/1.1.1/com.springsource.javax.activation-1.1.1.jar" sourcepath="M2_REPO/javax/activation/com.springsource.javax.activation/1.1.1/com.springsource.javax.activation-1.1.1-sources.jar">
                <attributes>
                        <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
                </attributes>
        </classpathentry>
This is the only difference I found so far. Cleaning via mvn eclipse:clean is not making any difference. What am I doing wrong?
The code of the other company is a mess. Is there anything I have to consider when creating a Maven project in Eclipse from existing sources? I'm using a Mac (Mountain Lion 10.8.3) with Eclipse Juno (m2e - Maven Integration for Eclipse    1.3.1.20130219-1424    org.eclipse.m2e.feature.feature.group). When I check the Maven version on the command line I get: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100). Java_home is jdk1.7.0_17.jdk in Eclipse and on command line. Help would be really appreciated as I'm struggeling to get this mess working at all. Thanks!
 
regards
Bjoern

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
 
 
 
--
Adrien Rivard

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
 
 
 
--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top