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

Arunan Balasubramaniam edited comment on KARAF-5373 at 9/18/17 1:12 PM:
------------------------------------------------------------------------

Sounds like the thing I hit which was the outcome of:
* 
http://mail-archives.apache.org/mod_mbox/karaf-dev/201610.mbox/%3CCAA66TpovnSTHPGF1-9XAWAM8%3DO_bzh1J2Yb_UJ7jmKrYxJKnKQ%40mail.gmail.com%3E
* https://issues.apache.org/jira/browse/KARAF-4787

I ended up using:

         <groupId>org.apache.karaf.tooling</groupId>
         <artifactId>karaf-maven-plugin</artifactId>
         <configuration>
          <enableGeneration>true</enableGeneration>
         </configuration>
        <executions>
          <execution>
            <id>generate-features-file</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>features-generate-descriptor</goal>
            </goals>
          </execution>
        </executions>



was (Author: arunan-interlink):
Sounds like the thing I hit which was the outcome of:
* 
http://mail-archives.apache.org/mod_mbox/karaf-dev/201610.mbox/%3CCAA66TpovnSTHPGF1-9XAWAM8%3DO_bzh1J2Yb_UJ7jmKrYxJKnKQ%40mail.gmail.com%3E
* https://issues.apache.org/jira/browse/KARAF-4787

I ended up using:

{{         <groupId>org.apache.karaf.tooling</groupId>
         <artifactId>karaf-maven-plugin</artifactId>
         <configuration>
          <enableGeneration>true</enableGeneration>
         </configuration>
        <executions>
          <execution>
            <id>generate-features-file</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>features-generate-descriptor</goal>
            </goals>
          </execution>
        </executions>}}


> Karaf-maven-plugin fails to create feature file
> -----------------------------------------------
>
>                 Key: KARAF-5373
>                 URL: https://issues.apache.org/jira/browse/KARAF-5373
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-tooling
>    Affects Versions: 4.1.2
>         Environment: Maven 3.5.0, Java 8 update 131, Windows 10
>            Reporter: Mikael Åsberg
>         Attachments: pom.xml
>
>
> In the attached pom.xml, the plugin 
> org.apache.karaf.tooling:karaf-maven-plugin, version 4.1.2, is used in an 
> attempt to create a feature.xml. However, the build (simply mvn clean 
> install) fails with:
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-install-plugin:2.5.2:install (default-install) 
> on project karaf-maven-plugin-bug: The packaging for this project did not 
> assign a file to the build artifact
> There isn't even a target folder created.
> However, if one downgrades the karaf-maven-plugin by running "mvn clean 
> install -Dkaraf.version=4.0.9" the build succeeds and a feature.xml is 
> installed into the local .m2. I've also verified this feature is usable.
> Ouput to note when using version 4.0.9:
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ 
> karaf-maven-plugin-bug ---
> [INFO] No primary artifact to install, installing attached artifacts instead.
> Note that this project consist only of a single pom.xml, no additional files.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to