Re: warSourceExcludes

2007-11-23 Thread Paul Austin


Should the following exclude the commons-logging class which is a
> dependency of another module I depend on? If not how can I exclude this
> dependent lib from my war.
>  
>  
>  maven-war-plugin
>  
>   
> /WEB-INF/lib/commons-logging-1.0.jar
> 
>   
>
> On another similar note, the war plug-in includes the servlet-api and
> jsp-api libraries in the war which shows the following in tomcat. Should
> these be excluded automatically by the plugin to be inline with the spec
>
>   
>  maven-war-plugin
>  
>   
> /WEB-INF/lib/commons-logging-1.0.jar
>
>   
>
> I'm using version 2.1 of the war plugin.
>
> Thanks,
> Paul
>
>   

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



warSourceExcludes

2007-11-23 Thread Paul Austin
Should the following exclude the commons-logging class which is a
dependency of another module I depend on? If not how can I exclude this
dependent lib from my war.
 
 
 maven-war-plugin
 
  
/WEB-INF/lib/commons-logging-1.0.jar

  

On another similar note, the war plug-in includes the servlet-api and
jsp-api libraries in the war which shows the following in tomcat. Should
these be excluded automatically by the plugin to be inline with the spec

  
 maven-war-plugin
 
  
/WEB-INF/lib/commons-logging-1.0.jar
   
  

I'm using version 2.1 of the war plugin.

Thanks,
Paul

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



Re: Filtering resources in Assembly plugin

2007-09-21 Thread Paul Austin
Will the filtering of dependencySets also be fixed?

Paul

Mick Knutson wrote:
> the filtering  will be fixed in the next release, but you have to
> use  for now. I opened the defect about a month.
>
>
>
>
> On 9/21/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
>   
>> I think I found a bug in the assembly plugin.  When I specify a single
>> file in my assembly, like so:
>> 
>> 
>> src/main/resources/faxing.sh
>> /
>> true
>> 
>> 
>>
>> it is filtered properly using the .
>>
>> But if I specify a fileset, like so:
>> 
>> 
>> src/main/resources
>> /
>> 
>> *.sh
>> 
>> true
>> 
>> 
>>
>> the resources are *not* filtered.  This isn't intentional, is it?
>>
>> Dave
>>
>> On 9/21/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
>> 
>>> All,
>>>
>>> I'm having an issue filtering resources with the assembly plugin.
>>>
>>> In the documentation at:
>>>
>>>   
>> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html
>> 
>>> there is an example of using the assembly plugin.  Here is the part in
>>> the pom that says how to specify the filter file:
>>>
>>>   
>>> maven-assembly-plugin
>>> 
>>>   
>>> src/assemble/filter.properties
>>>   
>>>   
>>> src/assemble/distribution.xml
>>>   
>>> 
>>>   
>>>
>>> When I add a  tag in my pom in the location specified above,
>>> I get the following error:
>>> [INFO] Error configuring:
>>> org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot
>>> override read-only parameter: filters in goal: assembly:assembly
>>>
>>> I've tried lots of permutations: adding the filters tag to the
>>>  structure, configuring it to run the attached goal,
>>> etc., and nothing will work.  When I specify the filters in the
>>>  tag, I get no error, but it also doesn't filter.
>>>
>>> Is this an error in the documentation or an issue with 2.2-beta1?  Or
>>> am I just doing something incorrectly?
>>>
>>> Dave
>>>
>>>   
>> -
>> 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]



Multiple Inclusions or exclusions in an assembly

2007-09-18 Thread Paul Austin
Looking at the schema for an assembly it looks as if in a single
dependencySet you can have many include/exclude items, but the plugin
(2.2-beta-1) seems to only process the first one in the list.

Has anyone been able to get this to work?

Also for exclusions I'd like to be able to exclude a project and all
it's dependencies so that I can put say all of Project A's libs into the
lib/ folder in the output and put all dependencies from other projects
(exlcuding A's dependencies) into lib/ext/

Paul

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



Re: Including an assembly in another assembly

2007-09-18 Thread Paul Austin
As promised here is how I got it working, although I still don't see why
it would not just be a lot easier if I could include the following in my
assembly


  
  true
  runtime
  
org.openjump:openjump-core:1.2-SNAPSHOT:zip:bin
  


So here it is.

First in the pom.xml for A attach the bin assembly to project A with the
classifier bin

  
 :
  
org.codehaus.mojo
build-helper-maven-plugin

  
attach-artifacts
package

  attach-artifact



  
target/A-1.0-SNAPSHOT-bin.zip
zip
bin
  


  

  
  
  

Second in the pom.xml for B extract the bin from A (note when making builds do 
a clean first to ensure you don't have any old files)

  
  :

  
 org.apache.maven.plugins
 maven-dependency-plugin
 
   
 unpack
 package
 
   unpack
 
 
   
 
   A
   A
   1.0-SNAPSHOT
   zip
   bin
   true
   target/A
 
   
   false
   true
 
   
 
   


Then in the assembly for B add the files to the output.

  

  
  target/A

  :
  

Paul


Paul Austin wrote:
> Say I have two projects A and B.
>
> Project A has a custom bin.xml assembly generating A-1.0-bin.zip.
>
> Project B is an enhancement to A with some extra jar files and also has
> a custom bin.xml assembly which takes the whole of the unpacked
> A-1.0-bin.zip file and adds in the extra jar files into B-1.0-bin.zip.
>
> What would I need to include in the assembly for B to include all the
> contents of A-1.0-bin.zip?
>
> Cheers,
> Paul
>
> -
> 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: Including an assembly in another assembly

2007-09-14 Thread Paul Austin
OK I think I have it, I'll post an example next week so that others can
find out how to do this.

Paul

Brian E. Fox wrote:
> Use dependency-plugin to upack A and then have B zip it up along with
> other stuff.
>
> -Original Message-----
> From: Paul Austin [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 13, 2007 4:55 PM
> To: users@maven.apache.org
> Subject: Including an assembly in another assembly
>
> Say I have two projects A and B.
>
> Project A has a custom bin.xml assembly generating A-1.0-bin.zip.
>
> Project B is an enhancement to A with some extra jar files and also has
> a custom bin.xml assembly which takes the whole of the unpacked
> A-1.0-bin.zip file and adds in the extra jar files into B-1.0-bin.zip.
>
> What would I need to include in the assembly for B to include all the
> contents of A-1.0-bin.zip?
>
> Cheers,
> Paul
>
> -
> 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]
>
>   


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



Re: Including an assembly in another assembly

2007-09-14 Thread Paul Austin
Paul Austin wrote:
> Does anyone have the syntax for including the assembly in another project.
>
> Not sure if you need the build-helper plugin as the assemblies are
> already being installed.
>
> Paul
>
> Insitu wrote:
>> Paul Austin <[EMAIL PROTECTED]> writes:
>>
>>   
>>> Say I have two projects A and B.
>>>
>>> Project A has a custom bin.xml assembly generating A-1.0-bin.zip.
>>>
>>> Project B is an enhancement to A with some extra jar files and also has
>>> a custom bin.xml assembly which takes the whole of the unpacked
>>> A-1.0-bin.zip file and adds in the extra jar files into B-1.0-bin.zip.
>>>
>>> What would I need to include in the assembly for B to include all the
>>> contents of A-1.0-bin.zip?
>>>
>>> 
>>
>> Maybe you could use a combination of:
>>  - build-helper to attach A's assembly as aan artifact thus
>>installing/deploying it
>>  - dependencySet within B's assembly with true (not
>>sure of the syntax)
>>
>> HTH
>>   
>


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



Including an assembly in another assembly

2007-09-13 Thread Paul Austin
Say I have two projects A and B.

Project A has a custom bin.xml assembly generating A-1.0-bin.zip.

Project B is an enhancement to A with some extra jar files and also has
a custom bin.xml assembly which takes the whole of the unpacked
A-1.0-bin.zip file and adds in the extra jar files into B-1.0-bin.zip.

What would I need to include in the assembly for B to include all the
contents of A-1.0-bin.zip?

Cheers,
Paul

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