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 4949 <distributionManagement >
5050 <site >
5151 <id >${project.artifactId} -site</id >
52- <url >${project.baseUri } </url >
52+ <url >${project.scm.developerConnection } </url >
5353 </site >
5454 </distributionManagement >
5555
6969 -->
7070 <id >javadoc-site</id >
7171 <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 >
73100 </build >
74101 </profile >
75102
You can’t perform that action at this time.
0 commit comments