On 24/02/2012 7:55 AM, Eric Stein wrote:
Hi,
   I'm trying to set up a WAR project which uses NetBeans Lookup to find
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.

0. Is this the right design, or should I be doing something different?
1. What am I missing that I need to make this work?


Not sure why  the interface is defined in the WAR.
Interfraces would usually be in with the implementations or in a JAR by itself if the idea is to have each implementation in its own JAR.

WARs are not really places for code most of the time and certainly not interfaces.

I like to see a WAR project that only has configuration files and the very minimal java required to start whatever is being run.


Ron

Thanks,
Eric

--
View this message in context: 
http://maven.40175.n5.nabble.com/Lookup-from-WAR-to-external-JAR-tp5512685p5512685.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]




--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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

Reply via email to