[maven-archiver] branch MSHARED-800 created (now 465c6f6)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[maven-archiver] branch MSHARED-800 created (now 465c6f6)

michaelo
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a change to branch MSHARED-800
in repository https://gitbox.apache.org/repos/asf/maven-archiver.git.


      at 465c6f6  [MSHARED-800] Remove Maven version from pom.properties

This branch includes the following new commits:

     new 465c6f6  [MSHARED-800] Remove Maven version from pom.properties

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Reply | Threaded
Open this post in threaded view
|

[maven-archiver] 01/01: [MSHARED-800] Remove Maven version from pom.properties

michaelo
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MSHARED-800
in repository https://gitbox.apache.org/repos/asf/maven-archiver.git

commit 465c6f6fdcafa60192384d921eeb91b615b29406
Author: Michael Osipov <[hidden email]>
AuthorDate: Wed Feb 6 20:45:31 2019 +0100

    [MSHARED-800] Remove Maven version from pom.properties
---
 .../java/org/apache/maven/archiver/PomPropertiesUtil.java  | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java b/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
index ad71b52..cac5841 100644
--- a/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
+++ b/src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java
@@ -36,8 +36,6 @@ import org.codehaus.plexus.archiver.Archiver;
 
 /**
  * This class is responsible for creating the pom.properties file.
- *
- * @version $Id$
  */
 public class PomPropertiesUtil
 {
@@ -90,22 +88,12 @@ public class PomPropertiesUtil
         PrintWriter pw = new PrintWriter( outputFile, "ISO-8859-1" );
         try
         {
-            String createdBy = CREATED_BY_MAVEN;
-            if ( session != null ) // can be null due to API backwards compatibility
-            {
-                String mavenVersion = session.getSystemProperties().getProperty( "maven.version" );
-                if ( mavenVersion != null )
-                {
-                    createdBy += " " + mavenVersion;
-                }
-            }
-
             StringWriter sw = new StringWriter();
             properties.store( sw, null );
 
             BufferedReader r = new BufferedReader( new StringReader( sw.toString() ) );
 
-            pw.println( "#" + createdBy );
+            pw.println( "# " + CREATED_BY_MAVEN );
             String line;
             while ( ( line = r.readLine() ) != null )
             {