Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
Thanks for the quick response.

I've tried the following:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0/version
configuration
excludes
exclude**/com/ideal/**/*.java/exclude
/excludes
webResources.../webResources
 /configuration
   /plugin
/plugins

And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
but it seems that they still are compiled.
What is the mask I need to use?

2008/7/10 Geoffrey Wiseman [EMAIL PROTECTED]:
 On Thu, Jul 10, 2008 at 10:51 AM, Jörg Schaible 
 [EMAIL PROTECTED] wrote:

 You can do this in the same POM. Simply execute the jar plugin (also with
 includes), attach it to the package phase, but configure the resulting
 artifact with a classifier.


 Although it wouldn't hurt to note that this would typically be accomplished
 using a multi-module buld in Maven.

  - Geoffrey
 --
 Geoffrey Wiseman


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



RE: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jörg Schaible
Jan Verstuyft wrote:
 Thanks for the quick response.
 
 I've tried the following:
 
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0/version
 configuration
   excludes
 
 exclude**/com/ideal/**/*.java/exclude
   /excludes
   webResources.../webResources
  /configuration
/plugin
 /plugins
 
 And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
 but it seems that they still are compiled.
 What is the mask I need to use?

Well, I told you. Have a look yourself at target/classes and search for any 
*.java file ... ;-)

- Jörg

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



Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
Ok,

so the exclude on configuration level, just excludes which .class
files you want to add to the war?

I even tried
   configuration
excludes
exclude**/*.class/exclude
/excludes
   /configuration

and still, all the classes are in my WEB-INF/classes directory.

And is it also possible to exclude them from being build.  I've read
something about the following configuration (it was for jars)
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
 excludes
   exclude**/NotNeeded*.java/exclude
 /excludes
   /configuration
 /plugin
   /plugins

but that also not work.  What do I do wrong?

kind regards

Jan

2008/7/11 Jörg Schaible [EMAIL PROTECTED]:
 Jan Verstuyft wrote:
 Thanks for the quick response.

 I've tried the following:

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0/version
 configuration
   excludes

 exclude**/com/ideal/**/*.java/exclude
   /excludes
   webResources.../webResources
  /configuration
/plugin
 /plugins

 And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
 but it seems that they still are compiled.
 What is the mask I need to use?

 Well, I told you. Have a look yourself at target/classes and search for any 
 *.java file ... ;-)

 - Jörg

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



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



Re: [Maven2] - exluding some source files from a war

2008-07-11 Thread Jan Verstuyft
Sorry,

I've put the maven-compile plugin at the wrong place.  Now it works.

thanks

Jan

2008/7/11 Jan Verstuyft [EMAIL PROTECTED]:
 Ok,

 so the exclude on configuration level, just excludes which .class
 files you want to add to the war?

 I even tried
   configuration
excludes
exclude**/*.class/exclude
/excludes
   /configuration

 and still, all the classes are in my WEB-INF/classes directory.

 And is it also possible to exclude them from being build.  I've read
 something about the following configuration (it was for jars)
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
 excludes
   exclude**/NotNeeded*.java/exclude
 /excludes
   /configuration
 /plugin
   /plugins

 but that also not work.  What do I do wrong?

 kind regards

 Jan

 2008/7/11 Jörg Schaible [EMAIL PROTECTED]:
 Jan Verstuyft wrote:
 Thanks for the quick response.

 I've tried the following:

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.0/version
 configuration
   excludes

 exclude**/com/ideal/**/*.java/exclude
   /excludes
   webResources.../webResources
  /configuration
/plugin
 /plugins

 And some other exclude masks like **/com/ideal/**, or **/com/ideal/*
 but it seems that they still are compiled.
 What is the mask I need to use?

 Well, I told you. Have a look yourself at target/classes and search for any 
 *.java file ... ;-)

 - Jörg

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




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



[Maven2] - exluding some source files from a war

2008-07-10 Thread Jan Verstuyft
Hello,

I'm getting started to use maven2, but we have still some problems.
One of them occurs in the following situation:

We have a project with in the src folder the following structure:
src\com\clarify\...
src\com\ideal\...

the old ant scripts compiles both of them, but put the com\clarify
packages in the WEB-INF\classes folder and the com\ideal packages in a
jar file and in the lib folder.

I've already made a pom file that delivers a war file, but with the
both packages in the WEB-INF\classes folder.
Now is my question, can I exclude the ideal package of being compile
and added to tho WEB-INF\classes folder.  i will make another pom file
for the ideal packages.

Kind Regards

Jan Verstuyft

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



RE: [Maven2] - exluding some source files from a war

2008-07-10 Thread Jörg Schaible
Hi Jan,

Jan Verstuyft wrote:
 Hello,
 
 I'm getting started to use maven2, but we have still some problems.
 One of them occurs in the following situation:
 
 We have a project with in the src folder the following structure:
 src\com\clarify\... src\com\ideal\...
 
 the old ant scripts compiles both of them, but put the com\clarify
 packages in the WEB-INF\classes folder and the com\ideal packages in a
 jar file and in the lib folder.
 
 I've already made a pom file that delivers a war file, but with the
 both packages in the WEB-INF\classes folder.

Yes, you can, see the configuration of the war file, it has excludes. The 
pattern matches the files in target/classes though.

 Now is my question, can I exclude the ideal package of being compile
 and added to tho WEB-INF\classes folder.  i will make another pom
 file for the ideal packages. 

You can do this in the same POM. Simply execute the jar plugin (also with 
includes), attach it to the package phase, but configure the resulting artifact 
with a classifier.

- Jörg

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



Re: [Maven2] - exluding some source files from a war

2008-07-10 Thread Geoffrey Wiseman
On Thu, Jul 10, 2008 at 10:51 AM, Jörg Schaible 
[EMAIL PROTECTED] wrote:

 You can do this in the same POM. Simply execute the jar plugin (also with
 includes), attach it to the package phase, but configure the resulting
 artifact with a classifier.


Although it wouldn't hurt to note that this would typically be accomplished
using a multi-module buld in Maven.

  - Geoffrey
-- 
Geoffrey Wiseman