MOdify POM files to fix sonar 11/42611/1
authorSai Gandham <sg481n@att.com>
Thu, 12 Apr 2018 22:16:21 +0000 (22:16 +0000)
committerSai Gandham <sg481n@att.com>
Thu, 12 Apr 2018 22:16:27 +0000 (22:16 +0000)
Issue-ID: AAF-129
Change-Id: I450e199f94e1428a6cdeae9a1a755d9bda2754ad
Signed-off-by: Sai Gandham <sg481n@att.com>
auth/pom.xml
cadi/pom.xml
misc/env/pom.xml
misc/log4j/pom.xml
misc/pom.xml

index 7372028..777480e 100644 (file)
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 
        <modelVersion>4.0.0</modelVersion>
-       <!--<parent>
+       <parent>
         <groupId>org.onap.aaf.authz</groupId>
         <artifactId>parent</artifactId>
         <version>2.1.0-SNAPSHOT</version>
-    </parent> -->
+    </parent>
        <artifactId>authparent</artifactId>
        <name>AAF Auth Parent</name>
        <packaging>pom</packaging>
 
-       <parent>
-               <groupId>org.onap.oparent</groupId>
-               <artifactId>oparent</artifactId>
-               <version>1.1.0</version>
-       </parent>
        
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
index a15d813..6c2dd15 100644 (file)
 -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
-       <!--<parent>
+       <parent>
     <groupId>org.onap.aaf.authz</groupId>
     <artifactId>parent</artifactId>
     <version>2.1.0-SNAPSHOT</version>
-    </parent>  -->
+    </parent>
        <groupId>org.onap.aaf.authz</groupId>
        <artifactId>cadiparent</artifactId>
        <name>AAF CADI Parent (Code, Access, Data, Identity)</name>
        </organization>
        <packaging>pom</packaging>
 
-       <parent>
-               <groupId>org.onap.oparent</groupId>
-               <artifactId>oparent</artifactId>
-               <version>1.1.0</version>
-       </parent>
        
        <properties>
                <!-- <sonar.skip>true</sonar.skip> -->
index 76de25f..d1e3ad9 100644 (file)
                                        <artifactId>maven-surefire-plugin</artifactId>
                                        <version>2.17</version>
                                        <configuration>
+                                               <skipTests>false</skipTests>
+                                               <includes>
+                                                       <include>**/JU*.java</include>
+                                               </includes>
+                                               <excludes>
+                                               </excludes>
                                        </configuration>
                                </plugin>
 
                        <artifactId>log4j</artifactId>
                        <scope>compile</scope> <!-- Provides scope only, in case other users prefer another Logging Implementation -->
                </dependency>
+               <dependency>
+                       <groupId>org.mockito</groupId>
+                       <artifactId>mockito-all</artifactId>
+                       <version>1.9.5</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.powermock</groupId>
+                       <artifactId>powermock-module-junit4</artifactId>
+                       <version>${powermock.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.powermock</groupId>
+                       <artifactId>powermock-api-mockito</artifactId>
+                       <version>${powermock.version}</version>
+                       <scope>test</scope>
+               </dependency>
+
+               <dependency>
+                       <groupId>junit</groupId>
+                       <artifactId>junit</artifactId>
+                       <version>4.10</version>
+                       <scope>test</scope>
+               </dependency>
        </dependencies>
 
 
index c945b73..bcd2d25 100644 (file)
@@ -71,7 +71,7 @@
 
        <properties>
        <!--  SONAR  -->
-       <sonar.skip>true</sonar.skip>
+           <!--<sonar.skip>true</sonar.skip> -->
                 <jacoco.version>0.7.7.201606060606</jacoco.version>
            <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
            <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
                                        <artifactId>maven-surefire-plugin</artifactId>
                                        <version>2.17</version>
                                        <configuration>
+                                               <skipTests>false</skipTests>
+                                               <includes>
+                                                       <include>**/JU*.java</include>
+                                               </includes>
+                                               <excludes>
+                                               </excludes>
                                        </configuration>
                                </plugin>
 
index e6c955f..d7aa53a 100644 (file)
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
-       <!--<parent>
-    <groupId>org.onap.aaf.authz</groupId>
-    <artifactId>parent</artifactId>
-    <version>2.1.0-SNAPSHOT</version>
-    </parent> -->
+       <parent>
+       <groupId>org.onap.aaf.authz</groupId>
+       <artifactId>parent</artifactId>
+       <version>2.1.0-SNAPSHOT</version>
+    </parent>
        <groupId>org.onap.aaf.authz</groupId>
        <artifactId>miscparent</artifactId>
        <name>AAF Misc Parent</name>
        <packaging>pom</packaging>
 
        
-
-       <parent>
-               <groupId>org.onap.oparent</groupId>
-               <artifactId>oparent</artifactId>
-               <version>1.1.0</version>
-       </parent>
-       
        <properties>
        <!--  SONAR  -->
        <!-- <sonar.skip>true</sonar.skip> -->
                </dependency>
        </dependencies>
 
+       <modules>
+               <module>env</module>
+               <module>xgen</module>
+               <module>rosetta</module>
+               <module>log4j</module> <!--  note: generates log4j, to avoid Jar conflict -->
+       </modules>
+       
        <!-- ============================================================== -->
        <!-- Define common plugins and make them available for all modules -->
        <!-- ============================================================== -->
                                        <artifactId>maven-surefire-plugin</artifactId>
                                        <version>2.17</version>
                                        <configuration>
+                                               <skipTests>false</skipTests>
+                                               <includes>
+                                                       <include>**/JU*.java</include>
+                                               </includes>
+                                               <excludes>
+                                               </excludes>
                                        </configuration>
                                </plugin>
 
                </pluginManagement>
        </build>
 
-       <modules>
-               <module>env</module>
-               <module>xgen</module>
-               <module>rosetta</module>
-               <module>log4j</module> <!--  note: generates log4j, to avoid Jar conflict -->
-       </modules>
+       
 
        <dependencyManagement>
                <dependencies>