OSDN Git Service

Migrating from the deprecated oss-parent to the Nexus Staging Maven Plugin. master
authorIwao AVE! <harawata@gmail.com>
Sat, 23 Apr 2016 16:55:14 +0000 (01:55 +0900)
committerIwao AVE! <harawata@gmail.com>
Sat, 23 Apr 2016 16:55:14 +0000 (01:55 +0900)
pom.xml

diff --git a/pom.xml b/pom.xml
index 2ed136b..909bf62 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
                        <scope>test</scope>
                </dependency>
        </dependencies>
+       <distributionManagement>
+               <snapshotRepository>
+                       <id>ossrh</id>
+                       <url>https://oss.sonatype.org/content/repositories/snapshots</url>
+               </snapshotRepository>
+               <repository>
+                       <id>ossrh</id>
+                       <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
+               </repository>
+       </distributionManagement>
        <build>
                <resources>
                        <resource>
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-source-plugin</artifactId>
+                               <version>2.2.1</version>
+                               <executions>
+                                       <execution>
+                                               <id>attach-sources</id>
+                                               <goals>
+                                                       <goal>jar-no-fork</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-javadoc-plugin</artifactId>
+                               <version>2.9.1</version>
+                               <executions>
+                                       <execution>
+                                               <id>attach-javadocs</id>
+                                               <goals>
+                                                       <goal>jar</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <additionalparam>-Xdoclint:none</additionalparam>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-gpg-plugin</artifactId>
+                               <version>1.5</version>
+                               <executions>
+                                       <execution>
+                                               <id>sign-artifacts</id>
+                                               <phase>verify</phase>
+                                               <goals>
+                                                       <goal>sign</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.sonatype.plugins</groupId>
+                               <artifactId>nexus-staging-maven-plugin</artifactId>
+                               <version>1.6.3</version>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <serverId>ossrh</serverId>
+                                       <nexusUrl>https://oss.sonatype.org/</nexusUrl>
+                                       <autoReleaseAfterClose>true</autoReleaseAfterClose>
+                               </configuration>
+                       </plugin>
                </plugins>
        </build>
-       <parent>
-               <groupId>org.sonatype.oss</groupId>
-               <artifactId>oss-parent</artifactId>
-               <version>7</version>
-       </parent>
 </project>