Brian E. Fox a écrit :
>> I would want to include classes of war to my classpath.
>> And for the libs...hum.. don't know, may be too. I could exclude them
>> with the "exclusions" tag in my pom
>>     
>
> Yes but you can't actually do that with the compiler can you? 
>   
yes I know that javac does'nt understand.war files

But maven-compiler-plugin may extract classes/* , or the jar generated
by the war plugin (*archiveClasses
<http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#archiveClasses>)*,
and add it to the classpath.

I just say that a kind of dependency already exist in war (web
stuff),and it  could be nice to follow that idea for .class (or may be not)

That s not a BIG pb ; as Wendy and Wayne  say, I just have to create a
new jar artefact, and depends on it...
But I have to handle one more artefact...

I have spent few hours on this pb : i have read the doc : it says that
war overlay just work with no config, just declare the "<type>war</type>"...
so I was really thinking it should work.

Now I know, I have to refactor..

Thx  for your answers!

-- 
Julien Graglia


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to