You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Lahiru Gunathilake <gl...@gmail.com> on 2012/02/03 16:14:50 UTC
Copying license files to my jar in maven-jar-plugin
Hi all,
I have an issue with one of the Apache Incubator project when it comes to
copying license files. In Apache we use apache parent pom as the main
parent pom of our project. So when we use it it simply copy LICENSE,NOTICE
files of its own to my jars. I have LICENSE,NOTICE files with me for each
module I build. I want to override them and make sure my LICENSE,NOTICE
files are there in place when jar get created.
But I am having a hard time to do that, because I couldn't find proper
configuration of maven-jar-plugin.. if someone can point me to all the
configuration parameters of maven-jar-plugin that would be great, or please
advice me how to solve this kind of an issue.
Regards
Lahiru
--
System Analyst Programmer
PTI Lab
Indiana University
Re: Copying license files to my jar in maven-jar-plugin
Posted by Nick Stolwijk <ni...@gmail.com>.
I think you may be looking at the wrong plugin. If I take a look at
the Apache Parent Pom [1] I see an execution of the
remote-resources-plugin, which is extracting the LICENSE, etc into the
directory the jar plugin is going to process. I think you need to
change the configuration of the remote-resources-plugin.
[1] http://repo1.maven.org/maven2/org/apache/apache/9/apache-9.pom
Hth,
Nick Stolwijk
~~~ Try to leave this world a little better than you found it and,
when your turn comes to die, you can die happy in feeling that at any
rate you have not wasted your time but have done your best ~~~
Lord Baden-Powell
On Fri, Feb 3, 2012 at 4:14 PM, Lahiru Gunathilake <gl...@gmail.com> wrote:
> Hi all,
>
> I have an issue with one of the Apache Incubator project when it comes to
> copying license files. In Apache we use apache parent pom as the main
> parent pom of our project. So when we use it it simply copy LICENSE,NOTICE
> files of its own to my jars. I have LICENSE,NOTICE files with me for each
> module I build. I want to override them and make sure my LICENSE,NOTICE
> files are there in place when jar get created.
>
> But I am having a hard time to do that, because I couldn't find proper
> configuration of maven-jar-plugin.. if someone can point me to all the
> configuration parameters of maven-jar-plugin that would be great, or please
> advice me how to solve this kind of an issue.
>
> Regards
> Lahiru
>
> --
> System Analyst Programmer
> PTI Lab
> Indiana University
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org