Skip to content

Commit d0c8973

Browse files
author
Charles Greer
committed
Issue #19. Mvn site repository configuration
1 parent a3618f6 commit d0c8973

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pom.xml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@
1111
<javadoc-title>${project.name} 2.0 ${maven.build.timestamp}</javadoc-title>
1212
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<github.global.server>github</github.global.server>
1415
</properties>
16+
<distributionManagement>
17+
<repository>
18+
<id>internal.repo</id>
19+
<name>Temporary Staging Repository</name>
20+
<url>file://${project.build.directory}/mvn-repo</url>
21+
</repository>
22+
</distributionManagement>
1523
<build>
1624
<plugins>
1725
<plugin>
@@ -120,6 +128,36 @@
120128
</execution>
121129
</executions>
122130
</plugin>
131+
<plugin>
132+
<artifactId>maven-deploy-plugin</artifactId>
133+
<version>2.8.1</version>
134+
<configuration>
135+
<altDeploymentRepository>internal.repo::default::file://${project.build.directory}/mvn-repo</altDeploymentRepository>
136+
</configuration>
137+
</plugin>
138+
<plugin>
139+
<groupId>com.github.github</groupId>
140+
<artifactId>site-maven-plugin</artifactId>
141+
<version>0.9</version>
142+
<configuration>
143+
<message>Maven artifacts for ${project.version}</message>
144+
<noJekyll>true</noJekyll>
145+
<outputDirectory>${project.build.directory}/mvn-repo</outputDirectory>
146+
<branch>refs/heads/mvn-repo</branch>
147+
<includes><include>**/*</include></includes>
148+
<repositoryName>java-client-api</repositoryName>
149+
<repositoryOwner>marklogic</repositoryOwner>
150+
</configuration>
151+
<executions>
152+
<!-- run site-maven-plugin's 'site' target as part of the build's normal 'deploy' phase -->
153+
<execution>
154+
<goals>
155+
<goal>site</goal>
156+
</goals>
157+
<phase>deploy</phase>
158+
</execution>
159+
</executions>
160+
</plugin>
123161
</plugins>
124162
</build>
125163
<dependencies>

0 commit comments

Comments
 (0)