Robert,
I just did this today to take advantage of the excludes fix that is in
the patched version.
What I did was the following:
1) In your .m2 folder, locate the settings.xml. You need to add the
repository link into it to tell Maven where to get the plugin from. Per the
instructions I found on the web, I added the following to my settings.xml
<pluginRepository>
<id>Maven Snapshots</id>
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
2) In my pom.xml, I had to specify the version of the maven-jar-plugin I
wanted. Here is what I added:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.2-SNAPSHOT</version>
</plugin>
When you run maven, it should pull the new jar down to your local maven
repository.
To verify this, go to
.m2/repository/org/apache/maven/plugins/maven-jar-plugin
You should see a 2.2-SNAPSHOT folder now and the jar will be in there.
I tested this on my system with an excludes swith to exclude some handlers
from a jar and it worked.
Regards,
Mark
robert.egan wrote:
>
> I'd like to implement a patch for maven-jar-plugin locally. How is that
> done? I have created a local repository (file:// etc) for our custom
> plugins and some "parent" poms shared by multiple artifacts. Should I
> deploy my plugin there? Will it be preferred over the remote one if I do?
>
> The patch is already in jira (MJAR-30) so it's likely to be rolled up
> eventually, but I'd prefer not to wait. Please note that I do not use any
> tools, just maven from the command line.
>
> Thanks
> Robert Egan
>
> This email message and any attachments may contain confidential,
> proprietary or non-public information. The information is intended solely
> for the designated recipient(s). If an addressing or transmission error
> has misdirected this email, please notify the sender immediately and
> destroy this email. Any review, dissemination, use or reliance upon this
> information by unintended recipients is prohibited. Any opinions
> expressed in this email are those of the author personally.
>
--
View this message in context:
http://www.nabble.com/Patching-maven-jar-plugin-tf4477949s177.html#a13260637
Sent from the Maven Developers mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]