Repository: nutch
Updated Branches:
  refs/heads/2.x 8438b0658 -> 7fc92a247


NUTCH-2243 REST API documentation for Nutch 2.X


Project: http://git-wip-us.apache.org/repos/asf/nutch/repo
Commit: http://git-wip-us.apache.org/repos/asf/nutch/commit/728d0de8
Tree: http://git-wip-us.apache.org/repos/asf/nutch/tree/728d0de8
Diff: http://git-wip-us.apache.org/repos/asf/nutch/diff/728d0de8

Branch: refs/heads/2.x
Commit: 728d0de8bac399ac8dff5d0a0eee89f5c53428b9
Parents: 72a99cf
Author: Furkan KAMACI <[email protected]>
Authored: Sun Jun 19 18:16:30 2016 +0300
Committer: Furkan KAMACI <[email protected]>
Committed: Tue Jun 21 23:19:42 2016 +0300

----------------------------------------------------------------------
 build.xml        | 25 +++++++++++++++++
 ivy/mvn.template | 75 ++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 76 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nutch/blob/728d0de8/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 4ae31eb..4e4b415 100644
--- a/build.xml
+++ b/build.xml
@@ -285,6 +285,31 @@
   </artifact:mvn>
  </target>
 
+    <!-- ================================================================== -->
+    <!-- Generate REST API Documentation with Miredot                       -->
+    <!-- ================================================================== -->
+ <target name="restdocs" description="--> generate REST API Documentation with 
Miredot">
+
+    <!-- generate a pom file -->
+   <ivy:makepom ivyfile="${ivy.file}" pomfile="${basedir}/pom.xml" 
templatefile="ivy/mvn.template">
+     <mapping conf="default" scope="compile"/>
+     <mapping conf="runtime" scope="runtime"/>
+   </ivy:makepom>
+
+   <!--artifact:dependencies pathId="dependency.classpath">
+     <dependency groupId="log4j" artifactId="log4j" version="1.2.15" >
+       <exclusion groupId="javax.jms" artifactId="jms" />
+       <exclusion groupId="com.sun.jdmk" artifactId="jmxtools" />
+       <exclusion groupId="com.sun.jmx" artifactId="jmxri" />
+     </dependency>
+   </artifact:dependencies-->
+
+   <artifact:mvn>
+    <arg value="test"/>
+    <arg value="-e"/>
+   </artifact:mvn>
+ </target>
+
  <!-- ================================================================== -->
  <!-- Make job jar -->
  <!-- ================================================================== -->

http://git-wip-us.apache.org/repos/asf/nutch/blob/728d0de8/ivy/mvn.template
----------------------------------------------------------------------
diff --git a/ivy/mvn.template b/ivy/mvn.template
index 4f65fc8..c86a923 100644
--- a/ivy/mvn.template
+++ b/ivy/mvn.template
@@ -37,6 +37,15 @@
      <url>http://svn.apache.org/viewvc/nutch</url>
      <connection>http://svn.apache.org/viewvc/nutch</connection>
   </scm>
+
+  <pluginRepositories>
+    <pluginRepository>
+      <id>miredot</id>
+      <name>MireDot Releases</name>
+      <url>http://nexus.qmino.com/content/repositories/miredot</url>
+    </pluginRepository>
+  </pluginRepositories>
+
   <developers>
                        <developer>
                        <id>mattmann</id>
@@ -84,29 +93,47 @@
                        <email>[email protected]</email>
                </developer>
        </developers>
-        <build>
-          <sourceDirectory>src/java</sourceDirectory>
-          <testSourceDirectory>src/test</testSourceDirectory>
-          <testResources>
-             <testResource>
-               <directory>src/testresources</directory>
-             </testResource>
-             <testResource>
-               <directory>src/testprocess</directory>
-             </testResource>
-          </testResources>
-          <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>org.apache.maven.plugins</groupId>
-                    <artifactId>maven-compiler-plugin</artifactId>
-                    <configuration>
-                        <source>1.5</source>
-                        <target>1.5</target>
-                    </configuration>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-        </build>
+  <build>
+    <sourceDirectory>src/java</sourceDirectory>
+    <testSourceDirectory>src/test</testSourceDirectory>
+    <testResources>
+      <testResource>
+        <directory>src/testresources</directory>
+      </testResource>
+    </testResources>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <configuration>
+            <source>1.7</source>
+            <target>1.7</target>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+    <plugins>
+      <plugin>
+        <groupId>com.qmino</groupId>
+        <artifactId>miredot-maven-plugin</artifactId>
+        <version>1.4</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>restdoc</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <licence>
+            <!-- Miredot license key valid until Oct 30th 2017. The key is 
valid for two years, after which we are free to request a new key. -->
+            
cHJvamVjdHxvcmcuYXBhY2hlLm51dGNoLm51dGNofDIwMTctMTAtMzB8dHJ1ZXwtMSNNQ3dDRkh2N1BsSXZvbWMzTGYxTXBHd3RYcVhEUnZsR0FoUjh3UWVhbG44TkdMUWhzVnJjVnNvNlJEZFBHQT09
+          </licence>
+          <!-- insert other configuration here (optional) -->
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
 

Reply via email to