Hello,

I'm using the features-maven-plugin 2.3.1 to build a repo for a custom
distribution. All is good except that for some reason it fails when
downloading the smooks dependencies. Running the install manually as
suggested in the error output works. Installing the feature in Karaf
at runtime works. Adding the feature to featuresBoot works but with a
significant delay (almost 1 min, or so).

Could you try to reproduce this and see if it's a bug?

My configuration is:

 <plugin>
        <groupId>org.apache.karaf.tooling</groupId>
        <artifactId>features-maven-plugin</artifactId>
        <version>2.3.1</version>
        <executions>
          <execution>
            <id>add-features-to-repo</id>
            <phase>compile</phase>
            <goals>
              <goal>add-features-to-repo</goal>
            </goals>
            <inherited>false</inherited>
            <configuration>
              <descriptors>
<descriptor>mvn:org.apache.karaf.assemblies.features/standard/2.3.1/xml/features</descriptor>
               
<descriptor>mvn:org.apache.karaf.assemblies.features/enterprise/2.3.1/xml/features</descriptor>

<descriptor>mvn:org.apache.camel.karaf/apache-camel/2.11.0/xml/features</descriptor>

<descriptor>mvn:org.milyn/milyn-smooks-all/1.5.1/xml/features</descriptor>
              </descriptors>
              <features>
                <feature>war</feature>
                <feature>jpa</feature>
                <feature>transaction</feature>
                <feature>smooks</feature>
              </features>
              <includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
              <repository>target/features-repo</repository>
            </configuration>
          </execution>
        </executions>
      </plugin>

The full error output (with -X and -e) is available here:
https://paste.apache.org/jK9u . In short:

[ERROR] Failed to execute goal
org.apache.karaf.tooling:features-maven-plugin:2.3.1:add-features-to-repo
(add-features-to-repo) on project distribution: Can't resolve bundle
org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3:
Failure to find
org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3 in
http://repo.maven.apache.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced
[ERROR]
[ERROR] Try downloading the file manually from the project website.
[ERROR]
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=org.objectweb.asm
-DartifactId=com.springsource.org.objectweb.asm.util -Dversion=2.2.3
-Dpackaging=jar -Dfile=/path/to/file
[ERROR]
[ERROR] Alternatively, if you host your own repository you can deploy
the file there:
[ERROR] mvn deploy:deploy-file -DgroupId=org.objectweb.asm
-DartifactId=com.springsource.org.objectweb.asm.util -Dversion=2.2.3
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[ERROR]
[ERROR]
[ERROR] org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


--
Ioan Eugen Stan
0720 898 747

Reply via email to