Here's a small example... Check if it works for you, because it 
definitely does for me...

Roland


On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
> Hi,
>
> Asmann, Roland wrote
>  >
>  > If you use 'attachClasses', the JAR should NOT be created in the
>  > lib-folder, but in the target. When using 'archiveClasses' it is created
>  > in the lib-folder.
>
> It is correct that a file artifactid-version-classes.jar is created in the
> target folder (with attachClasses), but that does not contain the classes
> from src/main/java. The documentation says it will put the classes from the
> src/main/webapp/WEB-INF/classes folder into this jar...
>
> The jar which is created in the
> target/artifactid-version/WEB-INF/lib/artifact-version.jar contains the
> classes from src/main/java....but can't be correctly be used as a
> dependency....it will produce a problems during the build, cause it will try
> to download that jar from the repo-manager...which does not exists...
>
>
> Asmann, Roland wrote
>  >
>  > A dependency on that JAR should be on a JAR (not the WAR) and add
>  > classifier 'classes'.
>  >
> Will not work based on the above description....
>
> I've got the impression this looks like a bug in the Maven-War-Plugin....or
> a misunderstanding on my site...
>
> 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-tp5016434p5017124.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

-- 
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 [email protected]
                                    W www.adesso.at

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

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

Reply via email to