Re: maven failing to resolve artifact that exists in repository

2011-10-17 Thread Barrie Treloar
On Tue, Oct 18, 2011 at 3:54 PM, Mike Power  wrote:
> I was using:
>
> Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.6.0_22
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.38-11-generic" arch: "amd64" Family: "unix"
>
> I am now using:
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: /home/mpower/Desktop/apache-maven-3.0.3
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-6-openjdk/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.38-11-generic", arch: "amd64", family:
> "unix"
>
> The artifact successfully downloaded.  In fact for some reason it downloaded
> 36 of them... seems odd.
>
> Anyway now the build is broken.  Something about the gmaven plugin.  Will
> look more later.
>
> [ERROR] Failed to execute goal
> org.codehaus.groovy.maven:gmaven-plugin:1.0:execute (copy-the-source) on
> project repository: java.lang.NoSuchMethodError:
> org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String;
> -> [Help 1]

You may have more luck on the mailing list for this product.
It looks like it may be mis-configured.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven failing to resolve artifact that exists in repository

2011-10-17 Thread Mike Power

I was using:

Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_22
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-11-generic" arch: "amd64" Family: "unix"

I am now using:
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /home/mpower/Desktop/apache-maven-3.0.3
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.38-11-generic", arch: "amd64", family: 
"unix"


The artifact successfully downloaded.  In fact for some reason it 
downloaded 36 of them... seems odd.


Anyway now the build is broken.  Something about the gmaven plugin.  
Will look more later.


[ERROR] Failed to execute goal 
org.codehaus.groovy.maven:gmaven-plugin:1.0:execute (copy-the-source) on 
project repository: java.lang.NoSuchMethodError: 
org.apache.tools.ant.launch.Locator.fromJarURI(Ljava/lang/String;)Ljava/lang/String; 
-> [Help 1]



On 10/17/2011 01:47 AM, Nigel Magnay wrote:

What version of maven are you using?
If not the latest, try 3.0.3..


On Sat, Oct 15, 2011 at 5:21 AM, Mike Power  wrote:


I am really confused.  Maven is failing to resolve an artifact that I can
easily find in the remote repository.

I am trying to build an open source project whose git repository is found
at

https://github.com/magnayn/**Jenkins-Repository.git

I get the following error:
Downloading: http://download.java.net/**maven/2//org/kohsuke/stapler/**
stapler/1.167/stapler-1.167.**jar
[INFO] --**--**

[ERROR] BUILD ERROR
[INFO] --**--**

[INFO] Failed to resolve artifact.

Missing:
--
1) org.kohsuke.stapler:stapler:**jar:1.167

  Try downloading the file manually from the project website.

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

  Path to dependency:
  1) com.nirima.jenkins.repository:**pom:pom:0.6.2-SNAPSHOT
  2) org.jenkins-ci.main:jenkins-**core:jar:1.417
  3) org.kohsuke.stapler:stapler-**adjunct-timeline:jar:1.3
  4) org.kohsuke.stapler:stapler:**jar:1.167

--
1 required artifact is missing.

for artifact:
  com.nirima.jenkins.repository:**pom:pom:0.6.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2**),
  m.g.o-public 
(http://maven.glassfish.org/**content/groups/public/
)
*
*

It seems to be only trying central.  However it is not available on
central.  It is available on m.g.o-public.  Here is the url:
http://maven.glassfish.org/**content/groups/public/org/**
kohsuke/stapler/stapler/1.161/**stapler-1.161.jar

Why is maven going to central to find the jar, and not going to
m.g.o-public?  It says it tried m.g.o-public but I do not see that
happening.*
*



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven failing to resolve artifact that exists in repository

2011-10-17 Thread Nigel Magnay
What version of maven are you using?
If not the latest, try 3.0.3..


On Sat, Oct 15, 2011 at 5:21 AM, Mike Power  wrote:

> I am really confused.  Maven is failing to resolve an artifact that I can
> easily find in the remote repository.
>
> I am trying to build an open source project whose git repository is found
> at
>
> https://github.com/magnayn/**Jenkins-Repository.git
>
> I get the following error:
> Downloading: http://download.java.net/**maven/2//org/kohsuke/stapler/**
> stapler/1.167/stapler-1.167.**jar
> [INFO] --**--**
> 
> [ERROR] BUILD ERROR
> [INFO] --**--**
> 
> [INFO] Failed to resolve artifact.
>
> Missing:
> --
> 1) org.kohsuke.stapler:stapler:**jar:1.167
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>  mvn install:install-file -DgroupId=org.kohsuke.stapler
> -DartifactId=stapler -Dversion=1.167 -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.kohsuke.stapler
> -DartifactId=stapler -Dversion=1.167 -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>  1) com.nirima.jenkins.repository:**pom:pom:0.6.2-SNAPSHOT
>  2) org.jenkins-ci.main:jenkins-**core:jar:1.417
>  3) org.kohsuke.stapler:stapler-**adjunct-timeline:jar:1.3
>  4) org.kohsuke.stapler:stapler:**jar:1.167
>
> --
> 1 required artifact is missing.
>
> for artifact:
>  com.nirima.jenkins.repository:**pom:pom:0.6.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2**),
>  m.g.o-public 
> (http://maven.glassfish.org/**content/groups/public/
> )
> *
> *
>
> It seems to be only trying central.  However it is not available on
> central.  It is available on m.g.o-public.  Here is the url:
> http://maven.glassfish.org/**content/groups/public/org/**
> kohsuke/stapler/stapler/1.161/**stapler-1.161.jar
>
> Why is maven going to central to find the jar, and not going to
> m.g.o-public?  It says it tried m.g.o-public but I do not see that
> happening.*
> *
>


maven failing to resolve artifact that exists in repository

2011-10-16 Thread Mike Power
I am really confused.  Maven is failing to resolve an artifact that I 
can easily find in the remote repository.


I am trying to build an open source project whose git repository is found at

https://github.com/magnayn/Jenkins-Repository.git

I get the following error:
Downloading: 
http://download.java.net/maven/2//org/kohsuke/stapler/stapler/1.167/stapler-1.167.jar
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

Missing:
--
1) org.kohsuke.stapler:stapler:jar:1.167

  Try downloading the file manually from the project website.

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


  Path to dependency:
  1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
  2) org.jenkins-ci.main:jenkins-core:jar:1.417
  3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
  4) org.kohsuke.stapler:stapler:jar:1.167

--
1 required artifact is missing.

for artifact:
  com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  m.g.o-public (http://maven.glassfish.org/content/groups/public/)
*
*

It seems to be only trying central.  However it is not available on 
central.  It is available on m.g.o-public.  Here is the url: 
http://maven.glassfish.org/content/groups/public/org/kohsuke/stapler/stapler/1.161/stapler-1.161.jar


Why is maven going to central to find the jar, and not going to 
m.g.o-public?  It says it tried m.g.o-public but I do not see that 
happening.*

*


Re: maven failing to resolve artifact that exists in repository

2011-10-15 Thread Mike Power

Well the pom already had this declaration in it:




m.g.o-public
http://maven.glassfish.org/content/groups/public/





m.g.o-public
http://maven.glassfish.org/content/groups/public/



Which I would have assumed it would suffice. None the less I tried your 
suggestion and I still get the failure:
Downloading: 
http://download.java.net/maven/2//org/kohsuke/stapler/stapler/1.167/stapler-1.167.jar
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

Missing:
--
1) org.kohsuke.stapler:stapler:jar:1.167

  Try downloading the file manually from the project website.

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


  Path to dependency:
  1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
  2) org.jenkins-ci.main:jenkins-core:jar:1.417
  3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
  4) org.kohsuke.stapler:stapler:jar:1.167

--
1 required artifact is missing.

for artifact:
  com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  m.g.o-public (http://maven.glassfish.org/content/groups/public/),
  jboss-public-repository-group 
(http://maven.glassfish.org/content/groups/public/)




Could something be wrong with the repository itself?

On 10/15/2011 12:21 AM, Mark Struberg wrote:

Hi!

it seems that this repository is not listed in the projects pom. So it seems to 
be assumed that you add the following analog for what I did for the jboss repos 
to your ~/.m2/settings.xml:


   
   jbossrepo
   
   
   jboss-public-repository-group
   JBoss Public Repository Group
   
http://repository.jboss.org/nexus/content/groups/public/
   default
   
   true
   never
   
   
   true
   never
   
   
   
   
   
   jboss-public-repository-group
   JBoss Public Repository Group
   
http://repository.jboss.org/nexus/content/groups/public/
   
   true
   
   
   true
   
   
   
   
   

just change the profilename to 'glassfishrepo' and use the URL as you need it.

Then start maven with this profile activated:


$ mvn clean install -Pglassfishrepo

LieGrue,
strub

- Original Message -


From: Mike Power
To: Maven Users List
Cc:
Sent: Saturday, October 15, 2011 7:00 AM
Subject: maven failing to resolve artifact that exists in repository

I am really confused.  Maven is failing to resolve an artifact that I can easily
find in the remote repository.

I am trying to build an open source project whose git repository is found at

https://github.com/magnayn/Jenkins-Repository.git

I get the following error:
Downloading:
http://download.java.net/maven/2//org/kohsuke/stapler/stapler/1.167/stapler-1.167.jar
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

Missing:
--
1) org.kohsuke.stapler:stapler:jar:1.167

   Try downloading the file manually from the project website.

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

   Path to dependency:
   1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
   2) org.jenkins-ci.main:jenkins-core:jar:1.417
   3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
   4) org.kohsuke.stapler:stapler:jar:1.167

--
1 required artifact is missing.

for artifact:
   com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   m.g.o-public (http://maven.glassfish.org/content/groups/public/)
*
*

It seems to be only trying central

Re: maven failing to resolve artifact that exists in repository

2011-10-15 Thread Mark Struberg
Hi!

it seems that this repository is not listed in the projects pom. So it seems to 
be assumed that you add the following analog for what I did for the jboss repos 
to your ~/.m2/settings.xml:


  
  jbossrepo
  
  
  jboss-public-repository-group
  JBoss Public Repository Group
  
http://repository.jboss.org/nexus/content/groups/public/
  default
  
  true
  never
  
  
  true
  never
  
  
  
  
  
  jboss-public-repository-group
  JBoss Public Repository Group
  
http://repository.jboss.org/nexus/content/groups/public/
  
  true
  
  
  true
  
  
  
  
  

just change the profilename to 'glassfishrepo' and use the URL as you need it.

Then start maven with this profile activated:

>$ mvn clean install -Pglassfishrepo

LieGrue,
strub

- Original Message -

> From: Mike Power 
> To: Maven Users List 
> Cc: 
> Sent: Saturday, October 15, 2011 7:00 AM
> Subject: maven failing to resolve artifact that exists in repository
> 
> I am really confused.  Maven is failing to resolve an artifact that I can 
> easily 
> find in the remote repository.
> 
> I am trying to build an open source project whose git repository is found at
> 
> https://github.com/magnayn/Jenkins-Repository.git
> 
> I get the following error:
> Downloading: 
> http://download.java.net/maven/2//org/kohsuke/stapler/stapler/1.167/stapler-1.167.jar
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] Failed to resolve artifact.
> 
> Missing:
> --
> 1) org.kohsuke.stapler:stapler:jar:1.167
> 
>   Try downloading the file manually from the project website.
> 
>   Then, install it using the command:
>       mvn install:install-file -DgroupId=org.kohsuke.stapler 
> -DartifactId=stapler -Dversion=1.167 -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.kohsuke.stapler 
> -DartifactId=stapler 
> -Dversion=1.167 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] 
> -DrepositoryId=[id]
> 
>   Path to dependency:
>       1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
>       2) org.jenkins-ci.main:jenkins-core:jar:1.417
>       3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
>       4) org.kohsuke.stapler:stapler:jar:1.167
> 
> --
> 1 required artifact is missing.
> 
> for artifact:
>   com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   m.g.o-public (http://maven.glassfish.org/content/groups/public/)
> *
> *
> 
> It seems to be only trying central.  However it is not available on central.  
> It 
> is available on m.g.o-public.  Here is the url: 
> http://maven.glassfish.org/content/groups/public/org/kohsuke/stapler/stapler/1.161/stapler-1.161.jar
> 
> Why is maven going to central to find the jar, and not going to 
> m.g.o-public?  
> It says it tried m.g.o-public but I do not see that happening.*
> *
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven failing to resolve artifact that exists in repository

2011-10-14 Thread Mike Power
I am really confused.  Maven is failing to resolve an artifact that I 
can easily find in the remote repository.


I am trying to build an open source project whose git repository is found at

https://github.com/magnayn/Jenkins-Repository.git

I get the following error:
Downloading: 
http://download.java.net/maven/2//org/kohsuke/stapler/stapler/1.167/stapler-1.167.jar
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Failed to resolve artifact.

Missing:
--
1) org.kohsuke.stapler:stapler:jar:1.167

  Try downloading the file manually from the project website.

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


  Path to dependency:
  1) com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT
  2) org.jenkins-ci.main:jenkins-core:jar:1.417
  3) org.kohsuke.stapler:stapler-adjunct-timeline:jar:1.3
  4) org.kohsuke.stapler:stapler:jar:1.167

--
1 required artifact is missing.

for artifact:
  com.nirima.jenkins.repository:pom:pom:0.6.2-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  m.g.o-public (http://maven.glassfish.org/content/groups/public/)
*
*

It seems to be only trying central.  However it is not available on 
central.  It is available on m.g.o-public.  Here is the url: 
http://maven.glassfish.org/content/groups/public/org/kohsuke/stapler/stapler/1.161/stapler-1.161.jar


Why is maven going to central to find the jar, and not going to 
m.g.o-public?  It says it tried m.g.o-public but I do not see that 
happening.*

*