You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@archiva.apache.org by Felipe Roos da Rosa <fe...@yahoo.com> on 2008/10/18 18:15:02 UTC

Error compiling consumer samples

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/ 

Re: Error compiling consumer samples

Posted by Wendy Smoak <ws...@gmail.com>.
On Sat, Oct 18, 2008 at 9:15 AM, Felipe Roos da Rosa
<fe...@yahoo.com> wrote:

> 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:
> Missing:
> ----------
> 1) org.apache.archiva:archiva-consumer-api: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
> 4) org.apache.archiva:archiva-indexer:jar:1.2-SNAPSHOT
...
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
...
> Do you have any information on how do I get this working?

It looks like you'll need to build Archiva 1.2-SNAPSHOT first so these
artifacts will be in your local repository.

If you check out this url, you'll have everything (including the sandbox):

svn co https://svn.apache.org/repos/asf/archiva/all archiva-all

>From there, build 'archiva' (and possibly 'parent' if needed) and then
the sandbox example should build, assuming it's been kept up to date
with any changes on trunk.  I'm not familiar with that example.

(Another possibility would be to configure the ASF snapshot repo in
your settings, but it doesn't look like we're publishing snapshots...
http://people.apache.org/repo/m2-snapshot-repository/)

-- 
Wendy