Hello,
I am trying (unsuccessfully) to us the 'karaf-maven-plugin’ to generate
multiple archives from the same pom, using classifiers and executions.
I have something like this:
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<configuration>
<bootFeatures>
<feature>wrap</feature>
<feature>aries-blueprint</feature>
<feature>shell</feature>
<feature>shell-compat</feature>
<feature>feature</feature>
<feature>jaas</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>deployer</feature>
<feature>diagnostic</feature>
<feature>feature</feature>
<feature>instance</feature>
<feature>kar</feature>
<feature>log</feature>
<feature>package</feature>
<feature>service</feature>
<feature>system</feature>
</bootFeatures>
</configuration>
<executions>
<execution>
<id>la1</id>
<configuration>
<classifier>la1</classifier>
<resourcesDir>${project.build.outputDirectory}/la1</resourcesDir>
</configuration>
</execution>
<execution>
<id>la2</id>
<configuration>
<classifier>la2</classifier>
<resourcesDir>${project.build.outputDirectory}/la2</resourcesDir>
</configuration>
</execution>
</executions>
</plugin>
The difference between the two archives is in the resources, so I am specifying
different ‘resourcesDir’ paths for each. The list of boot features will be
the same for both executions, so I put it in the general configuration section
of the plugin.
When built, I am only getting a single archive output.
Is it possible to do this with the 'karaf-maven-plugin’ plugin?
Best regards,
Alex soto