File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 49
49
<distributionManagement >
50
50
<site >
51
51
<id >${project.artifactId} -site</id >
52
- <url >${project.baseUri } </url >
52
+ <url >${project.scm.developerConnection } </url >
53
53
</site >
54
54
</distributionManagement >
55
55
69
69
-->
70
70
<id >javadoc-site</id >
71
71
<build >
72
- <defaultGoal >clean javadoc:aggregate</defaultGoal >
72
+ <defaultGoal >clean package javadoc:aggregate</defaultGoal >
73
+ </build >
74
+ </profile >
75
+
76
+ <profile >
77
+ <!--
78
+ Uses the maven-scm-publish-plugin to publish javadocs to gh-pages
79
+
80
+ mvn -Pjavadoc-site
81
+ mvn -Ppublish-javadoc-site
82
+ -->
83
+ <id >publish-javadoc-site</id >
84
+ <build >
85
+ <defaultGoal >scm-publish:publish-scm</defaultGoal >
86
+ <plugins >
87
+ <plugin >
88
+ <artifactId >maven-scm-publish-plugin</artifactId >
89
+ <configuration >
90
+ <scmBranch >gh-pages</scmBranch >
91
+ <content >${project.reporting.outputDirectory} /apidocs</content >
92
+ <checkinComment >doc: update by maven-scm-publish-plugin</checkinComment >
93
+ <ignorePathsToDelete >
94
+ <ignorePathsToDelete >.gitignore</ignorePathsToDelete >
95
+ <ignorePathsToDelete >.gitattributes</ignorePathsToDelete >
96
+ </ignorePathsToDelete >
97
+ </configuration >
98
+ </plugin >
99
+ </plugins >
73
100
</build >
74
101
</profile >
75
102
You can’t perform that action at this time.
0 commit comments