Updated pom.xml to build documentation only on jenkins merge-job
[openflowjava.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index b388a7376a10db1173085f45de397af8749a5510..99fed57c1f8258673e7f9b16e2da77f3f75dfaf1 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                     <target>1.7</target>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-javadoc-plugin</artifactId>
-                <version>2.8.1</version>
-                <configuration>
-                    <stylesheetfile>stylesheet.css</stylesheetfile>
-                </configuration>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>aggregate</goal>
-                        </goals>
-                        <phase>site</phase>
-                    </execution> 
-                    <execution> 
-                        <id>attach-javadocs</id>
-                        <goals>
-                            <goal>jar</goal>
-                        </goals> 
-                    </execution> 
-                </executions> 
-            </plugin>
             <plugin>
                 <artifactId>maven-source-plugin</artifactId>
                 <executions>
         </profile>
         <profile>
             <id>repoBuild</id>
-            <activation>
-                <property><name>repoBuild</name></property>
-            </activation>
             <build>
                 <plugins>
                     <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-javadoc-plugin</artifactId>
+                        <version>2.8.1</version>
                         <executions>
+                            <execution>
+                                <goals>
+                                    <goal>aggregate</goal>
+                                </goals>
+                                <phase>site</phase>
+                            </execution>
                             <execution>
                                 <id>attach-javadocs</id>
                                 <goals>
                         <executions>
                             <execution>
                                 <id>attach-sources</id>
+                                <phase>package</phase>
                                 <goals>
-                                    <goal>jar</goal>
+                                    <goal>jar-no-fork</goal>
                                 </goals>
                             </execution>
                         </executions>