You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by Julien HENRY <he...@yahoo.fr> on 2009/03/05 16:48:26 UTC
Compilation error on Archiva trunk
Hi,
I'm not able to compile Archiva from trunk. You CI server seems to also have an issue:
http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
Any idea?
Best regards,
Julien
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache..maven -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
packaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.artifact -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
3272 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
3) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
----------
2 required artifacts are missing.
for artifact:
org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
from the specified remote repositories:
apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
central (http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/central)
Re: Compilation error on Archiva trunk
Posted by Maria Odea Ching <oc...@apache.org>.
..or execute with -PbuildWithAdditionalRepos when building the project. This
profile contains the codehaus snapshots repo (for redback artifacts) and the
sonatype repo (for nexus indexer artifacts) :)
Thanks,
Deng
On Fri, Mar 6, 2009 at 8:10 AM, James William Dumay <ja...@atlassian.com>wrote:
> Hey dude,
>
> Add this to your settings.xml:
>
> <repository>
> <id>sonatype</id>
> <url>
> http://repository.sonatype.org/content/groups/forge/</url>
> <snapshots>
> <enabled>true</enabled>
> <updatePolicy>always</updatePolicy>
> <checksumPolicy>fail</checksumPolicy>
> </snapshots>
> <releases>
> <enabled>true</enabled>
> </releases>
> </repository>
>
> This should be cleared up before release.
>
> As for Archiva's CI system, the project actually uses
> http://vmbuild.apache.org/continuum/projectGroupSummary.action?projectGroupId=64 and
> not http://opensource.bamboo.atlassian.com.
>
> I set the builds up on opensource.bamboo.atlassian.com as I prefer to use
> Bamboo when working on Archiva at Atlassian.
>
> Cheers
> James
>
>
> On 06/03/2009, at 3:41 AM, Andrew Heald wrote:
>
> You're picking it up as a transitive dependency of nexus-indexer.
>>
>> On Thu, March 5, 2009 4:32 pm, Emmanuel Venisse wrote:
>>
>>> huh, why do we use a sonatype version???
>>>
>>> On Thu, Mar 5, 2009 at 4:48 PM, Julien HENRY <he...@yahoo.fr> wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> I'm not able to compile Archiva from trunk. You CI server seems to also
>>>> have an issue:
>>>> http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
>>>>
>>>> Any idea?
>>>>
>>>> Best regards,
>>>>
>>>> Julien
>>>>
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Failed to resolve artifact.
>>>>
>>>> Missing:
>>>> ----------
>>>> 1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>>
>>>> Try downloading the file manually from the project website.
>>>>
>>>> Then, install it using the command:
>>>> mvn install:install-file -DgroupId=org.apache..maven
>>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
>>>> packaging=jar -Dfile=/path/to/file
>>>>
>>>> Alternatively, if you host your own repository you can deploy the file
>>>> there:
>>>> mvn deploy:deploy-file -DgroupId=org.apache.maven
>>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
>>>> ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>>
>>>> Path to dependency:
>>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>>> 3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>>
>>>> 2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>>
>>>> Try downloading the file manually from the project website.
>>>>
>>>> Then, install it using the command:
>>>> mvn install:install-file -DgroupId=org.apache.maven.artifact
>>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
>>>> 3272 -Dpackaging=jar -Dfile=/path/to/file
>>>>
>>>> Alternatively, if you host your own repository you can deploy the file
>>>> there:
>>>> mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact
>>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
>>>> 72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>>
>>>> Path to dependency:
>>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>>> 3)
>>>> org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>>
>>>> ----------
>>>> 2 required artifacts are missing.
>>>>
>>>> for artifact:
>>>> org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>>>
>>>> from the specified remote repositories:
>>>> apache.snapshots
>>>> (http://people.apache.org/repo/m2-snapshot-repository),
>>>> central (
>>>> http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/central)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>
--
Maria Odea Ching
Software Engineer | Exist Global | 687-4091 | Skype: maria.odea.ching |
www.exist.com | Innovation Delivered
Re: Compilation error on Archiva trunk
Posted by James William Dumay <ja...@atlassian.com>.
Hey dude,
Add this to your settings.xml:
<repository>
<id>sonatype</id>
<url>http://repository.sonatype.org/content/groups/forge/
</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
This should be cleared up before release.
As for Archiva's CI system, the project actually uses http://vmbuild.apache.org/continuum/projectGroupSummary.action?projectGroupId=64
and not http://opensource.bamboo.atlassian.com.
I set the builds up on opensource.bamboo.atlassian.com as I prefer to
use Bamboo when working on Archiva at Atlassian.
Cheers
James
On 06/03/2009, at 3:41 AM, Andrew Heald wrote:
> You're picking it up as a transitive dependency of nexus-indexer.
>
> On Thu, March 5, 2009 4:32 pm, Emmanuel Venisse wrote:
>> huh, why do we use a sonatype version???
>>
>> On Thu, Mar 5, 2009 at 4:48 PM, Julien HENRY <he...@yahoo.fr>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm not able to compile Archiva from trunk. You CI server seems to
>>> also
>>> have an issue:
>>> http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
>>>
>>> Any idea?
>>>
>>> Best regards,
>>>
>>> Julien
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> ----------
>>> 1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file -DgroupId=org.apache..maven
>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
>>> packaging=jar -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the
>>> file
>>> there:
>>> mvn deploy:deploy-file -DgroupId=org.apache.maven
>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
>>> ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>
>>> Path to dependency:
>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>> 3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>
>>> 2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file -DgroupId=org.apache.maven.artifact
>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
>>> 3272 -Dpackaging=jar -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the
>>> file
>>> there:
>>> mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact
>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
>>> 72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -
>>> DrepositoryId=[id]
>>>
>>> Path to dependency:
>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>> 3)
>>> org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>
>>> ----------
>>> 2 required artifacts are missing.
>>>
>>> for artifact:
>>> org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>>
>>> from the specified remote repositories:
>>> apache.snapshots
>>> (http://people.apache.org/repo/m2-snapshot-repository),
>>> central (
>>> http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/
>>> central)
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
Re: Compilation error on Archiva trunk
Posted by Brett Porter <br...@apache.org>.
There is a profile in the main POM to enable the additional repo. I
think maybe we need to add this by default, only within the indexer POM.
We thought the indexer was going to be released with a version that
uses the released Maven libraries, but it hasn't turned out that way.
Do they distribute a shaded JAR that doesn't require these?
- Brett
On 06/03/2009, at 3:41 AM, Andrew Heald wrote:
> You're picking it up as a transitive dependency of nexus-indexer.
>
> On Thu, March 5, 2009 4:32 pm, Emmanuel Venisse wrote:
>> huh, why do we use a sonatype version???
>>
>> On Thu, Mar 5, 2009 at 4:48 PM, Julien HENRY <he...@yahoo.fr>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> I'm not able to compile Archiva from trunk. You CI server seems to
>>> also
>>> have an issue:
>>> http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
>>>
>>> Any idea?
>>>
>>> Best regards,
>>>
>>> Julien
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> ----------
>>> 1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file -DgroupId=org.apache..maven
>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
>>> packaging=jar -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the
>>> file
>>> there:
>>> mvn deploy:deploy-file -DgroupId=org.apache.maven
>>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
>>> ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>
>>> Path to dependency:
>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>> 3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>>
>>> 2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file -DgroupId=org.apache.maven.artifact
>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
>>> 3272 -Dpackaging=jar -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the
>>> file
>>> there:
>>> mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact
>>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
>>> 72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -
>>> DrepositoryId=[id]
>>>
>>> Path to dependency:
>>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>>> 3)
>>> org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>>
>>> ----------
>>> 2 required artifacts are missing.
>>>
>>> for artifact:
>>> org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>>
>>> from the specified remote repositories:
>>> apache.snapshots
>>> (http://people.apache.org/repo/m2-snapshot-repository),
>>> central (
>>> http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/
>>> central)
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
Re: Compilation error on Archiva trunk
Posted by Andrew Heald <an...@heald.co.uk>.
You're picking it up as a transitive dependency of nexus-indexer.
On Thu, March 5, 2009 4:32 pm, Emmanuel Venisse wrote:
> huh, why do we use a sonatype version???
>
> On Thu, Mar 5, 2009 at 4:48 PM, Julien HENRY <he...@yahoo.fr> wrote:
>
>>
>> Hi,
>>
>> I'm not able to compile Archiva from trunk. You CI server seems to also
>> have an issue:
>> http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
>>
>> Any idea?
>>
>> Best regards,
>>
>> Julien
>>
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>> mvn install:install-file -DgroupId=org.apache..maven
>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
>> packaging=jar -Dfile=/path/to/file
>>
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>> mvn deploy:deploy-file -DgroupId=org.apache.maven
>> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
>> ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>> Path to dependency:
>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>> 3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>>
>> 2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>
>> Try downloading the file manually from the project website.
>>
>> Then, install it using the command:
>> mvn install:install-file -DgroupId=org.apache.maven.artifact
>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
>> 3272 -Dpackaging=jar -Dfile=/path/to/file
>>
>> Alternatively, if you host your own repository you can deploy the file
>> there:
>> mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact
>> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
>> 72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>> Path to dependency:
>> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
>> 3)
>> org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>>
>> ----------
>> 2 required artifacts are missing.
>>
>> for artifact:
>> org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>>
>> from the specified remote repositories:
>> apache.snapshots
>> (http://people.apache.org/repo/m2-snapshot-repository),
>> central (
>> http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/central)
>>
>>
>>
>>
>>
>>
>
Re: Compilation error on Archiva trunk
Posted by Emmanuel Venisse <em...@gmail.com>.
huh, why do we use a sonatype version???
On Thu, Mar 5, 2009 at 4:48 PM, Julien HENRY <he...@yahoo.fr> wrote:
>
> Hi,
>
> I'm not able to compile Archiva from trunk. You CI server seems to also
> have an issue:
> http://opensource.bamboo.atlassian.com/browse/ARC-TRUNK
>
> Any idea?
>
> Best regards,
>
> Julien
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache..maven
> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -D
> packaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.maven
> -DartifactId=maven-plugin-api -Dversion=2.1-SONATYPE-653485 -Dpa
> ckaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
> 3) org.apache.maven:maven-plugin-api:jar:2.1-SONATYPE-653485
>
> 2) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.maven.artifact
> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-65
> 3272 -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file
> there:
> mvn deploy:deploy-file -DgroupId=org.apache.maven.artifact
> -DartifactId=maven-artifact -Dversion=3.0-SONATYPE-6532
> 72 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
> 2) org.sonatype.nexus:nexus-indexer:jar:1.1.1
> 3) org.apache.maven.artifact:maven-artifact:jar:3.0-SONATYPE-653272
>
> ----------
> 2 required artifacts are missing.
>
> for artifact:
> org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
>
> from the specified remote repositories:
> apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
> central (
> http://pic-java-nce.sud.capgemini.fr:8090/archiva/repository/central)
>
>
>
>
>
>