You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2019/02/06 19:45:41 UTC
[maven-archiver] 01/01: [MSHARED-800] Remove Maven version from
pom.properties
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 <mi...@apache.org>
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 )
{