Anders Hammar wrote: > > Does it work (when deploying in the app server) if you just skip the > manifest config part of the war plugin? I was under the impression that > the > manifest file doesn't really matter for war files, but I could be wrong. > (You'd be accessing the classes from the classpath and that's handled by > the > container.) > > /Anders > > On Thu, May 20, 2010 at 12:29, zm <zzzz_m...@hotmail.com> wrote: > >> >> More Info: >> >> In my war pom, I have the following: >> >> ... >> <dependencies> >> <dependency> >> <groupId>com.test</groupId> >> <artifactId>my-ejb</artifactId> >> <type>ejb-client</type> >> </dependency> >> ... >> <plugin> >> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-war-plugin</artifactId> >> <version>2.0.1</version> >> <configuration> >> >> <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes> >> <archive> >> <manifest> >> >> <addClasspath>true</addClasspath> >> >> <classpathPrefix>lib/</classpathPrefix> >> </manifest> >> </archive> >> </configuration> >> </plugin> >> >> >> So I have on ear root the war, the ejb and the ejb-client archives, but >> the >> manifest of the war as all entries prefixed with "lib/" so it doesn't >> find >> the client ... I would need a way of forcing the ejb-client entry to have >> no >> prefix (or "/" prefix). >> >> I'm still looking for examples, but without success so far. >> >> >> Thanks >> -- >> View this message in context: >> http://old.nabble.com/Maven-EAR-%2B-EJB-...-jars-with-prefixed-%22lib-%22-except-for-EJB-tp28618592p28619436.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > >
If I skip manifest creation, it will probably work, because every dependencies will be copied to WEB-INF/lib, and since EJB will need manifest and many of the same libs on the EAR, I will end with a monster size EAR package because of duplicated jar dependencies ... :( -- View this message in context: http://old.nabble.com/Maven-EAR-%2B-EJB-...-jars-with-prefixed-%22lib-%22-except-for-EJB-tp28618592p28623059.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org