Hi Mohammad,
which goal are you using ? I guess just install-kar, right ?
You have to specify the instance-create-archive goal, which take the
result of the install-kar goal (target/assembly), and package as an
archive (zip/tar.gz archives).
This goal accepts a targetFile parameter.
So you can do:
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<executions>
<execution>
<id>process-resources</id>
<phase>process-resources</phase>
<goals>
<goal>install-kars</goal>
</goals>
</execution>
<execution>
<id>package</id>
<goals>
<goal>instance-create-archive</goal>
</goals>
<configuration>
<targetFile>my-file</targetFile>
</configuration>
</execution>
</executions>
</plugin>
Regards
JB
On 02/02/2015 03:06 PM, Mohammad Shamsi wrote:
Hi All,
I'm using karaf-maven-plugin to create a customized distribution tar file.
The final tar.gz file name always following the artifact name. I did try
to use "finaName" and "targetFile" in configuration, but didn't work.
Looking at plugin source code, it seems that it's ignoring the
"targetFile" parameter during archive creation.
Is this a bug or I am missing something?
Cheers,
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com