OSDN Git Service

dependency maven-javadoc-plugin
[importpicture/importpicture.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index 446da37..cac6b04 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -2,11 +2,12 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>osm.surveyor</groupId>
   <artifactId>AdjustTime</artifactId>
-  <version>5.3-SNAPSHOT</version>
+  <version>5.3.8-SNAPSHOT</version>
   <scm>
     <connection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/AdjustTime.git</connection>
     <url>http://surveyor.mydns.jp/gitbucket/yuu/AdjustTime/wiki</url>
     <developerConnection>scm:git:http://surveyor.mydns.jp/gitbucket/git/yuu/AdjustTime.git</developerConnection>
+    <tag>v5.3.7</tag>
   </scm>
   
   <properties>
     <maven.compiler.target>${java.version}</maven.compiler.target>
     <gpg.skip>true</gpg.skip>
   </properties>
-    
+  
+  <!-- DEPLOY先の指定  mvn deploy -->
+  <distributionManagement>
+    <repository>
+      <id>surveyor.haya4</id>
+      <name>Internal Release Repository</name>
+      <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
+    </repository>
+    <snapshotRepository>
+      <id>surveyor.snapshots</id>
+      <url>http://surveyor.mydns.jp/archiva/repository/snapshots/</url>
+    </snapshotRepository>
+  </distributionManagement>
+
   <repositories>
     <repository>
-      <id>haya4</id>
+      <id>surveyor.mirror</id>
+      <name>Hayashi Repository</name>
+      <url>http://surveyor.mydns.jp/archiva/repository/mirror/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </repository>
+    <repository>
+      <id>surveyor.haya4</id>
       <name>Hayashi Repository</name>
       <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
       <releases>
         <enabled>false</enabled>
       </snapshots>
     </repository>
+    <repository>
+      <id>surveyor.snapshots</id>
+      <name>Archiva Managed Snapshot Repository</name>
+      <url>http://surveyor.mydns.jp/archiva/repository/snapshots/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </repository>
+
   </repositories>
 
+  <pluginRepositories>
+    <pluginRepository>
+      <id>surveyor.haya4</id>
+      <name>haya4</name>
+      <url>http://surveyor.mydns.jp/archiva/repository/haya4/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </pluginRepository>
+    <pluginRepository>
+      <id>surveyor.snapshots</id>
+      <name>Archiva Managed Snapshot Repository</name>
+      <url>http://surveyor.mydns.jp/archiva/repository/snapshots/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </pluginRepository>
+    
+    <pluginRepository>
+      <id>sonatype-public-repository</id>
+      <url>https://oss.sonatype.org/content/groups/public</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </pluginRepository>
+    
+    <pluginRepository>
+      <id>com.googlecode.maven-download-plugin</id>
+      <url>https://mvnrepository.com/artifact</url>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+    </pluginRepository>
+  </pluginRepositories>
+
   <dependencies>
+    <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-imaging -->
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-imaging</artifactId>
-      <version>1.0-alpha1</version>
+      <version>1.0-alpha2</version>
+      <type>jar</type>
+    </dependency>
+         
+    <!-- https://mvnrepository.com/artifact/com.googlecode.maven-download-plugin/download-maven-plugin -->
+    <dependency>
+      <groupId>com.googlecode.maven-download-plugin</groupId>
+      <artifactId>download-maven-plugin</artifactId>
+      <version>1.6.0</version>
+      <scope>test</scope>
       <type>jar</type>
     </dependency>
     
       <scope>test</scope>
       <type>jar</type>
     </dependency>
+    
+    <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-release-plugin -->
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-release-plugin</artifactId>
+      <version>2.5.3</version>
+      <type>jar</type>
+    </dependency>
+    
+    <!-- https://mvnrepository.com/artifact/commons-lang/commons-lang -->
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+      <version>2.4</version>
+      <type>jar</type>
+    </dependency>
+
+    <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-javadoc-plugin -->
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-javadoc-plugin</artifactId>
+      <version>3.0.1</version>
+    </dependency>
+
   </dependencies>
   
   <build>
           <encoding>UTF-8</encoding>
         </configuration>
       </plugin>
+             
+      <!-- mvn generate-test-resources:get -->
+      <plugin>
+        <groupId>com.googlecode.maven-download-plugin</groupId>
+        <artifactId>download-maven-plugin</artifactId>
+        <version>1.6.0</version>
+        <executions>
+          <execution>
+            <id>install-Sony20170518</id>
+            <phase>generate-test-resources</phase>
+            <goals>
+              <goal>wget</goal>
+            </goals>
+            <configuration>
+              <url>http://surveyor.mydns.jp/data/Sony20170518.tar.gz</url>
+              <unpack>false</unpack>
+              <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>install-WiMiUS20170518</id>
+            <phase>generate-test-resources</phase>
+            <goals>
+              <goal>wget</goal>
+            </goals>
+            <configuration>
+              <url>http://surveyor.mydns.jp/data/WiMiUS20170518.tar.gz</url>
+              <unpack>false</unpack>
+              <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
+            </configuration>
+          </execution>
+          <execution>
+            <id>install-separate</id>
+            <phase>generate-test-resources</phase>
+            <goals>
+              <goal>wget</goal>
+            </goals>
+            <configuration>
+              <url>http://surveyor.mydns.jp/data/separate.tar.gz</url>
+              <unpack>false</unpack>
+              <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
       
       <!-- mvn release:prepare -->
       <!-- mvn release:perform -->
         <artifactId>maven-release-plugin</artifactId>
         <version>2.5.3</version>
         <configuration>
-          <!-- mvn release:profileで何をするか -->
-          <releaseProfiles>deploy</releaseProfiles>
-          <!-- Gitのタグ名をどうするか  -->
-          <!-- 『@{project.version}』にpomのバージョン番号がはいる(1.0.1など) -->
+          <releaseProfiles>install</releaseProfiles>
           <tagNameFormat>v@{project.version}</tagNameFormat>
         </configuration>
       </plugin>
 
-      <!-- Allows the example to be run via 'mvn compile exec:java' -->
+      <!-- 対策 "[ERROR] Exit code: 1 - javadoc: エラー - ドキュメント化しようとしているコードではモジュールが使用されていますが、" -->
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <version>1.6.0</version>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <version>3.0.1</version>
         <configuration>
-          <mainClass>osm.jp.gpx.ImportPicture</mainClass>
-          <includePluginDependencies>false</includePluginDependencies>
+          <encoding>UTF-8</encoding>
+          <docencoding>UTF-8</docencoding>
+          <charset>UTF-8</charset>
+          <source>8</source>
         </configuration>
       </plugin>
 
     </plugins>
+    
+    
   </build>
   
-</project>
\ No newline at end of file
+</project>