I think this solution could be helpful:
http://maven.apache.org/plugins/maven-compiler-plugin/howto.html
--
View this message in context:
http://old.nabble.com/How-to-exclude-a-package-from-compile-tp21476236p26738402.html
Sent from the Maven - Users mailing list archive at Nabble.com
Thanks Justin, your answer was just what I needed! Actually - you have to
configure the war plugin, but it uses the same syntax as the jar plugin. I
now got:
maven-war-plugin
2.1-alpha-2
false
er Horlock [mailto:peter.horl...@googlemail.com]
Sent: Sat 1/17/2009 5:30 AM
To: Maven Users List
Subject: Re: How to exclude a package from compile
> I've got a java package (along with the jar dependencies it uses) that I
do
> not want to be added to the war file we send to our client. Also
what about the maven-war-plugins ?
LieGrue,
strub
--- Dan Tran schrieb am Sa, 17.1.2009:
> Von: Dan Tran
> Betreff: Re: How to exclude a package from compile
> An: "Maven Users List"
> Datum: Samstag, 17. Januar 2009, 11:31
> Use truezip-maven-plugin to remove the
Use truezip-maven-plugin to remove the unwanted contents from the war
file at package phase
-D
On Sat, Jan 17, 2009 at 2:24 AM, Peter Horlock
wrote:
> 2009/1/16 Peter Horlock
>
>> 009/1/15 Wayne Fay
>> > I've got a java package (along with the jar dependencies it uses) that I
>> do
>> > not wa
> I've got a java package (along with the jar dependencies it uses) that I
do
> not want to be added to the war file we send to our client. Also, I do not
> want the pom.xml to be part of the war file.
Actually, to be more precise, the best would be if all classes in the
package would not even be
2009/1/16 Peter Horlock
> 009/1/15 Wayne Fay
> > I've got a java package (along with the jar dependencies it uses) that I
> do
> > not want to be added to the war file we send to our client. Also, I do
> not
> > want the pom.xml to be part of the war file.
>
Does no one have a solution for this
009/1/15 Wayne Fay
> I've got a java package (along with the jar dependencies it uses) that I
do
> not want to be added to the war file we send to our client. Also, I do not
> want the pom.xml to be part of the war file.
I would move the code in that java package and its dependencies out of
the w
> I've got a java package (along with the jar dependencies it uses) that I do
> not want to be added to the war file we send to our client. Also, I do not
> want the pom.xml to be part of the war file.
I would move the code in that java package and its dependencies out of
the war to its own module
Hi,
I've got a java package (along with the jar dependencies it uses) that I do
not want to be added to the war file we send to our client. Also, I do not
want the pom.xml to be part of the war file.
(This is the default, the devevelopment war file is build by using a
profile).
I tried this:
10 matches
Mail list logo