Skip to content

Commit 44966b9

Browse files
committed
[MSHARED-800] Remove Maven version from pom.properties
1 parent cbe8411 commit 44966b9

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/org/apache/maven/archiver/PomPropertiesUtil.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@
3636

3737
/**
3838
* This class is responsible for creating the pom.properties file.
39-
*
40-
* @version $Id$
4139
*/
4240
public class PomPropertiesUtil
4341
{
44-
private static final String CREATED_BY_MAVEN = "Created by Apache Maven";
45-
4642
private Properties loadPropertiesFile( File file )
4743
throws IOException
4844
{
@@ -90,22 +86,11 @@ private void createPropertiesFile( MavenSession session, Properties properties,
9086
PrintWriter pw = new PrintWriter( outputFile, "ISO-8859-1" );
9187
try
9288
{
93-
String createdBy = CREATED_BY_MAVEN;
94-
if ( session != null ) // can be null due to API backwards compatibility
95-
{
96-
String mavenVersion = session.getSystemProperties().getProperty( "maven.version" );
97-
if ( mavenVersion != null )
98-
{
99-
createdBy += " " + mavenVersion;
100-
}
101-
}
102-
10389
StringWriter sw = new StringWriter();
10490
properties.store( sw, null );
10591

10692
BufferedReader r = new BufferedReader( new StringReader( sw.toString() ) );
10793

108-
pw.println( "#" + createdBy );
10994
String line;
11095
while ( ( line = r.readLine() ) != null )
11196
{

0 commit comments

Comments
 (0)