You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tulasi <tu...@realsoftinc.com> on 2006/06/16 11:11:48 UTC

Exclude pom.xml and pom.properties.

Hi,

I am trying to exclude pom.xml and pom.properties while creating jar. for
this i am maven-jar-plugin. But i am getting build error. 
but i am getting error at "addMavenDescriptor".

what was settings i missed?. 


i am configured like :
 <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
</plugins>
</build>


--
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-t1797122.html#a4897323
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by tulasi <tu...@realsoftinc.com>.
Hi,

I am getting follwing error.   
i tried with -U option also.  but .. same error

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-jar-plugin:2.0



Cause: Cannot find setter nor field in
org.apache.maven.archiver.MavenArchiveConfiguration for 'addMavenDescriptor'
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 33 seconds
[INFO] Finished at: Mon Jun 19 10:06:08 GMT+05:30 2006
[INFO] Final Memory: 5M/10M
[INFO]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-t1797122.html#a4930604
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by tulasi <tu...@realsoftinc.com>.
why not in jars?
--
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-t1797122.html#a4930617
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by anita kulshreshtha <a_...@yahoo.com>.
     A related question...
    Can the same thing be done to exclude pom.xml and pom.properties
files from the ears and rars.

Thanks In Advance
Anita

--- Edwin Punzalan <ep...@exist.com> wrote:

> 
> Maybe you can give us your error... 'cause I tried your configuration
> in 
> a project of mine and it worked.
> 
> 
> tulasi wrote:
> > Hi,
> >
> > I am trying to exclude pom.xml and pom.properties while creating
> jar. for
> > this i am maven-jar-plugin. But i am getting build error. 
> > but i am getting error at "addMavenDescriptor".
> >
> > what was settings i missed?. 
> >
> >
> > i am configured like :
> >  <build>
> > <plugins>
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-jar-plugin</artifactId>
> > <configuration>
> > <archive>
> > <addMavenDescriptor>false</addMavenDescriptor>
> > </archive>
> > </configuration>
> > </plugin>
> > </plugins>
> > </build>
> >
> >
> > --
> > View this message in context:
>
http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-t1797122.html#a4897323
> > Sent from the Maven - Users forum at Nabble.com.
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by Edwin Punzalan <ep...@exist.com>.
Maybe you can give us your error... 'cause I tried your configuration in 
a project of mine and it worked.


tulasi wrote:
> Hi,
>
> I am trying to exclude pom.xml and pom.properties while creating jar. for
> this i am maven-jar-plugin. But i am getting build error. 
> but i am getting error at "addMavenDescriptor".
>
> what was settings i missed?. 
>
>
> i am configured like :
>  <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
>
> --
> View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-t1797122.html#a4897323
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by Rob2000 <ca...@yahoo.ca>.
It worked! (I've never seen an answer so fast)
Many thanks
-- 
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-tf1797122.html#a5199636
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by tulasi <tu...@realsoftinc.com>.
Its Very Simple.


open maven-jar-plugin-2.0.pom under 
.m2\repository\org\apache\maven\plugins\maven-jar-plugin\2.0

change dependency maven-archiver  version 2.0 to  2.1 like as follows.

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-archiver</artifactId>
      <version>2.1</version>
    </dependency>





-- 
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-tf1797122.html#a5199518
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by Rob2000 <ca...@yahoo.ca>.
I'm new with Maven2.

I would like to know exactly the change (all instructions and steps) to make
to point my local repository Maven-jar-plugin to get the solution works with
addMavenDescriptor.

Thanks in advance.
-- 
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-tf1797122.html#a5199283
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by tulasi <tu...@realsoftinc.com>.
Hi All, 

I got one temporery solution for this thread. 

Maven-archiver  version 2.1 now available in remote repository.
But Maven-jar-plugin pointing to maven-archiver 2.0.   a small solution for
this .. change the version in  maven-jar-plugin.pom in your local
repository.

Thanks 


-- 
View this message in context: http://www.nabble.com/Exclude-pom.xml-and-pom.properties.-tf1797122.html#a5101857
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Exclude pom.xml and pom.properties.

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/16/06, tulasi <tu...@realsoftinc.com> wrote:

> I am trying to exclude pom.xml and pom.properties while creating jar. for
> this i am maven-jar-plugin. But i am getting build error.
> but i am getting error at "addMavenDescriptor".
>
> what was settings i missed?.

Since Edwin confirmed that your configuration works for him, my guess
is that you're using an old version of the jar plugin.

Try adding "-U" to the command line to make Maven download the latest,
or add a <version> element to your plugin configuration.  If more than
one developer works on your project, explicitly stating the version
number is a good idea.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org