RE: How to make nexus work with thirdparty libraries??

2008-06-12 Thread Brian E. Fox
The repository central is most likely a proxy repository and you can't deploy 
to proxies...they are mirrors of another repository.

-Original Message-
From: Kent Närling [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2008 2:59 AM
To: Maven Users List
Subject: Re: How to make nexus work with thirdparty libraries??

Actually, I tried to upload this plugin manually to our nexus repository,
but cannot get it to install properly...

Trying the command:
b-plugin\1.1mvn deploy:deploy-file -DgroupId=com.sun.tools.xjc.maven2
-DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin
-Dfile=maven-jaxb-p
lugin-1.1.jar 
-Durl=http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central

But only get the error:
[ERROR] BUILD ERROR
[INFO]

[INFO] Error deploying artifact: Failed to transfer file:
http://localhost:8081/nexus/content/repositories/central/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar.
Return code is: 401

Guess I probably use the wrong URL, but the documentation regarding which
URL to specify is well, non-existing?
Should it point to the nexus root? (would be logical considering you specify
-DrepositoryId etc) tried this too, doesn't work...

//Kent

2008/6/11 Kent Närling [EMAIL PROTECTED]:

 Actually, I got it working if I manually added it to the dependencies... so
 this seems to be a bug in the M2 maven eclipse plugin, since I could not
 find it by browsing...

 Anyone have a comment on that?
 Apart from this I have found the m2 plugin great so far and the artifact
 browser is very nice! :-)

 //Kent


 2008/6/11 Ed Hillmann [EMAIL PROTECTED]:

 On Tue, Jun 10, 2008 at 3:58 PM, Kent Närling [EMAIL PROTECTED]
 wrote:
  I have read the FAQ on how to upload thirdparty jars to a repository,
 but
  cannot seem to get it working?
 
  I have tried to upload the jacorb jar to our own local repository
 (nexus)
  with the command:
  mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
  -Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
  http://nexus:8081/nexus/content/repositories/releases
 
  And then I have the following settings.xml:
  ?xml version=1.0?
  settings
   mirrors
 mirror
   idNexus/id
   nameNexus Public Mirror/name
   urlhttp://nexus:8081/nexus/content/groups/public/url
   mirrorOfcentral/mirrorOf
 /mirror
   /mirrors
  /settings
 
  But still I cannot use this artifact!!
  I tried searching for it using the index plugin in M2 eclipse but cannot
  find it (and cannot add it as a dependency either).
 
  But when I go into nexus I can easily find it when searching for
 artifacts
  in the web user interface...
 
  I also tried to upload it to repositories/thirdparty (in nexus) but no
  difference?
  Can anyone tell me what I am doing wrong?
 
  //Kent

 Is the releases repository defined as a member of the public group?
 When we've added additional repositories, we've had to make sure that
 we include them in the group definition if they're to be found at the
 group URL.

 Hope this helps,
 Ed

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: [EMAIL PROTECTED]
 www.seamless.se




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Kent Närling
Actually, I got it working if I manually added it to the dependencies... so
this seems to be a bug in the M2 maven eclipse plugin, since I could not
find it by browsing...

Anyone have a comment on that?
Apart from this I have found the m2 plugin great so far and the artifact
browser is very nice! :-)

//Kent


2008/6/11 Ed Hillmann [EMAIL PROTECTED]:

 On Tue, Jun 10, 2008 at 3:58 PM, Kent Närling [EMAIL PROTECTED]
 wrote:
  I have read the FAQ on how to upload thirdparty jars to a repository, but
  cannot seem to get it working?
 
  I have tried to upload the jacorb jar to our own local repository (nexus)
  with the command:
  mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
  -Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
  http://nexus:8081/nexus/content/repositories/releases
 
  And then I have the following settings.xml:
  ?xml version=1.0?
  settings
   mirrors
 mirror
   idNexus/id
   nameNexus Public Mirror/name
   urlhttp://nexus:8081/nexus/content/groups/public/url
   mirrorOfcentral/mirrorOf
 /mirror
   /mirrors
  /settings
 
  But still I cannot use this artifact!!
  I tried searching for it using the index plugin in M2 eclipse but cannot
  find it (and cannot add it as a dependency either).
 
  But when I go into nexus I can easily find it when searching for
 artifacts
  in the web user interface...
 
  I also tried to upload it to repositories/thirdparty (in nexus) but no
  difference?
  Can anyone tell me what I am doing wrong?
 
  //Kent

 Is the releases repository defined as a member of the public group?
 When we've added additional repositories, we've had to make sure that
 we include them in the group definition if they're to be found at the
 group URL.

 Hope this helps,
 Ed

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se


Re: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Kent Närling
Actually, I tried to upload this plugin manually to our nexus repository,
but cannot get it to install properly...

Trying the command:
b-plugin\1.1mvn deploy:deploy-file -DgroupId=com.sun.tools.xjc.maven2
-DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin
-Dfile=maven-jaxb-p
lugin-1.1.jar 
-Durl=http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central

But only get the error:
[ERROR] BUILD ERROR
[INFO]

[INFO] Error deploying artifact: Failed to transfer file:
http://localhost:8081/nexus/content/repositories/central/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar.
Return code is: 401

Guess I probably use the wrong URL, but the documentation regarding which
URL to specify is well, non-existing?
Should it point to the nexus root? (would be logical considering you specify
-DrepositoryId etc) tried this too, doesn't work...

//Kent

2008/6/11 Kent Närling [EMAIL PROTECTED]:

 Actually, I got it working if I manually added it to the dependencies... so
 this seems to be a bug in the M2 maven eclipse plugin, since I could not
 find it by browsing...

 Anyone have a comment on that?
 Apart from this I have found the m2 plugin great so far and the artifact
 browser is very nice! :-)

 //Kent


 2008/6/11 Ed Hillmann [EMAIL PROTECTED]:

 On Tue, Jun 10, 2008 at 3:58 PM, Kent Närling [EMAIL PROTECTED]
 wrote:
  I have read the FAQ on how to upload thirdparty jars to a repository,
 but
  cannot seem to get it working?
 
  I have tried to upload the jacorb jar to our own local repository
 (nexus)
  with the command:
  mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
  -Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
  http://nexus:8081/nexus/content/repositories/releases
 
  And then I have the following settings.xml:
  ?xml version=1.0?
  settings
   mirrors
 mirror
   idNexus/id
   nameNexus Public Mirror/name
   urlhttp://nexus:8081/nexus/content/groups/public/url
   mirrorOfcentral/mirrorOf
 /mirror
   /mirrors
  /settings
 
  But still I cannot use this artifact!!
  I tried searching for it using the index plugin in M2 eclipse but cannot
  find it (and cannot add it as a dependency either).
 
  But when I go into nexus I can easily find it when searching for
 artifacts
  in the web user interface...
 
  I also tried to upload it to repositories/thirdparty (in nexus) but no
  difference?
  Can anyone tell me what I am doing wrong?
 
  //Kent

 Is the releases repository defined as a member of the public group?
 When we've added additional repositories, we've had to make sure that
 we include them in the group definition if they're to be found at the
 group URL.

 Hope this helps,
 Ed

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: [EMAIL PROTECTED]
 www.seamless.se




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se


Re: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Ed Hillmann
On Wed, Jun 11, 2008 at 4:59 PM, Kent Närling [EMAIL PROTECTED] wrote:
 Actually, I tried to upload this plugin manually to our nexus repository,
 but cannot get it to install properly...

 Trying the command:
 b-plugin\1.1mvn deploy:deploy-file -DgroupId=com.sun.tools.xjc.maven2
 -DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin
 -Dfile=maven-jaxb-p
 lugin-1.1.jar 
 -Durl=http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central

 But only get the error:
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error deploying artifact: Failed to transfer file:
 http://localhost:8081/nexus/content/repositories/central/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar.
 Return code is: 401

 Guess I probably use the wrong URL, but the documentation regarding which
 URL to specify is well, non-existing?
 Should it point to the nexus root? (would be logical considering you specify
 -DrepositoryId etc) tried this too, doesn't work...

 //Kent
So, you are trying to deploy an artifact to your mirror of central?  I
don't know if you can do that or not.  But taking an uneducated guess
I'd think you couldn't do that.  Wouldn't you be better off having a
local repository called third.party and use that as repository of
third party artifacts that are manually deployed to your Nexus server?
 Then, you can include the third.party repository in the public group
and it's available.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Kent Närling
Using a local repository?

But then every developer has to add this to their local repository??
And it gets even more messy to get this working with automatic builds?

Or do you mean that I should add another hosted repository in nexus?
(usually local repository refers to the repository on your own machine?)
Again, the central part was just an example, the question was more:
If I have a nexus server, WHERE should I install it?

http://localhost:8081/nexus/content/repositories/thirdparty
-DrepositoryId=thirdpartyhttp://localhost:8081/nexus/content/repositories/central-DrepositoryId=central?
(since a thirdparty hosted repository is already defined in the default
nexus setup?)

And by the way, why IS there a -DrepositoryId if that is part of the URL
anyway?


2008/6/12 Ed Hillmann [EMAIL PROTECTED]:

 On Wed, Jun 11, 2008 at 4:59 PM, Kent Närling [EMAIL PROTECTED]
 wrote:
  Actually, I tried to upload this plugin manually to our nexus repository,
  but cannot get it to install properly...
 
  Trying the command:
  b-plugin\1.1mvn deploy:deploy-file -DgroupId=com.sun.tools.xjc.maven2
  -DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin
  -Dfile=maven-jaxb-p
  lugin-1.1.jar -Durl=
 http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central
 
  But only get the error:
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Error deploying artifact: Failed to transfer file:
 
 http://localhost:8081/nexus/content/repositories/central/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar
 .
  Return code is: 401
 
  Guess I probably use the wrong URL, but the documentation regarding which
  URL to specify is well, non-existing?
  Should it point to the nexus root? (would be logical considering you
 specify
  -DrepositoryId etc) tried this too, doesn't work...
 
  //Kent
 So, you are trying to deploy an artifact to your mirror of central?  I
 don't know if you can do that or not.  But taking an uneducated guess
 I'd think you couldn't do that.  Wouldn't you be better off having a
 local repository called third.party and use that as repository of
 third party artifacts that are manually deployed to your Nexus server?
  Then, you can include the third.party repository in the public group
 and it's available.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: [EMAIL PROTECTED]
www.seamless.se


Re: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Stephen Duncan Jr
To match up to a server id in settings.xml if there is authentication
required for the repository.

On Wed, Jun 11, 2008 at 6:35 PM, Kent Närling [EMAIL PROTECTED]
wrote:

 Using a local repository?

 But then every developer has to add this to their local repository??
 And it gets even more messy to get this working with automatic builds?

 Or do you mean that I should add another hosted repository in nexus?
 (usually local repository refers to the repository on your own machine?)
 Again, the central part was just an example, the question was more:
 If I have a nexus server, WHERE should I install it?

 http://localhost:8081/nexus/content/repositories/thirdparty
 -DrepositoryId=thirdpartyhttp://localhost:8081/nexus/content/repositories/thirdparty-DrepositoryId=thirdparty
 
 http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central
 ?
 (since a thirdparty hosted repository is already defined in the default
 nexus setup?)

 And by the way, why IS there a -DrepositoryId if that is part of the URL
 anyway?


 2008/6/12 Ed Hillmann [EMAIL PROTECTED]:

  On Wed, Jun 11, 2008 at 4:59 PM, Kent Närling [EMAIL PROTECTED]
  wrote:
   Actually, I tried to upload this plugin manually to our nexus
 repository,
   but cannot get it to install properly...
  
   Trying the command:
   b-plugin\1.1mvn deploy:deploy-file -DgroupId=com.sun.tools.xjc.maven2
   -DartifactId=maven-jaxb-plugin -Dversion=1.1 -Dpackaging=maven-plugin
   -Dfile=maven-jaxb-p
   lugin-1.1.jar -Durl=
 
 http://localhost:8081/nexus/content/repositories/central-DrepositoryId=central
  
   But only get the error:
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] Error deploying artifact: Failed to transfer file:
  
 
 http://localhost:8081/nexus/content/repositories/central/com/sun/tools/xjc/maven2/maven-jaxb-plugin/1.1/maven-jaxb-plugin-1.1.jar
  .
   Return code is: 401
  
   Guess I probably use the wrong URL, but the documentation regarding
 which
   URL to specify is well, non-existing?
   Should it point to the nexus root? (would be logical considering you
  specify
   -DrepositoryId etc) tried this too, doesn't work...
  
   //Kent
  So, you are trying to deploy an artifact to your mirror of central?  I
  don't know if you can do that or not.  But taking an uneducated guess
  I'd think you couldn't do that.  Wouldn't you be better off having a
  local repository called third.party and use that as repository of
  third party artifacts that are manually deployed to your Nexus server?
   Then, you can include the third.party repository in the public group
  and it's available.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Kent Närling

 System Architect
 SEAMLESS
 Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
 Phone: +46 8 5648 7800, fax: +46 8 5648 7823
 Mobile: +46 70 836 9925
 Mail: [EMAIL PROTECTED]
 www.seamless.se




-- 
Stephen Duncan Jr
www.stephenduncanjr.com


RE: How to make nexus work with thirdparty libraries??

2008-06-11 Thread Brian E. Fox
I assume the deploy goes ok if you can see it in the UI. Make sure the repo is 
part of the public group and also make sure you don't have a routing rule that 
is somehow causing the thirdparty to be excluded (maybe you have include 
org.jacorb = releases snapshots for example)

-Original Message-
From: Kent Närling [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 10, 2008 1:58 AM
To: Maven Users List
Subject: How to make nexus work with thirdparty libraries??

I have read the FAQ on how to upload thirdparty jars to a repository, but
cannot seem to get it working?

I have tried to upload the jacorb jar to our own local repository (nexus)
with the command:
mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
-Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
http://nexus:8081/nexus/content/repositories/releases

And then I have the following settings.xml:
?xml version=1.0?
settings
  mirrors
mirror
  idNexus/id
  nameNexus Public Mirror/name
  urlhttp://nexus:8081/nexus/content/groups/public/url
  mirrorOfcentral/mirrorOf
/mirror
  /mirrors
/settings

But still I cannot use this artifact!!
I tried searching for it using the index plugin in M2 eclipse but cannot
find it (and cannot add it as a dependency either).

But when I go into nexus I can easily find it when searching for artifacts
in the web user interface...

I also tried to upload it to repositories/thirdparty (in nexus) but no
difference?
Can anyone tell me what I am doing wrong?

//Kent

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make nexus work with thirdparty libraries??

2008-06-10 Thread Ed Hillmann
On Tue, Jun 10, 2008 at 3:58 PM, Kent Närling [EMAIL PROTECTED] wrote:
 I have read the FAQ on how to upload thirdparty jars to a repository, but
 cannot seem to get it working?

 I have tried to upload the jacorb jar to our own local repository (nexus)
 with the command:
 mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
 -Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
 http://nexus:8081/nexus/content/repositories/releases

 And then I have the following settings.xml:
 ?xml version=1.0?
 settings
  mirrors
mirror
  idNexus/id
  nameNexus Public Mirror/name
  urlhttp://nexus:8081/nexus/content/groups/public/url
  mirrorOfcentral/mirrorOf
/mirror
  /mirrors
 /settings

 But still I cannot use this artifact!!
 I tried searching for it using the index plugin in M2 eclipse but cannot
 find it (and cannot add it as a dependency either).

 But when I go into nexus I can easily find it when searching for artifacts
 in the web user interface...

 I also tried to upload it to repositories/thirdparty (in nexus) but no
 difference?
 Can anyone tell me what I am doing wrong?

 //Kent

Is the releases repository defined as a member of the public group?
When we've added additional repositories, we've had to make sure that
we include them in the group definition if they're to be found at the
group URL.

Hope this helps,
Ed

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make nexus work with thirdparty libraries??

2008-06-09 Thread Kent Närling
I have read the FAQ on how to upload thirdparty jars to a repository, but
cannot seem to get it working?

I have tried to upload the jacorb jar to our own local repository (nexus)
with the command:
mvn deploy:deploy-file -DgroupId=org.jacorb -DartifactId=jacorb
-Dversion=2.3 -Dpackaging=jar -Dfile=jacorb.jar -Durl=
http://nexus:8081/nexus/content/repositories/releases

And then I have the following settings.xml:
?xml version=1.0?
settings
  mirrors
mirror
  idNexus/id
  nameNexus Public Mirror/name
  urlhttp://nexus:8081/nexus/content/groups/public/url
  mirrorOfcentral/mirrorOf
/mirror
  /mirrors
/settings

But still I cannot use this artifact!!
I tried searching for it using the index plugin in M2 eclipse but cannot
find it (and cannot add it as a dependency either).

But when I go into nexus I can easily find it when searching for artifacts
in the web user interface...

I also tried to upload it to repositories/thirdparty (in nexus) but no
difference?
Can anyone tell me what I am doing wrong?

//Kent