You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/01/28 06:29:25 UTC

[jira] [Commented] (KARAF-4552) Karaf maven plugin creates wrong archived folder name when building custom distribution

    [ https://issues.apache.org/jira/browse/KARAF-4552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843921#comment-15843921 ] 

Jean-Baptiste Onofré commented on KARAF-4552:
---------------------------------------------

{{targetFile}} just defines the name of the resulting archive ({{tar.gz}} or {{zip}}).

If you want to change the name of the directory inside the archive, you have to use {{pathPrefix}} configuration:

{code}
<configuration>
  <targetFile>aaa</targetFile>
  <pathPrefix>aaa</pathPrefix>
</configuration>
{code}

Then, you will have a {{aaa.zip}} and {{aaa.tar.gz}} file containing {{aaa}} directory with the distribution.

> Karaf maven plugin creates wrong archived folder name when building custom distribution
> ---------------------------------------------------------------------------------------
>
>                 Key: KARAF-4552
>                 URL: https://issues.apache.org/jira/browse/KARAF-4552
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.0.5
>            Reporter: Viktor Kozlov
>            Assignee: Jean-Baptiste Onofré
>
> I am building my custom distribution. I set target file name to aaa:
>             <plugin>
>                 <groupId>org.apache.karaf.tooling</groupId>
>                 <artifactId>karaf-maven-plugin</artifactId>
>                 <configuration>
>                     <targetFile>aa</targetFile>
> Plugin creates aaa.zip archive file. But inside of acrhive there is wrong folder name: assembly-0.4.0-SNAPSHOT.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)