Hi JB, attached is the POM of the "application" module. I had to obfuscate the groupid/artifactid, but that should be no problem I guess. The parent POM "karaf-application" contains not contain anything interesting besides two modules (the application module and a feature module). ${version.apache-karaf} is defined as 3.0.1 in the main POM of the application.
Regards, Oliver 2014-10-12 18:21 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net>: > Hi Oliver, > > could you share your pom ? > > I replied in a Jira and it works fine for me (let me find the Jira). > > The problem was just in the execution phase. > > Regards > JB > > On 10/12/2014 06:16 PM, Oliver Pajonk wrote: > >> Hi JB, >> >> I have tried just now 3.0.2-SNAPSHOT and also 3.0.3.-SNAPSHOT from >> https://repository.apache.org/snapshots/. I have switched the version >> for all my Karaf dependencies as well as for the karaf-maven-plugin, but >> it did not help. The file in the ZIP/TAR.GZ is still duplicated, and the >> file target\assembly\etc\org.ops4j.pax.logging.cfg is the default one :-( >> >> Best regards, >> Oliver >> >> 2014-10-12 16:49 GMT+02:00 Jean-Baptiste Onofré <j...@nanthrax.net >> <mailto:j...@nanthrax.net>>: >> >> Hi Olivier, >> >> did you try with 3.0.2-SNAPSHOT (or staging 3.0.2) ? >> >> Regards >> JB >> >> On 10/12/2014 12:31 PM, oliverpajonk wrote: >> >> Hi all, >> >> is there any news on this issue? I hit the same problem today >> and am stuck >> with it: I want to use the karaf-assembly packaging to create my >> distribution (which works just fine). However, I need to >> override a file in >> the /etc directory (custom logging configuration). I do this by >> putting it >> into src/main/resources/etc, but the karaf-assembly packaging >> puts *two* >> files in the ZIP/TAR.GZ: mine, and the default one. >> >> Regards, >> Oliver >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.__com/karaf-assembly-and- >> config-__files-tp4032040p4035790.html >> <http://karaf.922171.n3.nabble.com/karaf-assembly-and- >> config-files-tp4032040p4035790.html> >> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> -- >> Jean-Baptiste Onofré >> jbono...@apache.org <mailto:jbono...@apache.org> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> >> > -- > Jean-Baptiste Onofré > jbono...@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com >
<?xml version="1.0" encoding="UTF-8"?> <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> <parent> <artifactId>karaf-application</artifactId> <groupId>obfuscatedgroupid</groupId> <version>0.0.1-SNAPSHOT</version> </parent> <artifactId>obfuscatedartifactid</artifactId> <packaging>karaf-assembly</packaging> <name>ObfuscatedApplicationName [Distribution]</name> <description>Apache Karaf distribution for ObfuscatedApplicationName</description> <dependencies> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>framework</artifactId> <type>kar</type> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>standard</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>enterprise</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.karaf.features</groupId> <artifactId>spring</artifactId> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>obfuscatedgroupid</groupId> <artifactId>features-obfuscatedartifactid</artifactId> <version>0.0.1-SNAPSHOT</version> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency> <dependency> <groupId>obfuscatedgroupid</groupId> <artifactId>obfuscatedartifactid.branding</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <version>${version.apache-karaf}</version> <extensions>true</extensions> </plugin> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.karaf.tooling </groupId> <artifactId> karaf-maven-plugin </artifactId> <versionRange> [3.0.0,) </versionRange> <goals> <goal>install-kars</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.maven.plugins </groupId> <artifactId> maven-dependency-plugin </artifactId> <versionRange> [2.1,) </versionRange> <goals> <goal>copy</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.karaf.tooling</groupId> <artifactId>karaf-maven-plugin</artifactId> <configuration> <bootFeatures> <feature>standard</feature> <feature>management</feature> <feature>jndi</feature> <feature>openjpa</feature> <feature>jdbc</feature> </bootFeatures> <startupFeatures> <startupFeature>features-obfuscatedartifactid</startupFeature> </startupFeatures> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>generate-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>obfuscatedgroupid</groupId> <artifactId>obfuscatedartifactid.branding</artifactId> <version>0.0.1-SNAPSHOT</version> <outputDirectory>target/assembly/lib</outputDirectory> <destFileName>obfuscatedartifactid.branding.jar</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>