No, you create a third project which is a standard jar Maven project. There you but those Java classes. This will produce a jar artifact, which you declare a dependency to from both war projects.
/Anders On Sun, May 1, 2011 at 03:48, sipungora <kostya...@yahoo.de> wrote: > Hi, > > I have a war-dependency. Its classes are arranged in war/WEB-INF/classes/. > How should I configure my pom, that I can access they? > > I assume, they should be copied from war/WEB-INF/classes/ into > mywar/WEB-INF/classes/, but I don't know, how my pom should correct be > configured. > > this is a config of maven-war-plugin > > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <configuration> > > <warSourceDirectory>war</warSourceDirectory> > > <webXml>src/main/webapp/WEB-INF/web.xml</webXml> > > <dependentWarExcludes>WEB-INF/lib/*</dependentWarExcludes> > <archive> > > > <manifestFile>war/META-INF/MANIFEST.MF > </manifestFile> > </archive> > </configuration> > </plugin> > > and this is the war-dependency: > > > <dependency> > <groupId>${groupId}</groupId> > <artifactId>test</artifactId> > <version>${version}</version> > <type>war</type> > </dependency> > > Thanks in advance. > Best Regards. > -sipungora. > -- > View this message in context: > http://maven.40175.n5.nabble.com/How-access-classes-from-war-dependency-tp4362127p4362127.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 > >