Skip to content

Commit

Permalink
fix: maven site build
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jul 5, 2018
1 parent 2a8172b commit 93239b5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void mavenSite() {
withCredentials(
[[$class : 'UsernamePasswordMultiBinding', credentialsId: 'zanata-jenkins',
usernameVariable: 'GIT_USERNAME', passwordVariable: 'GITHUB_OAUTH2_TOKEN']]) {
sh "./mvnw -e package site -DskipTests -Dfindbugs.skip -Dgithub.global.oauth2Token=$GITHUB_OAUTH2_TOKEN --batch-mode -pl common -am"
sh "./mvnw package site -DskipTests -Dfindbugs.skip -Dgithub.global.oauth2Token=$GITHUB_OAUTH2_TOKEN --batch-mode -pl common -am"
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@
<includes>${apidocs.dir}/**</includes>
</configuration>
</plugin>

<!--
The following 2 plugins are required for
https://stackoverflow.com/questions/51091539/maven-site-plugins-3-3-java-lang-classnotfoundexception-org-apache-maven-doxia
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</plugin>
</plugins>


Expand Down
16 changes: 16 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
<maven-surefire-plugin.version>2.20.1</maven-surefire-plugin.version>
<maven-install-plugin.version>2.5.2</maven-install-plugin.version>

<maven-site-plugin.version>3.3</maven-site-plugin.version>
<maven-project-info-reports-plugin.version>2.7</maven-project-info-reports-plugin.version>

<coverage.complexity.min>0.70</coverage.complexity.min>
<coverage.line.min>0.85</coverage.line.min>

Expand Down Expand Up @@ -602,6 +605,16 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>${maven-site-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>${maven-project-info-reports-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -775,6 +788,9 @@
<phase>site</phase>
</execution>
</executions>
<dependencies>

</dependencies>
</plugin>

<plugin>
Expand Down

0 comments on commit 93239b5

Please sign in to comment.