Tue, 1 May 2012 11:44:27 -0700, /Daivish Shah/:

I have following dependency declared in my UNIT Testing module project.

<dependency>
    <groupId>sample-project-ws</groupId>
    <artifactId>sample-project-ws</artifactId>
    <version>${project.version}</version>
    <type>war</type>
    <scope>test</scope>
</dependency>
[...]

If you control the POM of "sample-project-ws" you could produce additional 'classes' jar artifact:

http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses

which you could then refer to as dependency from other modules:

<dependency>
    <groupId>sample-project-ws</groupId>
    <artifactId>sample-project-ws</artifactId>
    <version>${project.version}</version>
    <classifier>classes</classifier>
    <scope>test</scope>
</dependency>

--
Stanimir

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to