jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r790558 - /jackrabbit/trunk/jackrabbit-standalone/pom.xml
Date Thu, 02 Jul 2009 12:00:19 GMT
Author: jukka
Date: Thu Jul  2 12:00:19 2009
New Revision: 790558

URL: http://svn.apache.org/viewvc?rev=790558&view=rev
Log:
JCR-2181: Faster packaging of the standalone jar

Use the maven-bundle-plugin to package the standalone jar.

Modified:
    jackrabbit/trunk/jackrabbit-standalone/pom.xml

Modified: jackrabbit/trunk/jackrabbit-standalone/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-standalone/pom.xml?rev=790558&r1=790557&r2=790558&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-standalone/pom.xml (original)
+++ jackrabbit/trunk/jackrabbit-standalone/pom.xml Thu Jul  2 12:00:19 2009
@@ -33,43 +33,34 @@
     <relativePath>../jackrabbit-parent/pom.xml</relativePath>
   </parent>
   <artifactId>jackrabbit-standalone</artifactId>
+  <packaging>bundle</packaging>
   <name>Jackrabbit Standalone</name>
   <description>Runnable jar packaging of Apache Jackrabbit</description>
 
   <build>
     <plugins>
       <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
+        <groupId>org.apache.felix</groupId>
+        <artifactId>maven-bundle-plugin</artifactId>
+        <extensions>true</extensions>
         <configuration>
-          <archive>
-            <manifest>
-              <mainClass>org.apache.jackrabbit.standalone.Main</mainClass>
-            </manifest>
-          </archive>
+          <instructions>
+            <Export-Package>
+              org.apache.jackrabbit.standalone
+            </Export-Package>
+            <Embed-Dependency>
+              *;inline=
+              *.txt|*.html|*.jsp|*.xml|*.jar|*.properties|
+              remoting/**|bootstrap/**|javax/**|repackage/**|images/**|
+              com/**|Resources/**|css/**|schema*/**|EDU/**|error/**|org/**|
+              META-INF/*.tld|META-INF/maven/**|META-INF/services/**|
+              WEB-INF/config.xml|WEB-INF/*.properties|WEB-INF/templates/**
+            </Embed-Dependency>
+            <Embed-Transitive>true</Embed-Transitive>
+            <Main-Class>org.apache.jackrabbit.standalone.Main</Main-Class>
+          </instructions>
         </configuration>
       </plugin>
-      <plugin>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>unpack-dependencies</id>
-            <phase>process-resources</phase>
-            <goals>
-              <goal>unpack-dependencies</goal>
-            </goals>
-            <configuration>
-              <outputDirectory>${project.build.directory}/classes</outputDirectory>
-              <excludes>
-                LICENSE*, NOTICE*, META-INF/LICENSE*, META-INF/NOTICE*,
-                license, license/**/*, test, test/**/*,
-                WEB-INF/web.xml, WEB-INF/log4j.*,
-                WEB-INF/lib, WEB-INF/lib/**/*,
-                WEB-INF/classes, WEB-INF/classes/**/*
-              </excludes>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
 



Mime
View raw message