[ANN] Apache Maven Shade Plugin 3.1.0 Released

2017-08-22 Thread Robert Scholte
The Apache Maven team is pleased to announce the release of the Apache  
Maven Shade Plugin, version 3.1.0


This plugin provides the capability to package the artifact in an  
uber-jar, including its dependencies and to shade - i.e. rename - the  
packages of some of the dependencies.


https://maven.apache.org/plugins/maven-shade-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-shade-plugin
  3.1.0


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/plugins/maven-shade-plugin/download.cgi

Note: This is a Java 9 support release. Be aware when using this on jars  
with module descriptors; it's intended strong encapsulation (i.e. not  
exported packages) will be lost. This is actually a JVM issue which is  
hopefully resolved in a future version of Java.


Release Notes - Maven Shade Plugin - Version 3.1.0

** Bug
* [MSHADE-242] - Plugin does not work with Java 9
* [MSHADE-247] - NullpointerException when createSourcesJar = true and  
source jar cannot be found
* [MSHADE-253] - NullPointerException if minimizeJar == true &&  
packaging == pom

* [MSHADE-255] - IllegalArgumentException on relocating class
* [MSHADE-258] - RemappingClassAdapter is deprecated and throws an  
exception with ASM 6.0 beta


** Improvement
* [MSHADE-257] - Bad zero length source jars published by 3rd parties  
cause source jar creation to fail.


Enjoy,

-The Apache Maven team

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



Re: How to up date a property in a POM to a specific value

2017-08-22 Thread Anders Hammar
Specifying property values from command line when doing a release could be
bad practice, as the pom deployed would not contain the value from command
line. It all depends on what the property is used for.

/Anders

On Tue, Aug 22, 2017 at 10:34 AM, John Patrick 
wrote:

> I think I do similar and I simply use
> -DpropertyName=newValueForProperty on the command line when executing
> the maven command, or via a profile and then activate the required
> profile.
>
> Just checking the property is already defined in a pom e.g.
> ..oldValueForProperty propertyName>
>
> At build time I would simply change the command line I'm using to
> build. I do this type of thing all the line when testing new
> dependencies, different external systems, loading different
> properties/config via a different dependency.
>
> John
>
>
> On 21 August 2017 at 08:50,   wrote:
> > Hello mailing,
> >
> > I use property values, defined in a POM, during resource filtering. I'd
> like to change this properties during my release process. I know that the
> Maven Version Plugin has a goal named update-properties. But it requires
> that the properties are used in the dependency definition. I search for
> something like 'set-property -Dname=propertyName
> -Dvalue=newValueForProperty'. Do you know a Maven Plugin that supports this
> use case?
> >
> > Thank you and best regards,
> >
> > Sandra Parsick
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: How to up date a property in a POM to a specific value

2017-08-22 Thread John Patrick
I think I do similar and I simply use
-DpropertyName=newValueForProperty on the command line when executing
the maven command, or via a profile and then activate the required
profile.

Just checking the property is already defined in a pom e.g.
..oldValueForProperty

At build time I would simply change the command line I'm using to
build. I do this type of thing all the line when testing new
dependencies, different external systems, loading different
properties/config via a different dependency.

John


On 21 August 2017 at 08:50,   wrote:
> Hello mailing,
>
> I use property values, defined in a POM, during resource filtering. I'd like 
> to change this properties during my release process. I know that the Maven 
> Version Plugin has a goal named update-properties. But it requires that the 
> properties are used in the dependency definition. I search for something like 
> 'set-property -Dname=propertyName -Dvalue=newValueForProperty'. Do you know a 
> Maven Plugin that supports this use case?
>
> Thank you and best regards,
>
> Sandra Parsick
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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