> services in external JAR files. Right now, I define an interface in the WAR
> and the implementations in a couple of JAR projects. I tried adding a
> dependency on the WAR to the JAR poms, but mvn clean package doesn't seem to
> like that.

Try an experiment for me. Try to use your system's javac to build a
class in one of your Jars which depends on a class in your War, and
specify the War file in the -classpath parameter. Keep in mind this is
what Maven has to do to build your project by calling out to your
system JDK.

PS This doesn't work. Application Servers have special ClassLoaders
that can handle War files.
PPS Extract the code from the War to its own Jar file, and depend on
that in both the War and the other Jars which is what Ron already
said.

Wayne

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

Reply via email to