From 7b182dfb4bda383479e55427480cdf37f0be261d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 10 Apr 2012 21:40:19 +0200 Subject: [PATCH] Add the entries "Implementation-Build" (Git revision) and "Build-Time" to JAR/WAR manifests. Note that plugins are not supported yet because of http://jira.codehaus.org/browse/SONAR-3405 --- pom.xml | 80 ++++++++++++++++++++++++++++++++++---------- sonar-server/pom.xml | 5 ++- 2 files changed, 66 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index 39ed5ef6a62..74c0245285c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,6 @@ - + 4.0.0 org.codehaus.sonar @@ -91,6 +92,8 @@ UTF-8 2.2.1 1.5 + ${maven.build.timestamp} + yyyy-MM-dd'T'HH:mm:ssZ org.codehaus.mojo.signature @@ -101,7 +104,7 @@ false - + -Xmx512m -Xss1024k dav:https://dav.codehaus.org/snapshots.repository/sonar @@ -151,6 +154,11 @@ + + org.codehaus.mojo + buildnumber-maven-plugin + 1.0 + org.apache.maven.plugins maven-clean-plugin @@ -277,6 +285,25 @@ + + org.codehaus.mojo + buildnumber-maven-plugin + + + validate + + create + + + + + false + false + true + 0 + + + org.apache.maven.plugins maven-compiler-plugin @@ -309,11 +336,13 @@ true - To build this project JDK ${jdk.min.version} (or upper) is required. Please install it. + To build this project JDK ${jdk.min.version} (or upper) is required. Please install it. + ${jdk.min.version} - To build this project Maven ${maven.min.version} (or upper) is required. Please install it. + To build this project Maven ${maven.min.version} (or upper) is required. Please install it. + ${maven.min.version} @@ -345,7 +374,9 @@ - The rules for repo1.maven.org are that pom.xml files should not include repository definitions. + The rules for repo1.maven.org are that pom.xml files should not include repository + definitions. + @@ -359,6 +390,9 @@ ${project.version} + + ${buildNumber} + ${timestamp} @@ -467,12 +501,21 @@ true - The Apache Software License, Version 2.0|Apache License 2.0|Apache 2|Apache License Version 2|Apache License Version 2.0|Apache Public License 2.0|Apache Software License - Version 2.0|Apache Software Licenses - GNU Lesser General Public License, Version 2.1|GNU Lesser General Public License Version 2.1|GNU Lesser General Public License (LGPL), Version 2.1 + The Apache Software License, Version 2.0|Apache License 2.0|Apache 2|Apache License Version + 2|Apache License Version 2.0|Apache Public License 2.0|Apache Software License - Version 2.0|Apache + Software Licenses + + GNU Lesser General Public License, Version 2.1|GNU Lesser General Public License Version + 2.1|GNU Lesser General Public License (LGPL), Version 2.1 + BSD|BSD License|The BSD License - Common Public License, Version 1.0|Common Public License - v 1.0|Common Public License Version 1.0 + Common Public License, Version 1.0|Common Public License - v 1.0|Common Public License Version + 1.0 + Eclipse Public License, Version 1.0|Eclipse Public License - Version 1.0 - Common Development and Distribution License, Version 1.0|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0|Common Development and Distribution License (CDDL) v1.0 + Common Development and Distribution License, Version 1.0|COMMON DEVELOPMENT AND DISTRIBUTION + LICENSE (CDDL) Version 1.0|Common Development and Distribution License (CDDL) v1.0 + MIT License|The MIT License @@ -1096,13 +1139,14 @@ org.apache.maven.plugins maven-javadoc-plugin - - - net.*:org.sonar.application:org.sonar.server:org.sonar.graph:org.sonar.batch:org.sonar.channel:org.sonar.java:org.sonar.maven*:org.sonar.plugins.*:org.sonar.colorizer:org.sonar.squid:org.sonar.core:org.sonar.jpa:org.sonar.duplications:org.sonar.markdown:com.* + + + net.*:org.sonar.application:org.sonar.server:org.sonar.graph:org.sonar.batch:org.sonar.channel:org.sonar.java:org.sonar.maven*:org.sonar.plugins.*:org.sonar.colorizer:org.sonar.squid:org.sonar.core:org.sonar.jpa:org.sonar.duplications:org.sonar.markdown:com.* false true - ${project.reporting.outputDirectory}/${project.version}/apidocs + ${project.reporting.outputDirectory}/${project.version}/apidocs + @@ -1137,7 +1181,7 @@ - + @@ -1150,7 +1194,7 @@ - + @@ -1163,7 +1207,7 @@ - + @@ -1177,7 +1221,7 @@ - + @@ -1190,7 +1234,7 @@ - + diff --git a/sonar-server/pom.xml b/sonar-server/pom.xml index ce15518e512..ac291a11f25 100644 --- a/sonar-server/pom.xml +++ b/sonar-server/pom.xml @@ -308,7 +308,10 @@ - ${project.version} + ${project.version} + + ${buildNumber} + ${timestamp}