You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2018/12/25 22:02:29 UTC
[jspwiki] branch master updated: new maven profile to generate
sources and javadocs,
so the ci build doesn't complain about being unable to gpg sign artifacts
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git
The following commit(s) were added to refs/heads/master by this push:
new f333843 new maven profile to generate sources and javadocs, so the ci build doesn't complain about being unable to gpg sign artifacts
f333843 is described below
commit f333843dba0c778da82f3ba25050acba59b9861c
Author: juanpablo <ju...@apache.org>
AuthorDate: Tue Dec 25 23:02:03 2018 +0100
new maven profile to generate sources and javadocs, so the ci build doesn't complain about being unable to gpg sign artifacts
---
Jenkinsfile | 2 +-
pom.xml | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index b99e950..d5bf1dd 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,7 +43,7 @@ try {
withEnv( [ "Path+JDK=$JAVA_JDK_8/bin", "Path+MAVEN=$MAVEN_3_LATEST/bin", "JAVA_HOME=$JAVA_JDK_8" ] ) {
withSonarQubeEnv( 'ASF Sonar Analysis' ) {
echo "Will use SonarQube instance at $SONAR_HOST_URL"
- sh "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Papache-release $SONAR_MAVEN_GOAL"
+ sh "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Pattach-additional-artifacts $SONAR_MAVEN_GOAL"
}
}
}
diff --git a/pom.xml b/pom.xml
index d469234..30c793e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -848,6 +848,48 @@
</plugins>
</build>
</profile>
+
+ <profile> <!-- attach additional artifacts to build lifecycle -->
+ <id>attach-additional-artifacts</id>
+
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ <property>
+ <name>additional_artifacts</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>artifact-sources</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>artifact-javadocs</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<organization>