so/libs build fails if unit tests are disabled 05/32105/1
authorRob Daugherty <rd472p@att.com>
Mon, 19 Feb 2018 15:16:44 +0000 (10:16 -0500)
committerRob Daugherty <rd472p@att.com>
Mon, 19 Feb 2018 15:19:36 +0000 (10:19 -0500)
[ERROR] Failed to execute goal on project nova-client: Could not
resolve dependencies for project org.openecomp.so.libs.openstack-
java-sdk:nova-client:jar:1.2.0-SNAPSHOT: Could not find artifact
org.openecomp.so.libs.openstack-java-sdk:openstack-client:jar:
tests:1.2.0-SNAPSHOT

I've also noticed that the junit and mock artifacts are not
consistently declared with scope "test".

Will fix these issues, and clean up indentation in the poms.

Issue-ID: SO-432
Change-Id: I1e643c288b0cb61f2da6d98832b3aac640073b33
Signed-off-by: Rob Daugherty <rd472p@att.com>
keystone-client/pom.xml
nova-client/pom.xml
nova-model/pom.xml
openstack-client/pom.xml
pom.xml
quantum-client/pom.xml

index 6c511f4..89b6841 100644 (file)
                        <artifactId>keystone-model</artifactId>
                        <version>1.2.0-SNAPSHOT</version>
                </dependency>
-        <dependency>
-            <groupId>org.jmockit</groupId>
-            <artifactId>jmockit</artifactId>
-            <version>1.19</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.12</version>
-            <scope>test</scope>
-        </dependency>
+               <dependency>
+                       <groupId>org.jmockit</groupId>
+                       <artifactId>jmockit</artifactId>
+                       <version>1.19</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>4.12</version>
+                       <scope>test</scope>
+               </dependency>
   </dependencies>
 
-</project>
\ No newline at end of file
+</project>
index 8e5f93a..c83eb96 100644 (file)
                        <version>1.2.0-SNAPSHOT</version>
                </dependency>
                <dependency>
-            <groupId>org.jmockit</groupId>
-            <artifactId>jmockit</artifactId>
-            <version>1.19</version>
-            <scope>test</scope>
-        </dependency>
+                       <groupId>org.jmockit</groupId>
+                       <artifactId>jmockit</artifactId>
+                       <version>1.19</version>
+                       <scope>test</scope>
+               </dependency>
                <dependency>
                        <groupId>org.openecomp.so.libs.openstack-java-sdk</groupId>
                        <artifactId>openstack-client</artifactId>
                        <type>test-jar</type>
+                       <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
+                       <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-all</artifactId>
+                       <scope>test</scope>
                </dependency>
                <dependency>
                        <groupId>org.powermock</groupId>
                        <artifactId>powermock-module-junit4</artifactId>
+                       <scope>test</scope>
                </dependency>
        </dependencies>
-</project>
\ No newline at end of file
+</project>
index cc78c7a..81aa22e 100644 (file)
@@ -14,6 +14,7 @@
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.12</version>
+                       <scope>test</scope>
                </dependency>
        </dependencies>
-</project>
\ No newline at end of file
+</project>
index 671f257..fc47940 100644 (file)
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.mockito</groupId>
             <artifactId>mockito-all</artifactId>
+            <scope>test</scope>
         </dependency>
         <dependency>
             <groupId>org.powermock</groupId>
             <artifactId>powermock-api-mockito</artifactId>
+            <scope>test</scope>
         </dependency>
     </dependencies>
 
                         <goals>
                             <goal>test-jar</goal>
                         </goals>
+                        <configuration>
+                            <skip>false</skip>
+                        </configuration>
                     </execution>
                 </executions>
             </plugin>
         </plugins>
     </build>
 
-</project>
\ No newline at end of file
+</project>
diff --git a/pom.xml b/pom.xml
index 4cec6f9..32186a9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                        <url>http://repo2.maven.org/maven2/</url>
                </pluginRepository>
        </pluginRepositories>
-    <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>junit</groupId>
-                <artifactId>junit</artifactId>
-                <version>4.11</version>
-                <scope>test</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.mockito</groupId>
-                <artifactId>mockito-all</artifactId>
-                <version>1.10.19</version>
-                <scope>test</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.powermock</groupId>
-                <artifactId>powermock-api-mockito</artifactId>
-                <version>1.6.2</version>
-                <scope>test</scope>
-            </dependency>
-            <dependency>
-                <groupId>org.powermock</groupId>
-                <artifactId>powermock-module-junit4</artifactId>
-                <version>1.6.2</version>
-            </dependency>
-            <dependency>
-                <groupId>org.openecomp.so.libs.openstack-java-sdk</groupId>
-                <artifactId>openstack-client</artifactId>
-                <version>${project.version}</version>
-                <type>test-jar</type>
-                <scope>test</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
+       <dependencyManagement>
+               <dependencies>
+                       <dependency>
+                               <groupId>junit</groupId>
+                               <artifactId>junit</artifactId>
+                               <version>4.11</version>
+                               <scope>test</scope>
+                       </dependency>
+                               <dependency>
+                               <groupId>org.mockito</groupId>
+                               <artifactId>mockito-all</artifactId>
+                               <version>1.10.19</version>
+                               <scope>test</scope>
+                       </dependency>
+                               <dependency>
+                               <groupId>org.powermock</groupId>
+                               <artifactId>powermock-api-mockito</artifactId>
+                               <version>1.6.2</version>
+                               <scope>test</scope>
+                       </dependency>
+                               <dependency>
+                               <groupId>org.powermock</groupId>
+                               <artifactId>powermock-module-junit4</artifactId>
+                               <version>1.6.2</version>
+                               <scope>test</scope>
+                       </dependency>
+                       <dependency>
+                               <groupId>org.openecomp.so.libs.openstack-java-sdk</groupId>
+                               <artifactId>openstack-client</artifactId>
+                               <version>${project.version}</version>
+                               <type>test-jar</type>
+                               <scope>test</scope>
+                       </dependency>
+               </dependencies>
+       </dependencyManagement>
        <dependencies>
                <dependency>
                        <groupId>org.codehaus.jackson</groupId>
index 50d63b5..5a6c702 100644 (file)
        <name>OpenStack Quantum Client</name>
        <description>OpenStack Quantum Client</description>
        <dependencies>
-            <dependency>
+               <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>4.11</version>
                        <scope>test</scope>
-           </dependency>
+               </dependency>
                <dependency>
                        <groupId>org.openecomp.so.libs.openstack-java-sdk</groupId>
                        <artifactId>openstack-client</artifactId>