You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff Mutonho <ej...@gmail.com> on 2007/06/25 11:00:53 UTC
Excluding packages from being compiled
I have a package structure that looks like :
-- src
`-- main
`-- java
|-- examples1
|-- examples2
|--wrappers1
`--wrappers2
During my build , I wish to exclude any java files in examples1 and
examples2 from being compiled.How do configure this in my pom?
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Excluding packages from being compiled
Posted by Jeff Mutonho <ej...@gmail.com>.
On 6/25/07, Jeff Mutonho <ej...@gmail.com> wrote:
>
> But that isnt working.
Yeah right!As often , human error.It's sorted.
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Excluding packages from being compiled
Posted by Jeff Mutonho <ej...@gmail.com>.
On 6/25/07, Tim Kettler <ti...@udo.edu> wrote:
> Hi,
>
> you can configure the compiler plugin [1] to in-/exclude files during
> compilation.
>
> -Tim
>
> [1] http://maven.apache.org/plugins/maven-compiler-plugin/
>
I tried the following :
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/examples1/*</exclude>
<exclude>**/examples2/*</exclude>
</excludes>
</configuration>
</plugin>
But that isnt working.
--
"Don't take the name of root in vain."
Jeff Mutonho
Cape Town
South Africa
GoogleTalk : ejbengine
Skype : ejbengine
Registered Linux user number 366042
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Excluding packages from being compiled
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
you can configure the compiler plugin [1] to in-/exclude files during
compilation.
-Tim
[1] http://maven.apache.org/plugins/maven-compiler-plugin/
Jeff Mutonho schrieb:
> I have a package structure that looks like :
> -- src
> `-- main
> `-- java
> |-- examples1
> |-- examples2
> |--wrappers1
> `--wrappers2
>
>
> During my build , I wish to exclude any java files in examples1 and
> examples2 from being compiled.How do configure this in my pom?
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org