OSDN Git Service

maven-release-plugin
authorhaya4 <hayashi.yuu@gmail.com>
Wed, 6 May 2020 00:17:33 +0000 (09:17 +0900)
committerhaya4 <hayashi.yuu@gmail.com>
Wed, 6 May 2020 00:17:33 +0000 (09:17 +0900)
pom.xml

diff --git a/pom.xml b/pom.xml
index 11706e3..51676c3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,12 +4,17 @@
   <groupId>osm.surveyor</groupId>
   <artifactId>AdjustTime</artifactId>
   <version>5.3-SNAPSHOT</version>
-    
+  <scm>
+    <connection>scm:yuuhayashi@git.osdn.net:/gitroot/importpicture/importpicture.git</connection>
+    <developerConnection>scm:git:yuuhayashi@git.osdn.net:/gitroot/importpicture/importpicture.git</developerConnection>
+  </scm>
+  
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <java.version>1.8</java.version>
     <maven.compiler.source>${java.version}</maven.compiler.source>
     <maven.compiler.target>${java.version}</maven.compiler.target>
+    <gpg.skip>true</gpg.skip>
   </properties>
     
   <repositories>
           <encoding>UTF-8</encoding>
         </configuration>
       </plugin>
+      
+      <!-- mvn release:prepare -->
+      <!-- mvn release:perform -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-release-plugin</artifactId>
+        <version>2.5.3</version>
+        <configuration>
+          <!-- mvn release:profileで何をするか -->
+          <releaseProfiles>deploy</releaseProfiles>
+          <!-- Gitのタグ名をどうするか  -->
+          <!-- 『@{project.version}』にpomのバージョン番号がはいる(1.0.1など) -->
+          <tagNameFormat>v@{project.version}</tagNameFormat>
+        </configuration>
+      </plugin>
 
       <!-- Allows the example to be run via 'mvn compile exec:java' -->
       <plugin>