]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
Fix Maven 3 warnings
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 18 Jun 2013 08:32:10 +0000 (10:32 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 19 Jun 2013 10:21:47 +0000 (12:21 +0200)
sonar-runner-api/pom.xml
sonar-runner-dist/pom.xml
sonar-runner-impl/pom.xml

index 3527bfa01a06e23d4649e23c29c5c070c4fc0fd5..f039fe5b026e4ae58e4fad7bd814db3ed77d9444 100644 (file)
@@ -12,9 +12,9 @@
   <dependencies>
     <!-- Dependencies with scope "compile" are shaded and removed from transitive dependencies-->
     <dependency>
-      <groupId>${pom.groupId}</groupId>
+      <groupId>${project.groupId}</groupId>
       <artifactId>sonar-runner-impl</artifactId>
-      <version>${pom.version}</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>com.google.code.findbugs</groupId>
@@ -58,6 +58,8 @@
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>
           <archive>
+            <!-- Use the MANIFEST generated by maven-bundle-plugin -->
+            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
             <manifest>
               <addClasspath>true</addClasspath>
             </manifest>
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>${pom.groupId}</groupId>
+                  <groupId>${project.groupId}</groupId>
                   <artifactId>sonar-runner-impl</artifactId>
-                  <version>${pom.version}</version>
+                  <version>${project.version}</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
-                  <outputDirectory>${pom.build.outputDirectory}</outputDirectory>
+                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                   <destFileName>sonar-runner-impl.jar</destFileName>
                 </artifactItem>
               </artifactItems>
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            <manifestFile>${pom.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
-          </archive>
-        </configuration>
-      </plugin>
     </plugins>
   </build>
 </project>
index 2bce0c19fc9a49a7988b0b24aacec4839a054292..86eed28ee83cb62975d4f6bdd84e4092cfe9d88b 100644 (file)
 
   <dependencies>
     <dependency>
-      <groupId>${pom.groupId}</groupId>
+      <groupId>${project.groupId}</groupId>
       <artifactId>sonar-runner-api</artifactId>
-      <version>${pom.version}</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
-      <groupId>${pom.groupId}</groupId>
+      <groupId>${project.groupId}</groupId>
       <artifactId>sonar-runner-impl</artifactId>
-      <version>${pom.version}</version>
+      <version>${project.version}</version>
       <scope>provided</scope>
     </dependency>
     <dependency>
               <goal>single</goal>
             </goals>
             <configuration>
-              <finalName>sonar-runner-${pom.version}</finalName>
+              <finalName>sonar-runner-${project.version}</finalName>
               <appendAssemblyId>false</appendAssemblyId>
               <escapeString>\</escapeString>
               <descriptors>
-                <descriptor>${pom.basedir}/assembly.xml</descriptor>
+                <descriptor>${project.basedir}/assembly.xml</descriptor>
               </descriptors>
             </configuration>
           </execution>
                   <minsize>280000</minsize>
                   <maxsize>310000</maxsize>
                   <files>
-                    <file>${pom.build.directory}/sonar-runner-${pom.version}.zip</file>
+                    <file>${project.build.directory}/sonar-runner-${project.version}.zip</file>
                   </files>
                 </requireFilesSize>
               </rules>
index 4ae4cd6edce818ac2fe7b3d0077dbebc525a1332..b153bec0f4297a3710cecb9c4c5801d481ce30d2 100644 (file)
@@ -24,9 +24,9 @@
       <artifactId>sonar-home</artifactId>
     </dependency>
     <dependency>
-      <groupId>${pom.groupId}</groupId>
+      <groupId>${project.groupId}</groupId>
       <artifactId>sonar-runner-batch</artifactId>
-      <version>${pom.version}</version>
+      <version>${project.version}</version>
       <scope>provided</scope>
     </dependency>
 
             <configuration>
               <artifactItems>
                 <artifactItem>
-                  <groupId>${pom.groupId}</groupId>
+                  <groupId>${project.groupId}</groupId>
                   <artifactId>sonar-runner-batch</artifactId>
-                  <version>${pom.version}</version>
+                  <version>${project.version}</version>
                   <type>jar</type>
                   <overWrite>false</overWrite>
-                  <outputDirectory>${pom.build.outputDirectory}</outputDirectory>
+                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                   <destFileName>sonar-runner-batch.jar</destFileName>
                 </artifactItem>
               </artifactItems>