Community
Participate
Working Groups
I have a project which contains a web-project (JSF) and a supplemental project which contains the integration test for the web-project (selenium tests). I've had the problem to use classes within my integration test module from the web-project (src/main/java)...so the solution is to configure the maven-war-plugin like the following: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <attachClasses>true</attachClasses> </configuration> </plugin> which works perfectly on command line (mvn clean verify)... My integration test module has the following dependencies whereas the first one is needed to make sure the reactor-order is correct and the second is needed to have the required classes available. <dependency> <groupId>${project.groupId}</groupId> <artifactId>web-project</artifactId> <version>${project.version}</version> <type>war</type> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>web-project</artifactId> <version>${project.version}</version> <classifier>classes</classifier> <type>jar</type> <scope>test</scope> </dependency> my current problem is if i select to start an integration test via Eclipse i need manually add the web-project as a dependency to get the tests running (TestNG tests). I'm not sure if this is an issue in m2e or in TestNG Eclipse plugin.
I've also given a statement in the testng-user group http://groups.google.com/group/testng-users (described the same)..Cause i'm not really sure who is the destination for that problem.
Maven project model does not have enough metadata to determine contents of attached artifacts in a generic way. Because of this limitation, the only way to support war attached sources is by writing code specific to maven-war-plugin and there are no plans to make maven-war-plugin integration part of m2e core. I suggest you talk to m2eclipse-wtp and/or webby developers to see if they can offer something better.
Moved to https://github.com/eclipse-m2e/m2e-core/issues/