You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2014/09/26 15:37:40 UTC
git commit: [KARAF-2742] Document how to include resources in a
custom distribution
Repository: karaf
Updated Branches:
refs/heads/karaf-3.0.x 9ebc6e7cb -> 41add7eb1
[KARAF-2742] Document how to include resources in a custom distribution
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/41add7eb
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/41add7eb
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/41add7eb
Branch: refs/heads/karaf-3.0.x
Commit: 41add7eb13b60dd8f51f6bdd997ea7572d85c2ed
Parents: 9ebc6e7
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Fri Sep 26 15:36:34 2014 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Fri Sep 26 15:36:34 2014 +0200
----------------------------------------------------------------------
.../main/resources/archetype-resources/pom.xml | 33 +++++++++++++++--
.../developers-guide/custom-distribution.conf | 37 ++++++++++++++++++--
2 files changed, 66 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/41add7eb/archetypes/assembly/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/archetypes/assembly/src/main/resources/archetype-resources/pom.xml b/archetypes/assembly/src/main/resources/archetype-resources/pom.xml
index 10a6a06..7d7eb38 100644
--- a/archetypes/assembly/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/assembly/src/main/resources/archetype-resources/pom.xml
@@ -61,6 +61,22 @@
</dependencies>
<build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/filtered-resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
<pluginManagement>
<plugins>
<plugin>
@@ -73,15 +89,28 @@
</pluginManagement>
<plugins>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>process-resources</id>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<configuration>
- <startupFeatures></startupFeatures>
+ <!-- <startupFeatures/> -->
<bootFeatures>
<feature>standard</feature>
<feature>management</feature>
</bootFeatures>
- <installedFeatures></installedFeatures>
+ <!-- <installedFeatures/> -->
</configuration>
</plugin>
</plugins>
http://git-wip-us.apache.org/repos/asf/karaf/blob/41add7eb/manual/src/main/webapp/developers-guide/custom-distribution.conf
----------------------------------------------------------------------
diff --git a/manual/src/main/webapp/developers-guide/custom-distribution.conf b/manual/src/main/webapp/developers-guide/custom-distribution.conf
index 312c0a7..7be3790 100644
--- a/manual/src/main/webapp/developers-guide/custom-distribution.conf
+++ b/manual/src/main/webapp/developers-guide/custom-distribution.conf
@@ -72,14 +72,14 @@ This is the minimal assembly pom changed to use the packaging and annotated
<dependencies>
<dependency>
- <!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not installed -->
+ <!-- scope is compile so all features (there is only one) are installed into startup.properties and the feature repo itself is not added in etc/org.apache.karaf.features.cfg file -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${project.version}</version>
<type>kar</type>
</dependency>
<dependency>
- <!-- scope is runtime so the feature repo is listed in the features service config file, and features may be installed using the karaf-maven-plugin configuration -->
+ <!-- scope is runtime so the feature repo is listed in etc/org.apache.karaf.features.cfg file, and features will installed into the system directory -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
@@ -89,7 +89,40 @@ This is the minimal assembly pom changed to use the packaging and annotated
</dependencies>
<build>
+ <!-- if you want to include resources in the distribution -->
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/filtered-resources</directory>
+ <filtering>true</filtering>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+
<plugins>
+ <!-- if you want to include resources in the distribution -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
+ <executions>
+ <execution>
+ <id>process-resources</id>
+ <goals>
+ <goal>resources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <!-- karaf-maven-plugin will call both install-kar and instance-create-archive goals -->
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>