OSDN Git Service

Migrating from the deprecated oss-parent to the Nexus Staging Maven Plugin.
[spring-ext/ozacc-mail.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index d612b25..909bf62 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -1,10 +1,9 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>jp.sourceforge.spring-ext</groupId>
        <artifactId>ozacc-mail</artifactId>
        <packaging>jar</packaging>
-       <version>1.2.3-SNAPSHOT</version>
+       <version>1.2.5-SNAPSHOT</version>
        <name>ozacc-mail library</name>
        <description>Library to send and receive emails.</description>
        <url>http://spring-ext.sourceforge.jp/oml/</url>
@@ -17,7 +16,7 @@
        <scm>
                <url>http://git.sourceforge.jp/view?p=spring-ext/ozacc-mail.git</url>
                <connection>scm:git:git://git.sourceforge.jp/gitroot/spring-ext/ozacc-mail.git</connection>
-               <developerConnection>scm:git:xox@git.sourceforge.jp:/gitroot/spring-ext/ozacc-mail.git</developerConnection>
+               <developerConnection>scm:git:ssh://xox@git.sourceforge.jp/gitroot/spring-ext/ozacc-mail.git</developerConnection>
        </scm>
        <developers>
                <developer>
                        <groupId>javax.mail</groupId>
                        <artifactId>mail</artifactId>
                        <version>1.4</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>javax.activation</groupId>
                        <artifactId>activation</artifactId>
                        <version>1.1</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                        <version>1.0.4</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                        <version>1.2.8</version>
+                       <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>jdom</groupId>
                        <artifactId>jdom</artifactId>
                        <version>1.0</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
-                       <groupId>velocity</groupId>
+                       <groupId>org.apache.velocity</groupId>
                        <artifactId>velocity</artifactId>
-                       <version>1.4</version>
-               </dependency>
-               <dependency>
-                       <groupId>commons-collections</groupId>
-                       <artifactId>commons-collections</artifactId>
-                       <version>2.1</version>
+                       <version>1.7</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>quartz</groupId>
                        <artifactId>quartz</artifactId>
                        <version>1.4.0</version>
+                       <scope>provided</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring</artifactId>
                        <version>2.5</version>
-                       <type>jar</type>
+                       <scope>provided</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.jvnet.mock-javamail</groupId>
+                       <artifactId>mock-javamail</artifactId>
+                       <version>1.9</version>
+                       <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>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-release-plugin</artifactId>
-                               <configuration>
-                                       <pushChanges>false</pushChanges>
-                               </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>animal-sniffer-maven-plugin</artifactId>
-                               <version>1.7</version>
+                               <version>1.11</version>
                                <executions>
                                        <execution>
                                                <id>check-java-version</id>
                                                <configuration>
                                                        <signature>
                                                                <groupId>org.codehaus.mojo.signature</groupId>
-                                                               <artifactId>java14-sun</artifactId>
+                                                               <artifactId>java14</artifactId>
                                                                <version>1.0</version>
                                                        </signature>
                                                </configuration>
                                        </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>