Hi anshuman.osc,
I had the same problems before. The best way to generate a custom feature is
to set up another maven module which builds the xml and deploys it into the
maven repository. Then your custom distribution can fetch your feature.xml
from maven.
Overwriting configuration files can be done using the maven-resource-plugin.
E.g. we use the following configuration:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/assembly</outputDirectory>
<resources>
<resource>
<directory>${basedir}/src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<filters>
<filter>${basedir}/build.properties</filter>
<filter>${user.home}/build.properties</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
To overwrite a configuration file in etc, create directory etc under
src/main/filtered-resources and put your configuration file there.
Regards
Jochen
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-3-Standalone-Distribution-tp4034233p4034251.html
Sent from the Karaf - User mailing list archive at Nabble.com.