You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2015/03/03 12:45:17 UTC

svn commit: r1663675 - in /felix/sandbox/cziegeler/bnd-maven-plugin: ./ src/main/java/org/apache/felix/bundleplugin/ src/main/java/org/apache/felix/obrplugin/ src/main/java/org/apache/maven/shared/dependency/ src/test/

Author: cziegeler
Date: Tue Mar  3 11:45:17 2015
New Revision: 1663675

URL: http://svn.apache.org/r1663675
Log:
Remove obsolete stuff

Removed:
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/AntPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BlueprintPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/InstructionsPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/ScrPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/VersionCleanerPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/WrapPlugin.java
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/obrplugin/
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/maven/shared/dependency/
    felix/sandbox/cziegeler/bnd-maven-plugin/src/test/
Modified:
    felix/sandbox/cziegeler/bnd-maven-plugin/pom.xml
    felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java

Modified: felix/sandbox/cziegeler/bnd-maven-plugin/pom.xml
URL: http://svn.apache.org/viewvc/felix/sandbox/cziegeler/bnd-maven-plugin/pom.xml?rev=1663675&r1=1663674&r2=1663675&view=diff
==============================================================================
--- felix/sandbox/cziegeler/bnd-maven-plugin/pom.xml (original)
+++ felix/sandbox/cziegeler/bnd-maven-plugin/pom.xml Tue Mar  3 11:45:17 2015
@@ -18,141 +18,141 @@
 -->
 <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/maven-v4_0_0.xsd">
 
- <parent>
-   <artifactId>felix-parent</artifactId>
-   <groupId>org.apache.felix</groupId>
-   <version>2.1</version>
-   <relativePath>../pom/pom.xml</relativePath>
- </parent>
-
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>maven-bundle-plugin</artifactId>
- <version>2.5.4-SNAPSHOT</version>
- <packaging>maven-plugin</packaging>
+    <parent>
+        <artifactId>felix-parent</artifactId>
+        <groupId>org.apache.felix</groupId>
+        <version>2.1</version>
+        <relativePath>../pom/pom.xml</relativePath>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>bnd-maven-plugin</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <packaging>maven-plugin</packaging>
 
- <name>Maven Bundle Plugin</name>
- <description>
+    <name>BND Maven Plugin</name>
+    <description>
   Provides a maven plugin that supports creating an OSGi bundle
   from the contents of the compilation classpath along with its
   resources and dependencies. Plus a zillion other features.
   The plugin uses the Bnd tool (http://www.aqute.biz/Code/Bnd)
- </description>
+    </description>
 
- <scm>
-  <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/bundleplugin</connection>
-  <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/bundleplugin</developerConnection>
-  <url>http://svn.apache.org/repos/asf/felix/trunk/bundleplugin</url>
- </scm>
-
- <build>
-  <plugins>
-   <plugin>
-    <groupId>org.apache.maven.plugins</groupId>
-    <artifactId>maven-compiler-plugin</artifactId>
-    <configuration>
-     <source>1.5</source>
-     <target>1.5</target>
-    </configuration>
-   </plugin>
-   <plugin>
-    <groupId>org.apache.rat</groupId>
-    <artifactId>apache-rat-plugin</artifactId>
-    <configuration>
-     <excludes>
-      <exclude>**/*.mf</exclude>
-     </excludes>
-    </configuration>
-   </plugin>
-  </plugins>
- </build>
-
- <dependencies>
-  <dependency>
-    <groupId>org.osgi</groupId>
-    <artifactId>org.osgi.core</artifactId>
-    <version>4.3.1</version>
-  </dependency>
-  <dependency>
-    <groupId>biz.aQute.bnd</groupId>
-    <artifactId>biz.aQute.bndlib</artifactId>
-    <version>2.4.1</version>
-  </dependency>
-  <dependency>
-    <groupId>org.apache.felix</groupId>
-    <artifactId>org.apache.felix.bundlerepository</artifactId>
-    <version>1.6.6</version>
-  </dependency>
-  <dependency>
-    <groupId>org.apache.felix</groupId>
-    <artifactId>org.apache.felix.utils</artifactId>
-    <version>1.6.0</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven</groupId>
-   <artifactId>maven-core</artifactId>
-   <version>2.0.7</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven</groupId>
-   <artifactId>maven-archiver</artifactId>
-   <version>2.5</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven.shared</groupId>
-   <artifactId>maven-dependency-tree</artifactId>
-   <version>2.1</version>
-  </dependency>
-  <dependency>
-   <groupId>org.codehaus.plexus</groupId>
-   <artifactId>plexus-utils</artifactId>
-   <version>3.0.10</version>
-  </dependency>
-  <dependency>
-   <groupId>org.sonatype.plexus</groupId>
-   <artifactId>plexus-build-api</artifactId>
-   <version>0.0.7</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven.doxia</groupId>
-   <artifactId>doxia-sink-api</artifactId>
-   <version>1.0</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven.doxia</groupId>
-   <artifactId>doxia-site-renderer</artifactId>
-   <version>1.0</version>
-  </dependency>
-  <dependency>
-   <groupId>org.apache.maven.shared</groupId>
-   <artifactId>maven-plugin-testing-harness</artifactId>
-   <version>1.1</version>
-   <scope>test</scope>
-  </dependency>
- </dependencies>
-
- <reporting>
-  <plugins>
-   <plugin>
-    <groupId>org.apache.maven.plugins</groupId>
-    <artifactId>maven-plugin-plugin</artifactId>
-    <version>3.2</version>
-   </plugin>
-   <plugin>
-    <groupId>org.apache.maven.plugins</groupId>
-    <artifactId>maven-changes-plugin</artifactId>
-    <version>2.9</version>
-    <configuration>
-     <component>12311143</component>
-     <versionPrefix>maven-bundle-plugin-</versionPrefix>
-     <statusIds>Resolved,Closed</statusIds>
-     <maxEntries>1000</maxEntries>
-     <issueManagementSystems>
-      <issueManagementSystem>JIRA</issueManagementSystem>
-     </issueManagementSystems>
-     <useJql>true</useJql>
-    </configuration>
-   </plugin>
-  </plugins>
- </reporting>
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk/bnd-maven-plugin</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/trunk/bnd-maven-plugin</developerConnection>
+        <url>http://svn.apache.org/repos/asf/felix/trunk/bnd-maven-plugin</url>
+    </scm>
+
+    <prerequisites>
+        <maven>3.0.5</maven>
+    </prerequisites>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.6</source>
+                    <target>1.6</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <excludes>
+                        <exclude>**/*.mf</exclude>
+                    </excludes>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.plexus</groupId>
+                <artifactId>plexus-component-metadata</artifactId>
+                <version>1.6</version>
+                <executions>
+                    <execution>
+                        <id>generate-metadata</id>
+                        <goals>
+                            <goal>generate-metadata</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-plugin-plugin</artifactId>
+                <version>3.4</version>
+                <executions>
+                    <execution>
+                        <id>mojo-descriptor</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>descriptor</goal>
+                        </goals>
+                     </execution>
+                     <execution>
+                        <id>generated-helpmojo</id>
+                        <goals>
+                            <goal>helpmojo</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                     <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
+                 </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>5.0.0</version>
+        </dependency>
+        <dependency>
+            <groupId>biz.aQute.bnd</groupId>
+            <artifactId>biz.aQute.bndlib</artifactId>
+            <version>2.4.1</version>
+        </dependency>
+       <dependency>
+           <groupId>org.apache.felix</groupId>
+           <artifactId>org.apache.felix.utils</artifactId>
+           <version>1.6.0</version>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.maven</groupId>
+           <artifactId>maven-core</artifactId>
+           <version>3.0.5</version>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.maven</groupId>
+           <artifactId>maven-compat</artifactId>
+           <version>3.0.5</version>
+       </dependency>
+        <dependency>
+            <groupId>org.apache.maven.plugin-tools</groupId>
+            <artifactId>maven-plugin-annotations</artifactId>
+            <version>3.4</version>
+            <scope>provided</scope>
+        </dependency>
+       <dependency>
+           <groupId>org.apache.maven</groupId>
+           <artifactId>maven-archiver</artifactId>
+           <version>2.6</version>
+       </dependency>
+       <dependency>
+           <groupId>org.apache.maven.reporting</groupId>
+           <artifactId>maven-reporting-api</artifactId>
+           <version>3.0</version>
+       </dependency>
+       <dependency>
+           <groupId>org.sonatype.plexus</groupId>
+           <artifactId>plexus-build-api</artifactId>
+           <version>0.0.7</version>
+       </dependency>
+    </dependencies>
 </project>

Modified: felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
URL: http://svn.apache.org/viewvc/felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?rev=1663675&r1=1663674&r2=1663675&view=diff
==============================================================================
--- felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java (original)
+++ felix/sandbox/cziegeler/bnd-maven-plugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java Tue Mar  3 11:45:17 2015
@@ -79,7 +79,6 @@ import aQute.bnd.osgi.FileResource;
 import aQute.bnd.osgi.Jar;
 import aQute.bnd.osgi.Packages;
 import aQute.bnd.osgi.Processor;
-import aQute.lib.spring.SpringXMLType;
 
 
 /**
@@ -269,6 +268,7 @@ public class BundlePlugin extends Abstra
     /**
      * @see org.apache.maven.plugin.AbstractMojo#execute()
      */
+    @Override
     public void execute() throws MojoExecutionException
     {
         Properties properties = new Properties();
@@ -1315,11 +1315,6 @@ public class BundlePlugin extends Abstra
 
         properties.put( "classifier", classifier == null ? "" : classifier );
 
-        // Add default plugins
-        header( properties, Analyzer.PLUGIN, ScrPlugin.class.getName() + ","
-                                           + BlueprintPlugin.class.getName() + ","
-                                           + SpringXMLType.class.getName() );
-
         return properties;
     }
 
@@ -1481,7 +1476,7 @@ public class BundlePlugin extends Abstra
                 scanner.setBasedir( sourcePath );
                 if ( resource.getIncludes() != null && !resource.getIncludes().isEmpty() )
                 {
-                    scanner.setIncludes( ( String[] ) resource.getIncludes().toArray( EMPTY_STRING_ARRAY ) );
+                    scanner.setIncludes( resource.getIncludes().toArray( EMPTY_STRING_ARRAY ) );
                 }
                 else
                 {
@@ -1490,7 +1485,7 @@ public class BundlePlugin extends Abstra
 
                 if ( resource.getExcludes() != null && !resource.getExcludes().isEmpty() )
                 {
-                    scanner.setExcludes( ( String[] ) resource.getExcludes().toArray( EMPTY_STRING_ARRAY ) );
+                    scanner.setExcludes( resource.getExcludes().toArray( EMPTY_STRING_ARRAY ) );
                 }
 
                 scanner.addDefaultExcludes();