Difference between revisions of "Multi-Module Maven with github pages"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* https://github.com/BITPlan/com.bitplan.multimodule which uses | * https://github.com/BITPlan/com.bitplan.multimodule which uses | ||
* https://github.com/BITPlan/com.bitplan.pom for the [https://github.com/BITPlan/com.bitplan.pom/blob/master/pom.xml parent pom definition] | * https://github.com/BITPlan/com.bitplan.pom for the [https://github.com/BITPlan/com.bitplan.pom/blob/master/pom.xml parent pom definition] | ||
+ | in which the [https://github.com/github/maven-plugins github maven site plugin] is defined | ||
+ | |||
Following the suggestion of https://stackoverflow.com/a/19336536/1497139 led to adding | Following the suggestion of https://stackoverflow.com/a/19336536/1497139 led to adding | ||
<source lang='xml'> | <source lang='xml'> | ||
Line 16: | Line 18: | ||
</source> | </source> | ||
to the parent pom.xml | to the parent pom.xml | ||
+ | <source lang='bash'> | ||
+ | mvn clean site | ||
+ | ... wait a long while ... | ||
+ | |||
+ | [INFO] Multi-Module ....................................... SUCCESS [04:22 min] | ||
+ | [INFO] Multi-Module 1 ..................................... SUCCESS [04:09 min] | ||
+ | [INFO] Multi-Module 2 ..................................... SUCCESS [04:09 min] | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [INFO] BUILD SUCCESS | ||
+ | [INFO] ------------------------------------------------------------------------ | ||
+ | [INFO] Total time: 12:42 min | ||
+ | </source> | ||
= Stackoverflow questions = | = Stackoverflow questions = |
Revision as of 15:34, 23 August 2018
Motivation
The issues
led to the creation of the example project:
- https://github.com/BITPlan/com.bitplan.multimodule which uses
- https://github.com/BITPlan/com.bitplan.pom for the parent pom definition
in which the github maven site plugin is defined
Following the suggestion of https://stackoverflow.com/a/19336536/1497139 led to adding
<distributionManagement>
<site>
<id>${project.artifactId}-site</id>
<url>${project.baseUri}</url>
</site>
</distributionManagement>
to the parent pom.xml
mvn clean site
... wait a long while ...
[INFO] Multi-Module ....................................... SUCCESS [04:22 min]
[INFO] Multi-Module 1 ..................................... SUCCESS [04:09 min]
[INFO] Multi-Module 2 ..................................... SUCCESS [04:09 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:42 min