Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-11 Thread Patrizio Munzi

Yes,

you're right. Not a so heavy issue.
Just a correctness remark.

I've already filed a jira issue for it with simple project test case.

Regards,
   Patrizio

[EMAIL PROTECTED] wrote:

It doesn't surprise me too much that the maven-jar-plugin still creates
empty directories even when all files that were in that directory have
been excluded. I haven't checked myself, but it sounds like a situation
that the plugin author could easily have overlooked.

But it doesn't cause any problems does it? Just a minor wastage of space
in the generated jarfile?

In this case, it is probably worth filing a jira issue for this, but it
should be marked "minor" or even "trivial" unless it causes actual
problems for programs.

Regards, Simon

Patrizio Munzi schrieb:
  

Thanks for your answer,

so is it a real problem...?

Thanks

Olivier Lamy wrote:


Post an issue in jira.
And attach a simple project test case to reproduce the issue.

Thanks,
--
Olivier

2008/3/11, Patrizio Munzi <[EMAIL PROTECTED]>:
 
  

Hi All,

 I'm trying to exclude some files from the built jar by using the
 maven-jar-plugin exclude feature.

 Here's my configuration:

 
**/*.properties
**/*.xml
**/*.xsd
 

 Although all the specified files are actually excluded from the
deployed
 jar, the directory paths of the excluded files are still created into
 the jar.

 I mean, if I have the following files under the resources directory:

 resources/log4j.properties
 resources/xml/file.xml
 resources/xml/schema/schema.xsd

 These files won't be included in the built jar, but I'll still have
the
 following path into it:

 resources/xml/schema/

 Is anyone aware of this problem with the maven-jar-plugin...?

 Thanks.

 Cheers
Patrizio

 --




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


  


--

*Patrizio Munzi*
Product Engineer
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [EMAIL PROTECTED] 
web: http://www.eris4.com 
skype: eris4_munzi 


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



Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-11 Thread [EMAIL PROTECTED]
It doesn't surprise me too much that the maven-jar-plugin still creates
empty directories even when all files that were in that directory have
been excluded. I haven't checked myself, but it sounds like a situation
that the plugin author could easily have overlooked.

But it doesn't cause any problems does it? Just a minor wastage of space
in the generated jarfile?

In this case, it is probably worth filing a jira issue for this, but it
should be marked "minor" or even "trivial" unless it causes actual
problems for programs.

Regards, Simon

Patrizio Munzi schrieb:
> Thanks for your answer,
>
> so is it a real problem...?
>
> Thanks
>
> Olivier Lamy wrote:
>> Post an issue in jira.
>> And attach a simple project test case to reproduce the issue.
>>
>> Thanks,
>> -- 
>> Olivier
>>
>> 2008/3/11, Patrizio Munzi <[EMAIL PROTECTED]>:
>>  
>>> Hi All,
>>>
>>>  I'm trying to exclude some files from the built jar by using the
>>>  maven-jar-plugin exclude feature.
>>>
>>>  Here's my configuration:
>>>
>>>  
>>> **/*.properties
>>> **/*.xml
>>> **/*.xsd
>>>  
>>>
>>>  Although all the specified files are actually excluded from the
>>> deployed
>>>  jar, the directory paths of the excluded files are still created into
>>>  the jar.
>>>
>>>  I mean, if I have the following files under the resources directory:
>>>
>>>  resources/log4j.properties
>>>  resources/xml/file.xml
>>>  resources/xml/schema/schema.xsd
>>>
>>>  These files won't be included in the built jar, but I'll still have
>>> the
>>>  following path into it:
>>>
>>>  resources/xml/schema/
>>>
>>>  Is anyone aware of this problem with the maven-jar-plugin...?
>>>
>>>  Thanks.
>>>
>>>  Cheers
>>> Patrizio
>>>
>>>  --
>


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



Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-11 Thread Patrizio Munzi

Thanks for your answer,

so is it a real problem...?

Thanks

Olivier Lamy wrote:

Post an issue in jira.
And attach a simple project test case to reproduce the issue.

Thanks,
--
Olivier

2008/3/11, Patrizio Munzi <[EMAIL PROTECTED]>:
  

Hi All,

 I'm trying to exclude some files from the built jar by using the
 maven-jar-plugin exclude feature.

 Here's my configuration:

 
**/*.properties
**/*.xml
**/*.xsd
 

 Although all the specified files are actually excluded from the deployed
 jar, the directory paths of the excluded files are still created into
 the jar.

 I mean, if I have the following files under the resources directory:

 resources/log4j.properties
 resources/xml/file.xml
 resources/xml/schema/schema.xsd

 These files won't be included in the built jar, but I'll still have the
 following path into it:

 resources/xml/schema/

 Is anyone aware of this problem with the maven-jar-plugin...?

 Thanks.

 Cheers
Patrizio

 --
 *Patrizio Munzi*
 Product Engineer
 Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
 tel: +39 06 4543 3540
 fax: +39 06 4543 3587
 mobile: +39 393 7195 164
 mail: [EMAIL PROTECTED] 
 web: http://www.eris4.com 
 skype: eris4_munzi 


 -
 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]


  


--

*Patrizio Munzi*
Product Engineer
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [EMAIL PROTECTED] 
web: http://www.eris4.com 
skype: eris4_munzi 


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



Re: excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-11 Thread Olivier Lamy
Post an issue in jira.
And attach a simple project test case to reproduce the issue.

Thanks,
--
Olivier

2008/3/11, Patrizio Munzi <[EMAIL PROTECTED]>:
> Hi All,
>
>  I'm trying to exclude some files from the built jar by using the
>  maven-jar-plugin exclude feature.
>
>  Here's my configuration:
>
>  
> **/*.properties
> **/*.xml
> **/*.xsd
>  
>
>  Although all the specified files are actually excluded from the deployed
>  jar, the directory paths of the excluded files are still created into
>  the jar.
>
>  I mean, if I have the following files under the resources directory:
>
>  resources/log4j.properties
>  resources/xml/file.xml
>  resources/xml/schema/schema.xsd
>
>  These files won't be included in the built jar, but I'll still have the
>  following path into it:
>
>  resources/xml/schema/
>
>  Is anyone aware of this problem with the maven-jar-plugin...?
>
>  Thanks.
>
>  Cheers
> Patrizio
>
>  --
>  *Patrizio Munzi*
>  Product Engineer
>  Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
>  tel: +39 06 4543 3540
>  fax: +39 06 4543 3587
>  mobile: +39 393 7195 164
>  mail: [EMAIL PROTECTED] 
>  web: http://www.eris4.com 
>  skype: eris4_munzi 
>
>
>  -
>  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]



excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-11 Thread Patrizio Munzi

Hi All,

I'm trying to exclude some files from the built jar by using the
maven-jar-plugin exclude feature.

Here's my configuration:


   **/*.properties
   **/*.xml
   **/*.xsd


Although all the specified files are actually excluded from the deployed
jar, the directory paths of the excluded files are still created into
the jar.

I mean, if I have the following files under the resources directory:

resources/log4j.properties
resources/xml/file.xml
resources/xml/schema/schema.xsd

These files won't be included in the built jar, but I'll still have the
following path into it:

resources/xml/schema/

Is anyone aware of this problem with the maven-jar-plugin...?

Thanks.

Cheers
   Patrizio

--
*Patrizio Munzi*
Product Engineer
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [EMAIL PROTECTED] 
web: http://www.eris4.com 
skype: eris4_munzi 


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



excluding files from jar doesn't work completely well - maven-jar-plugin 2.2

2008-03-07 Thread Patrizio Munzi

Hi All,

I'm trying to exclude some files from the built jar by using the 
maven-jar-plugin exclude feature.


Here's my configuration:


   **/*.properties
   **/*.xml
   **/*.xsd


Although all the specified files are actually excluded from the deployed 
jar, the directory paths of the excluded files are still created into 
the jar.


I mean, if I have the following files under the resources directory:

resources/log4j.properties
resources/xml/file.xml
resources/xml/schema/schema.xsd

These files won't be included in the built jar, but I'll still have the 
following path into it:


resources/xml/schema/

Is anyone aware of this problem with the maven-jar-plugin...?

Thanks.

Cheers
   Patrizio

--

*Patrizio Munzi*
Product Engineer
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [EMAIL PROTECTED] 
web: http://www.eris4.com 
skype: eris4_munzi 


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



Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno

thanks for your Olivier ,

it works now!
i forgot to make a clean in the target folder so that's why the files 
were always present !


regards

The excludes field in the jar plugin is to exclude content from
${project.build.outputDirectory} not to exclude resources.
In order to exclude resources have a look here [1].

I don't really understand your jar plugin configuration.
Can you try a more simple :

  
org.apache.maven.plugins
maven-jar-plugin

  
**/*.xsd
  

  

--
Olivier
[1] 
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

2008/1/12, supareno <[EMAIL PROTECTED]>:
  

Thanks Olivier (and Jochen and Dennis),

it is now building without any error but the xsd files is always here
i'm gonna try with Ant task to if it is working !

regards


Hi,
Can you try with :
  
**/*.xsd
  

--
Olivier

2008/1/12, supareno <[EMAIL PROTECTED]>:

  

Hello guys

i read the previous threads about exclusion with interest
because i am always confronted with the "excludes" problem

i followed all the steps:
changed my settings.xml to enable snapshot plugin repositories...
(http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html)
everything is working except the "excludes" tag

my pom.xml looks like this:

...

org.apache.maven.plugins
maven-jar-plugin
2.2-SNAPSHOT



jar


   **/*.xsd

src/main/resources/xml
   

   
 
...

and when i run maven with the following command:
mvn -Papache package
i've got this exception!

...
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT

(found static expression: '**/*.xsd' which may act as a default value).


Cause: Cannot assign configuration entry 'excludes' to 'class
[Ljava.lang.String;' from '**/*.xsd', which is of type class
java.lang.String
[INFO]

[INFO] For more information, run Maven with the -e switch
...

do i forget something during my builds??

regards
supareno

-
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]





-
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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Olivier Lamy
The excludes field in the jar plugin is to exclude content from
${project.build.outputDirectory} not to exclude resources.
In order to exclude resources have a look here [1].

I don't really understand your jar plugin configuration.
Can you try a more simple :

  
org.apache.maven.plugins
maven-jar-plugin

  
**/*.xsd
  

  

--
Olivier
[1] 
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

2008/1/12, supareno <[EMAIL PROTECTED]>:
> Thanks Olivier (and Jochen and Dennis),
>
> it is now building without any error but the xsd files is always here
> i'm gonna try with Ant task to if it is working !
>
> regards
> > Hi,
> > Can you try with :
> >   
> > **/*.xsd
> >   
> >
> > --
> > Olivier
> >
> > 2008/1/12, supareno <[EMAIL PROTECTED]>:
> >
> >> Hello guys
> >>
> >> i read the previous threads about exclusion with interest
> >> because i am always confronted with the "excludes" problem
> >>
> >> i followed all the steps:
> >> changed my settings.xml to enable snapshot plugin repositories...
> >> (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html)
> >> everything is working except the "excludes" tag
> >>
> >> my pom.xml looks like this:
> >>
> >> ...
> >> 
> >> org.apache.maven.plugins
> >> maven-jar-plugin
> >> 2.2-SNAPSHOT
> >> 
> >> 
> >> 
> >> jar
> >> 
> >> 
> >>**/*.xsd
> >>
> >> src/main/resources/xml
> >>
> >> 
> >>
> >>  
> >> ...
> >>
> >> and when i run maven with the following command:
> >> mvn -Papache package
> >> i've got this exception!
> >>
> >> ...
> >> [INFO]
> >> 
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> 
> >> [INFO] Failed to configure plugin parameters for:
> >> org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT
> >>
> >> (found static expression: '**/*.xsd' which may act as a default value).
> >>
> >>
> >> Cause: Cannot assign configuration entry 'excludes' to 'class
> >> [Ljava.lang.String;' from '**/*.xsd', which is of type class
> >> java.lang.String
> >> [INFO]
> >> 
> >> [INFO] For more information, run Maven with the -e switch
> >> ...
> >>
> >> do i forget something during my builds??
> >>
> >> regards
> >> supareno
> >>
> >> -
> >> 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]
>
>

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



Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno

Thanks Olivier (and Jochen and Dennis),

it is now building without any error but the xsd files is always here
i'm gonna try with Ant task to if it is working !

regards

Hi,
Can you try with :
  
**/*.xsd
  

--
Olivier

2008/1/12, supareno <[EMAIL PROTECTED]>:
  

Hello guys

i read the previous threads about exclusion with interest
because i am always confronted with the "excludes" problem

i followed all the steps:
changed my settings.xml to enable snapshot plugin repositories...
(http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html)
everything is working except the "excludes" tag

my pom.xml looks like this:

...

org.apache.maven.plugins
maven-jar-plugin
2.2-SNAPSHOT



jar


   **/*.xsd

src/main/resources/xml
   

   
 
...

and when i run maven with the following command:
mvn -Papache package
i've got this exception!

...
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT

(found static expression: '**/*.xsd' which may act as a default value).


Cause: Cannot assign configuration entry 'excludes' to 'class
[Ljava.lang.String;' from '**/*.xsd', which is of type class
java.lang.String
[INFO]

[INFO] For more information, run Maven with the -e switch
...

do i forget something during my builds??

regards
supareno

-
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: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Dennis Lundberg
The excludes configuration is a set of things to exclude. It needs to be 
configured like this:



  **/*.xsd



supareno wrote:

Hello guys

i read the previous threads about exclusion with interest
because i am always confronted with the "excludes" problem

i followed all the steps:
changed my settings.xml to enable snapshot plugin repositories...
(http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html) 


everything is working except the "excludes" tag

my pom.xml looks like this:

...
   
   org.apache.maven.plugins
   maven-jar-plugin
   2.2-SNAPSHOT
   
   
   
   jar
   
   
  **/*.xsd
  
src/main/resources/xml

  
   
  
   ...

and when i run maven with the following command:
mvn -Papache package
i've got this exception!

...
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT


   (found static expression: '**/*.xsd' which may act as a default value).


Cause: Cannot assign configuration entry 'excludes' to 'class 
[Ljava.lang.String;' from '**/*.xsd', which is of type class 
java.lang.String
[INFO] 


[INFO] For more information, run Maven with the -e switch
...

do i forget something during my builds??

regards
supareno

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





--
Dennis Lundberg

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



Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Jochen Wiedmann
On Jan 12, 2008 3:59 PM, supareno <[EMAIL PROTECTED]> wrote:

> [INFO] Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT
>
> (found static expression: '**/*.xsd' which may act as a default value).

Configuration problem on your side, use


   **/*.xsd


Jochen


-- 
Look, that's why there's rules, understand? So that you think before
you break 'em.

-- (Terry Pratchett, Thief of Time)

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



Re: Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread Olivier Lamy
Hi,
Can you try with :
  
**/*.xsd
  

--
Olivier

2008/1/12, supareno <[EMAIL PROTECTED]>:
> Hello guys
>
> i read the previous threads about exclusion with interest
> because i am always confronted with the "excludes" problem
>
> i followed all the steps:
> changed my settings.xml to enable snapshot plugin repositories...
> (http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html)
> everything is working except the "excludes" tag
>
> my pom.xml looks like this:
>
> ...
> 
> org.apache.maven.plugins
> maven-jar-plugin
> 2.2-SNAPSHOT
> 
> 
> 
> jar
> 
> 
>**/*.xsd
>
> src/main/resources/xml
>
> 
>
>  
> ...
>
> and when i run maven with the following command:
> mvn -Papache package
> i've got this exception!
>
> ...
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT
>
> (found static expression: '**/*.xsd' which may act as a default value).
>
>
> Cause: Cannot assign configuration entry 'excludes' to 'class
> [Ljava.lang.String;' from '**/*.xsd', which is of type class
> java.lang.String
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> ...
>
> do i forget something during my builds??
>
> regards
> supareno
>
> -
> 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]



Excluding files from JAR with maven-jar-plugin 2.2-SNAPSHOT failed

2008-01-12 Thread supareno

Hello guys

i read the previous threads about exclusion with interest
because i am always confronted with the "excludes" problem

i followed all the steps:
changed my settings.xml to enable snapshot plugin repositories...
(http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html)
everything is working except the "excludes" tag

my pom.xml looks like this:

...
   
   org.apache.maven.plugins
   maven-jar-plugin
   2.2-SNAPSHOT
   
   
   
   jar
   
   
  **/*.xsd
  
src/main/resources/xml

  
   
  
   
...


and when i run maven with the following command:
mvn -Papache package
i've got this exception!

...
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-jar-plugin:2.2-SNAPSHOT


   (found static expression: '**/*.xsd' which may act as a default value).


Cause: Cannot assign configuration entry 'excludes' to 'class 
[Ljava.lang.String;' from '**/*.xsd', which is of type class 
java.lang.String
[INFO] 


[INFO] For more information, run Maven with the -e switch
...

do i forget something during my builds??

regards
supareno

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



Re: Excluding files from JAR

2008-01-11 Thread amit kumar
Hi,
Sorry for incomplete information about the problem. I used  task ,
and it is working now.
Did not try the snapshot jar plugin yet.

Thanks and regards,
Amit Kumar

On Jan 11, 2008 5:46 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> I don't think Simon is telling you to use Ant's jar command -- instead
> he is suggesting that you use Ant's  task to physically remove
> the unwanted files out of /target/ before allowing Maven to do its own
> packaging step. (Right, Simon?) You would probably want to bind this
> to prepare-package as you have done below.
>
> Here's the Ant Delete task page:
> http://ant.apache.org/manual/CoreTasks/delete.html
>
> Also, you should be using -X to get full debugging information. And if
> it "doesn't work" this time, please reply back with a lot more details
> about what exactly happened when you tried this eg what errors were
> reported, what seemed to happen, etc. Simply saying "it didn't work"
> tells us absolutely nothing about what actually happened vs what you
> were expecting etc.
>
> Wayne
>
> On 1/10/08, amit kumar <[EMAIL PROTECTED]> wrote:
> > Hi Simon,
> > Being totally unaware of ANT although I tried but of no use.
> > I used this with google's help
> >
> >  
> >maven-antrun-plugin
> >
> >  
> >prepare-package
> >
> > 
> > 
> >  > excludes="*.xsd,*.xsb" />
> > 
> > 
> >
> >
> >  run
> >
> >  
> >
> >  
> >
> >
> > Where am I lacking?
> >
> >
> > Regards,
> > Amit
> >
> > On Jan 10, 2008 9:45 PM, amit kumar <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > I have downloaded the patches from the link mentioned by you. But I
> don't
> > > know how to apply them.
> > >
> > > regards,
> > > Amit
> > >
> > >
> > > On Jan 10, 2008 6:29 PM, Olivier Lamy < [EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > > No you don't miss something here.
> > > > It's a know issue [1] and it's fixed in trunk.
> > > > You can try last snapshot to test the fix.
> > > >
> > > > --
> > > > Olivier
> > > > [1] http://jira.codehaus.org/browse/MJAR-30
> > > >
> > > > 2008/1/10, amit kumar < [EMAIL PROTECTED]>:
> > > > > HI,
> > > > > Just like WAR can I as well exclude some files from JAR builds as
> > > > well?
> > > > >
> > > > > I have used this, but not working.
> > > > >
> > > > >   
> > > > > 
> > > > >   org.apache.maven.plugins
> > > > >   maven-jar-plugin
> > > > >   2.1
> > > > >   
> > > > >
> > > > >   
> > > > >  jar
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > > **/*.xsd
> > > > >src/schema/xsd
> > > > > 
> > > > >   
> > > > >
> > > > > Am I missing something?
> > > > >
> > > > > Amit
> > > > >
> > > >
> > > >
> -
> > > > 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: Excluding files from JAR

2008-01-10 Thread Wayne Fay
I don't think Simon is telling you to use Ant's jar command -- instead
he is suggesting that you use Ant's  task to physically remove
the unwanted files out of /target/ before allowing Maven to do its own
packaging step. (Right, Simon?) You would probably want to bind this
to prepare-package as you have done below.

Here's the Ant Delete task page:
http://ant.apache.org/manual/CoreTasks/delete.html

Also, you should be using -X to get full debugging information. And if
it "doesn't work" this time, please reply back with a lot more details
about what exactly happened when you tried this eg what errors were
reported, what seemed to happen, etc. Simply saying "it didn't work"
tells us absolutely nothing about what actually happened vs what you
were expecting etc.

Wayne

On 1/10/08, amit kumar <[EMAIL PROTECTED]> wrote:
> Hi Simon,
> Being totally unaware of ANT although I tried but of no use.
> I used this with google's help
>
>  
>maven-antrun-plugin
>
>  
>prepare-package
>
> 
> 
>  excludes="*.xsd,*.xsb" />
> 
> 
>
>
>  run
>
>  
>
>  
>
>
> Where am I lacking?
>
>
> Regards,
> Amit
>
> On Jan 10, 2008 9:45 PM, amit kumar <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I have downloaded the patches from the link mentioned by you. But I don't
> > know how to apply them.
> >
> > regards,
> > Amit
> >
> >
> > On Jan 10, 2008 6:29 PM, Olivier Lamy < [EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > > No you don't miss something here.
> > > It's a know issue [1] and it's fixed in trunk.
> > > You can try last snapshot to test the fix.
> > >
> > > --
> > > Olivier
> > > [1] http://jira.codehaus.org/browse/MJAR-30
> > >
> > > 2008/1/10, amit kumar < [EMAIL PROTECTED]>:
> > > > HI,
> > > > Just like WAR can I as well exclude some files from JAR builds as
> > > well?
> > > >
> > > > I have used this, but not working.
> > > >
> > > >   
> > > > 
> > > >   org.apache.maven.plugins
> > > >   maven-jar-plugin
> > > >   2.1
> > > >   
> > > >
> > > >   
> > > >  jar
> > > > 
> > > >
> > > > 
> > > > 
> > > > **/*.xsd
> > > >src/schema/xsd
> > > > 
> > > >   
> > > >
> > > > Am I missing something?
> > > >
> > > > Amit
> > > >
> > >
> > > -
> > > 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: Excluding files from JAR

2008-01-10 Thread amit kumar
Hi Simon,
Being totally unaware of ANT although I tried but of no use.
I used this with google's help

  
maven-antrun-plugin

  
prepare-package

 


 
 


  run

  

  


Where am I lacking?


Regards,
Amit

On Jan 10, 2008 9:45 PM, amit kumar <[EMAIL PROTECTED]> wrote:

> Hi,
> I have downloaded the patches from the link mentioned by you. But I don't
> know how to apply them.
>
> regards,
> Amit
>
>
> On Jan 10, 2008 6:29 PM, Olivier Lamy < [EMAIL PROTECTED]> wrote:
>
> > Hi,
> > No you don't miss something here.
> > It's a know issue [1] and it's fixed in trunk.
> > You can try last snapshot to test the fix.
> >
> > --
> > Olivier
> > [1] http://jira.codehaus.org/browse/MJAR-30
> >
> > 2008/1/10, amit kumar < [EMAIL PROTECTED]>:
> > > HI,
> > > Just like WAR can I as well exclude some files from JAR builds as
> > well?
> > >
> > > I have used this, but not working.
> > >
> > >   
> > > 
> > >   org.apache.maven.plugins
> > >   maven-jar-plugin
> > >   2.1
> > >   
> > >
> > >   
> > >  jar
> > > 
> > >
> > > 
> > > 
> > > **/*.xsd
> > >src/schema/xsd
> > > 
> > >   
> > >
> > > Am I missing something?
> > >
> > > Amit
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Excluding files from JAR

2008-01-10 Thread Olivier Lamy
Nothing to patch locally.
The snapshot with this patch is available in snapshot plugin repositories.
In order to test this have a look here [1] (first section "How to
include the plugin snapshot repositories as part of your build").

If you have any issues let us know,

Thanks,
--
Olivier

[1] 
http://maven.apache.org/guides/development/guide-plugin-snapshot-repositories.html


2008/1/10, amit kumar <[EMAIL PROTECTED]>:
> Hi,
> I have downloaded the patches from the link mentioned by you. But I don't
> know how to apply them.
>
> regards,
> Amit
>
> On Jan 10, 2008 6:29 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > No you don't miss something here.
> > It's a know issue [1] and it's fixed in trunk.
> > You can try last snapshot to test the fix.
> >
> > --
> > Olivier
> > [1] http://jira.codehaus.org/browse/MJAR-30
> >
> > 2008/1/10, amit kumar <[EMAIL PROTECTED]>:
> > > HI,
> > > Just like WAR can I as well exclude some files from JAR builds as well?
> > >
> > > I have used this, but not working.
> > >
> > >   
> > > 
> > >   org.apache.maven.plugins
> > >   maven-jar-plugin
> > >   2.1
> > >   
> > >
> > >   
> > >  jar
> > > 
> > >
> > > 
> > > 
> > > **/*.xsd
> > >src/schema/xsd
> > > 
> > >   
> > >
> > > Am I missing something?
> > >
> > > Amit
> > >
> >
> > -
> > 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: Excluding files from JAR

2008-01-10 Thread amit kumar
Hi,
I have downloaded the patches from the link mentioned by you. But I don't
know how to apply them.

regards,
Amit

On Jan 10, 2008 6:29 PM, Olivier Lamy <[EMAIL PROTECTED]> wrote:

> Hi,
> No you don't miss something here.
> It's a know issue [1] and it's fixed in trunk.
> You can try last snapshot to test the fix.
>
> --
> Olivier
> [1] http://jira.codehaus.org/browse/MJAR-30
>
> 2008/1/10, amit kumar <[EMAIL PROTECTED]>:
> > HI,
> > Just like WAR can I as well exclude some files from JAR builds as well?
> >
> > I have used this, but not working.
> >
> >   
> > 
> >   org.apache.maven.plugins
> >   maven-jar-plugin
> >   2.1
> >   
> >
> >   
> >  jar
> > 
> >
> > 
> > 
> > **/*.xsd
> >src/schema/xsd
> > 
> >   
> >
> > Am I missing something?
> >
> > Amit
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Excluding files from JAR

2008-01-10 Thread Simon Kitching
 amit kumar <[EMAIL PROTECTED]> schrieb:
> Just like WAR can I as well exclude some files from JAR builds as well?

Not until the next version of the jar plugin is released.

For the moment, the usual workaround is to use the antrun plugin to remove the 
unwanted files before the jar is created.

Regards, Simon

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



Re: Excluding files from JAR

2008-01-10 Thread Olivier Lamy
Hi,
No you don't miss something here.
It's a know issue [1] and it's fixed in trunk.
You can try last snapshot to test the fix.

--
Olivier
[1] http://jira.codehaus.org/browse/MJAR-30

2008/1/10, amit kumar <[EMAIL PROTECTED]>:
> HI,
> Just like WAR can I as well exclude some files from JAR builds as well?
>
> I have used this, but not working.
>
>   
> 
>   org.apache.maven.plugins
>   maven-jar-plugin
>   2.1
>   
>
>   
>  jar
> 
>
> 
> 
> **/*.xsd
>src/schema/xsd
> 
>   
>
> Am I missing something?
>
> Amit
>

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



Excluding files from JAR

2008-01-10 Thread amit kumar
HI,
Just like WAR can I as well exclude some files from JAR builds as well?

I have used this, but not working.

  

  org.apache.maven.plugins
  maven-jar-plugin
  2.1
  
   
  
 jar

   


**/*.xsd
   src/schema/xsd

  

Am I missing something?

Amit