You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Ioan Eugen Stan <st...@gmail.com> on 2013/06/05 15:59:54 UTC
features-maven-plugin fails to download smooks dependencies
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
Re: features-maven-plugin fails to download smooks dependencies
Posted by Ioan Eugen Stan <st...@gmail.com>.
Hi,
Your answer was quite shocking :D but after giving it a thought it
started to make sense. I was miss-leaded by the fact that smooks
dependencies are different from the the smooks feature. Although I've
seen them both this fact some how escaped me.
You've managed to restore my 'zen' state :).
Thank you Freeman,
Re: features-maven-plugin fails to download smooks dependencies
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Because that artifact isn't in maven central repo
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
On 2013-6-11, at 下午6:19, Ioan Eugen Stan wrote:
> Hello Freeman,
>
> I've added the Alfresco repo and it works as expected. Thanks for the
> help. However I'm not sure why the strange behavior with Central.
> Running 'mvn install' fails with missing artifact, but manually
> getting the artifact with the bellow command succeeds. Too bad I don't
> have time to investigate.
>
> Cheers,
>
> 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
>
> ---
> <repositories>
> <repository>
> <id>alfresco-releases</id>
> <releases>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> <checksumPolicy>warn</checksumPolicy>
> </releases>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> <name>Alfresco Public Artifacts</name>
> <url>https://artifacts.alfresco.com/nexus/content/groups/public/</url>
> </repository>
> </repositories>
>
> On Fri, Jun 7, 2013 at 4:11 AM, Freeman Fang <fr...@gmail.com> wrote:
>> Hi,
>>
>> I can find one repo here[1], could you add it into your pom.xml?
>>
>> [1]https://maven.alfresco.com/nexus/content/repositories/com.springsource.repository.bundles.external/org/objectweb/asm/com.springsource.org.objectweb.asm.util/2.2.3/
>>
>> -------------
>> Freeman(Yue) Fang
>>
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>> Web: http://fusesource.com | http://www.redhat.com/
>> Twitter: freemanfang
>> Blog: http://freemanfang.blogspot.com
>> http://blog.sina.com.cn/u/1473905042
>> weibo: @Freeman小屋
>>
>> www.camelone.org : The open source integration conference:
>>
>> On 2013-6-7, at 上午12:42, Ioan Eugen Stan wrote:
>>
>> Hello Freeman,
>>
>> I have the repo (checked in effective-pom). I removed the directory
>> but it's still doesn't work. It's also strange that search.maven.org
>> does not seem to find it either [1].
>>
>> Cheers,
>>
>> [1]
>> http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util
>>
>>
>
>
>
> --
> Ioan Eugen Stan
> 0720 898 747
Re: features-maven-plugin fails to download smooks dependencies
Posted by Ioan Eugen Stan <st...@gmail.com>.
Hello Freeman,
I've added the Alfresco repo and it works as expected. Thanks for the
help. However I'm not sure why the strange behavior with Central.
Running 'mvn install' fails with missing artifact, but manually
getting the artifact with the bellow command succeeds. Too bad I don't
have time to investigate.
Cheers,
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
---
<repositories>
<repository>
<id>alfresco-releases</id>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<name>Alfresco Public Artifacts</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/public/</url>
</repository>
</repositories>
On Fri, Jun 7, 2013 at 4:11 AM, Freeman Fang <fr...@gmail.com> wrote:
> Hi,
>
> I can find one repo here[1], could you add it into your pom.xml?
>
> [1]https://maven.alfresco.com/nexus/content/repositories/com.springsource.repository.bundles.external/org/objectweb/asm/com.springsource.org.objectweb.asm.util/2.2.3/
>
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: @Freeman小屋
>
> www.camelone.org : The open source integration conference:
>
> On 2013-6-7, at 上午12:42, Ioan Eugen Stan wrote:
>
> Hello Freeman,
>
> I have the repo (checked in effective-pom). I removed the directory
> but it's still doesn't work. It's also strange that search.maven.org
> does not seem to find it either [1].
>
> Cheers,
>
> [1]
> http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util
>
>
--
Ioan Eugen Stan
0720 898 747
Re: features-maven-plugin fails to download smooks dependencies
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
I can find one repo here[1], could you add it into your pom.xml?
[1]https://maven.alfresco.com/nexus/content/repositories/com.springsource.repository.bundles.external/org/objectweb/asm/com.springsource.org.objectweb.asm.util/2.2.3/
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-7, at 上午12:42, Ioan Eugen Stan wrote:
> Hello Freeman,
>
> I have the repo (checked in effective-pom). I removed the directory
> but it's still doesn't work. It's also strange that search.maven.org
> does not seem to find it either [1].
>
> Cheers,
>
> [1] http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util
Re: features-maven-plugin fails to download smooks dependencies
Posted by Ioan Eugen Stan <st...@gmail.com>.
Hello Freeman,
I have the repo (checked in effective-pom). I removed the directory
but it's still doesn't work. It's also strange that search.maven.org
does not seem to find it either [1].
Cheers,
[1] http://search.maven.org/#search%7Cga%7C1%7Ccom.springsource.org.objectweb.asm.util
Re: features-maven-plugin fails to download smooks dependencies
Posted by Freeman Fang <fr...@gmail.com>.
Hi,
Ensure you have maven repository url where you can download org.objectweb.asm:com.springsource.org.objectweb.asm.util:jar:2.2.3 artifacts added in your pom.xml.
If you already do it, remove the org/objectweb/asm/com.springsource.org.objectweb.asm.util folder from your maven local repo
-------------
Freeman(Yue) Fang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋
www.camelone.org : The open source integration conference:
On 2013-6-5, at 下午9:59, Ioan Eugen Stan wrote:
> 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