maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asmann, Roland" <Roland.Asm...@adesso.at>
Subject Re: Integration Test Dependency and WAR Packaging
Date Wed, 23 Nov 2011 12:16:41 GMT
Hi Karl Heinz,

Look at the configuration for the WAR-plugin, you can have it create a 
separate JAR for the classes, which you can then use as a dependency.

Roland


On 23.11.2011 13:10, Karl Heinz Marbaise wrote:
> Hi to all,
>
> i have a larger structure of modules which built a multi-module-build which
> contains (an excerpt of my structure) the following two modules where my
> problem is focused on:
>
> root
> +-- mod-war
> +-- mod-it
>
> where the mod-war obviously contains the WAR module with the web-application
> (packaging war) and the mod-it contains the integration tests. So my problem
> is that i can't use a Class which is defined in the mod-war package under
> src/main/java/..../ClassName.java in my Integration test
> (src/test/java/XYZIT.java)....
>
> I already have a dependency to my mod-war to make sure the reactor will
> build the mod-war before mod-it
> ...
>
> Here my snippet from the mod-it POM:
>
> <dependency>
> <groupId>${project.groupId}</groupId>
> <artifactId>mod-war</artifactId>
> <version>${project.version}</version>
> <type>war</type>
> <scope>test</scope>
> </dependency>
>
> So the question is: Does exist a solution? Or do i need to define a separate
> module with my classes which i would like to use in my integration tests and
> in the mod-war ?
>
> Kind regards
> Karl Heinz Marbaise
>
>
> -----
> Kind regards
> Karl Heinz Marbaise
> ----
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Integration-Test-Dependency-and-WAR-Packaging-tp5016434p5016434.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock              T +43 1 2198790-27
Floridsdorfer Hauptstr. 1           F +43 1 2198790-927
A-1210 Wien                         M +43 664 88657566
                                    E roland.asmann@adesso.at
                                    W www.adesso.at

-------------------------------------------------------------
             >>> business. people. technology. <<<
-------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message