You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2009/05/21 18:11:27 UTC

svn commit: r777164 - /camel/trunk/examples/camel-example-spring/pom.xml

Author: jstrachan
Date: Thu May 21 16:11:26 2009
New Revision: 777164

URL: http://svn.apache.org/viewvc?rev=777164&view=rev
Log:
Made an executable jar for the sample

Modified:
    camel/trunk/examples/camel-example-spring/pom.xml

Modified: camel/trunk/examples/camel-example-spring/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring/pom.xml?rev=777164&r1=777163&r2=777164&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-spring/pom.xml (original)
+++ camel/trunk/examples/camel-example-spring/pom.xml Thu May 21 16:11:26 2009
@@ -37,6 +37,13 @@
     <camel.osgi.export.pkg>org.apache.camel.example.spring.*</camel.osgi.export.pkg>
   </properties>
 
+  <pluginRepositories>
+    <pluginRepository>
+      <id>onejar-maven-plugin.googlecode.com</id>
+      <url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url>
+    </pluginRepository>
+  </pluginRepositories>
+  
   <dependencies>
     <dependency>
       <groupId>org.apache.camel</groupId>
@@ -75,6 +82,40 @@
         <artifactId>camel-maven-plugin</artifactId>
         <version>${pom.version}</version>
       </plugin>
+      
+      <!-- 
+        lets make an executable jar 
+        you can then start this up via
+        
+          java -jar target/camel-example-spring-*.one-jar.jar -ac META-INF/spring/camel-context.xml
+       -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifest>
+              <mainClass>org.apache.camel.spring.Main</mainClass>
+            </manifest>
+          </archive>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.dstovall</groupId>
+        <artifactId>onejar-maven-plugin</artifactId>
+        <version>1.4.1</version>
+        <executions>
+          <execution>
+          <configuration>
+            <attachToBuild>true</attachToBuild>
+            <classifier>onejar</classifier>
+          </configuration>
+          <goals>
+            <goal>one-jar</goal>
+          </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
 
   </build>