murat8505 / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 1 forks source link

Maven build error - repository or setup issue? #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I can't get Lombok to work with our internal Maven 2 setup. I did everything as 
described on this page: http://projectlombok.org/mavenrepo/index.html

When I then run "mvn clean install" from either command line or within NetBeans 
I get the following error:

+++
NetBeans: Executing 'mvn -Dnetbeans.execution=true clean install'
NetBeans:      
JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
Scanning for projects...
------------------------------------------------------------------------
Building jbackup
   task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
Deleting directory /Users/danielgollub/NetBeansProjects/jbackup/target
[resources:resources]
Using 'UTF-8' encoding to copy filtered resources.
Copying 0 resource
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.pom
Unable to find resource 'org.projectlombok:lombok:pom:0.9.2' in repository 
internal (http://192.168.0.171:9080/archiva/repository/internal)
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.pom
Unable to find resource 'org.projectlombok:lombok:pom:0.9.2' in repository 
projectlombok.org (http://projectlombok.org/mavenrepo)
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.pom
Unable to find resource 'org.projectlombok:lombok:pom:0.9.2' in repository 
central (http://repo1.maven.org/maven2)
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.jar
Unable to find resource 'org.projectlombok:lombok:jar:0.9.2' in repository 
internal (http://192.168.0.171:9080/archiva/repository/internal)
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.jar
Unable to find resource 'org.projectlombok:lombok:jar:0.9.2' in repository 
projectlombok.org (http://projectlombok.org/mavenrepo)
Downloading: 
http://nexus.dev:8080/nexus/content/groups/public//org/projectlombok/lombok/0.9.
2/lombok-0.9.2.jar
Unable to find resource 'org.projectlombok:lombok:jar:0.9.2' in repository 
central (http://repo1.maven.org/maven2)
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.

Missing:
----------
1) org.projectlombok:lombok:jar:0.9.2

  Try downloading the file manually from the project website.

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

  Path to dependency: 
          1) de.onstream.backup:jbackup:jar:1.0-SNAPSHOT
          2) org.projectlombok:lombok:jar:0.9.2

----------
1 required artifact is missing.

for artifact: 
  de.onstream.backup:jbackup:jar:1.0-SNAPSHOT

from the specified remote repositories:
  nexus (http://nexus.dev:8080/nexus/content/groups/public/)

+++

My question now is: is this a general problem with the Lombok repository or is 
it a problem with our internal Nexus server setup? Or is it a problem with my 
Maven setup (pom.xml)?

If needed you can view my pom.xml here: http://pastebin.org/347449

For now we solved the issue by uploading lombok.jar into our own Nexus 
repository server.

Original issue reported on code.google.com by gollub.daniel@gmail.com on 21 Jun 2010 at 8:02

GoogleCodeExporter commented 9 years ago
I can't reproduce this problem. From the error messages (which all try to 
download from nexus.dev:8080, and not from projectlombok.org) I'm guessing its 
a problem with your nexus setup. You may want to ask a maven guru, neither Roel 
nor I are very familiar with maven.

Original comment by reini...@gmail.com on 17 Jul 2010 at 5:00

GoogleCodeExporter commented 9 years ago
Just had the same problem and found a solution!

You cannot download the lombok archives because your Nexus server is configured 
as the "one and only" repository. You need to switch from a "mirror" 
declaration in your settings.xml to a "profile".

Check out this page:
http://archiva.apache.org/docs/1.3/userguide/using-repository.html

Original comment by Thomas.A...@gmail.com on 24 Nov 2010 at 9:30