Building custom repo for offline deployments
eric.bender Jun 1, 2012 10:07 AMI have been using the documentation found at http://fusesource.com/docs/esb/4.4/esb_deploy_osgi/Locate-CustomRepo.html to ensure my organization can deploy to production environments without outside access.
My question is, how would I add non-features to a process like this? In other words if I have an external dependency on velocity-tools that is not a feature and is just a dependency, how can I add it to this process? For clarity here is a copy of the current POM.
On a related note, how do I specify specific versions in this process?
<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> <groupId>com.mytest</groupId> <artifactId>custom-repo</artifactId> <version>1.0</version> <name>Generate offline features repository</name> <build> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>features-maven-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>add-features-to-repo</id> <phase>generate-resources</phase> <goals> <goal>add-features-to-repo</goal> </goals> <configuration> <descriptors> <!-- List the URLs of required feature repositories here --> <descriptor>mvn:org.apache.karaf.assemblies.features/standard/2.2.2-fuse-02-13/xml/features</descriptor> <descriptor>mvn:org.apache.karaf.assemblies.features/enterprise/2.2.2-fuse-02-13/xml/features</descriptor> <descriptor>mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.5.1-fuse-01-13/xml/features</descriptor> <descriptor>mvn:org.apache.servicemix/apache-servicemix/4.4.1-fuse-01-13/xml/features</descriptor> <descriptor>mvn:org.apache.camel.karaf/apache-camel/2.8.0-fuse-01-13/xml/features</descriptor> <descriptor>mvn:org.apache.activemq/activemq-karaf/5.5.1-fuse-01-13/xml/features</descriptor> </descriptors> <features> <feature>camel-flatpack</feature> <feature>camel-velocity</feature> <feature>camel-http</feature> </features> <repository>target/features-repo</repository> </configuration> </execution> </executions> </plugin> </plugins> </build> <repositories> <repository> <id>repo1.maven.org</id> <name>Maven Central</name> <url>http://repo1.maven.org/maven2</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>repo.fusesource.com</id> <name>Fusesource</name> <url>http://repo.fusesource.com/nexus/content/repositories/releases</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>repo.fusesource.com.snapshots</id> <name>Fusesource Snapshots</name> <url>http://repo.fusesource.com/nexus/content/repositories/snapshots@snapshots@noreleases</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>repository.apache.org</id> <name>Apache Snapshots</name> <url>http://repository.apache.org/content/groups/snapshots-group@snapshots@noreleases</url> <snapshots> <enabled>true</enabled> </snapshots> <releases> <enabled>false</enabled> </releases> </repository> <repository> <id>svn.apache.org</id> <name>Apache</name> <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>repository.springsource.com</id> <name>Springsource Releases</name> <url>http://repository.springsource.com/maven/bundles/release</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> <repository> <id>repository.springsource.com.external</id> <name>Springsource External</name> <url>http://repository.springsource.com/maven/bundles/external</url> <snapshots> <enabled>false</enabled> </snapshots> <releases> <enabled>true</enabled> </releases> </repository> </repositories> </project>