You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Remijan <mj...@yahoo.com> on 2011/03/03 15:39:44 UTC
assembly plugin broken going from 2.2.1 to 3.0.2
I've switched to Maven 3.0.2in an attempt to get a working release plugin but now the assembly plugin is not working.
I can 'clean install' my multi-module project fine with 2.2.1. When switching to 3.0.2 Maven has a problem with the assembly with the following error printed to the console:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (ferris-bin-assembly) on project ferris-bible-common: Execution ferris-bin-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single failed: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Could not find artifact org.ferris:ferris-assemblies:jar:0.0.3 in central (http://re
po1.maven.org/maven2) -> [Help 1]
I highlighted what looks like the root cause of the problem. My pom is trying to use an assembly I created - org.ferris:ferris-assemblies:jar:0.0.3 - however for some reason Maven 3.0.2 is trying to find it in the main Maven Repo. This already exists in my LOCAL repository and if it didn't it exists on my OSS SONATYPE repository which my settings.xml is configured to point to.
Any one know of any reason why the assembly plugin has decided to only look for my assembly artifact on the main Maven Repo?
How do i layout subversion with a project made of multiple modules ?
Posted by Celinio Fernandes <ce...@yahoo.com>.
Hi,
I was looking for some information on how to layout subversion with a maven project made of multi modules and found this interesting discussion :
http://getsatisfaction.com/sonatype/topics/how_do_i_layout_subversion_with_multi_module_builds
I'd like to know if anyone in this mailing list can also share his experience regarding this matter.
Currently I have set things in SVN such that each module has its own trunk/tags/branches.
What do you think ?
Thanks for helping.
Re: assembly plugin broken going from 2.2.1 to 3.0.2
Posted by Dennis Lundberg <de...@apache.org>.
Hi
I'm assuming that org.ferris:ferris-assemblies:jar:0.0.3 is a dependency
that you have configured for the assembly-plugin. If that is the case
then with Maven 3 that dependency must be available in a repository that
is defined as a <pluginRepository>. If it is only available in a normal
<repository> Maven 3 will not be able to resolve it as a dependency for
a plugin. This is a deliberate change in behavior between Maven 2 and
Maven 3.
On 2011-03-03 15:39, Michael Remijan wrote:
> I've switched to Maven 3.0.2in an attempt to get a working release plugin but now the assembly plugin is not working.
>
> I can 'clean install' my multi-module project fine with 2.2.1. When switching to 3.0.2 Maven has a problem with the assembly with the following error printed to the console:
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (ferris-bin-assembly) on project ferris-bible-common: Execution ferris-bin-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single failed: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Could not find artifact org.ferris:ferris-assemblies:jar:0.0.3 in central (http://re
> po1.maven.org/maven2) -> [Help 1]
This is telling you that Maven 3 cannot find the artifact
org.ferris:ferris-assemblies:jar:0.0.3 in central
(http://repo1.maven.org/maven2). Note that it is only looking in
central, and not any of your own repositories.
> I highlighted what looks like the root cause of the problem. My pom is trying to use an assembly I created - org.ferris:ferris-assemblies:jar:0.0.3 - however for some reason Maven 3.0.2 is trying to find it in the main Maven Repo. This already exists in my LOCAL repository and if it didn't it exists on my OSS SONATYPE repository which my settings.xml is configured to point to.
>
> Any one know of any reason why the assembly plugin has decided to only look for my assembly artifact on the main Maven Repo?
>
--
Dennis Lundberg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: assembly plugin broken going from 2.2.1 to 3.0.2
Posted by Benjamin Bentmann <be...@udo.edu>.
Michael Remijan wrote:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single (ferris-bin-assembly) on project ferris-bible-common: Execution ferris-bin-assembly of goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single failed: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Could not find artifact org.ferris:ferris-assemblies:jar:0.0.3 in central (http://re
> po1.maven.org/maven2) -> [Help 1]
>
> [...] This already exists in my LOCAL repository and if it didn't it exists on my OSS SONATYPE repository which my settings.xml is configured to point to.
Proposed next steps
a) Verify your OSS repo is also configured as a <pluginRepository>
b) Re-test using staged Maven 3.0.3 [0]
c) Fill a bug with an example project to reproduce the issue
Benjamin
[0]
https://repository.apache.org/content/repositories/maven-065/org/apache/maven/apache-maven/3.0.3/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org