archiva-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felipe Roos da Rosa <feliper...@yahoo.com>
Subject Error compiling consumer samples
Date Sat, 18 Oct 2008 16:15:02 GMT
Hi folks,

I've downloaded the archiva consumer sample repository (http://svn.apache.org/repos/asf/archiva/sandbox/archiva-consumer-plugin)
but i could not get it compiling. On a first glance, maven provides me the following output:


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building archiva-consumer-plugin
[INFO]    task-segment: [package, clean]
[INFO] ------------------------------------------------------------------------
[INFO] [plexus:descriptor {execution: generate}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.archiva:archiva-consumer-api:jar:1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.archiva -DartifactId=archiva-consumer-api
-Dversion=1.2-SNAPSHOT -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.archiva -DartifactId=archiva-consumer-api
-Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
      1) org.apache.archiva:archiva-consumer-plugin:jar:1.2-SNAPSHOT
      2) org.apache.archiva:archiva-consumer-api:jar:1.2-SNAPSHOT

2) org.apache.archiva:archiva-configuration:jar:1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.archiva -DartifactId=archiva-configuration
-Dversion=1.2-SNAPSHOT -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.archiva -DartifactId=archiva-configuration
-Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
      1) org.apache.archiva:archiva-consumer-plugin:jar:1.2-SNAPSHOT
      2) org.apache.archiva:archiva-configuration:jar:1.2-SNAPSHOT

3) org.apache.archiva:archiva-repository-layer:jar:1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.archiva -DartifactId=archiva-repository-layer
-Dversion=1.2-SNAPSHOT -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.archiva -DartifactId=archiva-repository-layer
-Dversion=1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
      1) org.apache.archiva:archiva-consumer-plugin:jar:1.2-SNAPSHOT
      2) org.apache.archiva:archiva-repository-layer:jar:1.2-SNAPSHOT

4) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.apache.archiva -DartifactId=archiva-indexer -Dversion=1.2-SNAPSHOT
-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.archiva -DartifactId=archiva-indexer -Dversion=1.2-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
      1) org.apache.archiva:archiva-consumer-plugin:jar:1.2-SNAPSHOT
      2) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT

----------
4 required artifacts are missing.

for artifact: 
  org.apache.archiva:archiva-consumer-plugin:jar:1.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sat Oct 18 13:09:40 GMT-03:00 2008
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------




Then, changing dependencies to version 1.1.3, the following the error message changes to:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building archiva-consumer-plugin
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\Projects\archiva_rep\target
[INFO] [plexus:descriptor {execution: generate}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to C:\Projects\archiva_rep\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\Projects\archiva_rep\src\main\java\org\apache\maven\archiva\consumer\plugin\DiscoverNewArtifactConsumer.java:[51,7]
org.apache.maven.archiva.consumer.plugin.DiscoverNewArtifactConsumer is not abstract and does
not override abstract method beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration,java.util.Date)
in org.apache.maven.archiva.consumers.RepositoryContentConsumer



C:\Projects\archiva_rep\src\main\java\org\apache\maven\archiva\consumer\plugin\DiscoverNewArtifactConsumer.java:[51,7]
org.apache.maven.archiva.consumer.plugin.DiscoverNewArtifactConsumer is not abstract and does
not override abstract method beginScan(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration,java.util.Date)
in org.apache.maven.archiva.consumers.RepositoryContentConsumer


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sat Oct 18 00:15:48 GMT-03:00 2008
[INFO] Final Memory: 13M/25M
[INFO] ------------------------------------------------------------------------



Do you have any information on how do I get this working?


Kind regards,

Felipe Roos
http://www.linkedin.com/in/feliperoos


Achar desculpas para os nossos 
defeitos não nos torna melhores


__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 

Mime
View raw message