Hi,
I under this not exactly Karaf question as it is related to Maven
dependency plug-in.
I am building a custom distribution and trying to copy few bundles in
system directory using Maven repository layout. It looks Maven
dependency plug-in does not honour outputDirectory, excludeTransitive
and useRepositoryLayout directives as no matter what these settings are
plug-in will always copy the files in
${project.build.directory}/dependency folder, will not use the Maven
Repository layout and copy the transitive dependencies. Below is the
relevant part of my POM.
<execution>
<id>copy-subsystems</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.ops4j.pax.web</groupId>
<artifactId>pax-web-extender-war</artifactId>
<excludeTransitive>true</excludeTransitive>
<outputDirectory>${project.build.directory}/dependencies/apache-karaf-2.2.0/system</outputDirectory>
<useRepositoryLayout>ture</useRepositoryLayout>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
Does any one faces similar problem? Or is there any other alternative to
copy the bundles in Maven repository format?
Thanks,
Raj