Re: How can i connect to a password protected repository?

2007-02-06 Thread Maruf Aytekin

Andy, many thanks for the help. It works now. -Maruf

Andrew Williams wrote:

You need to setup a pluginRepositories section too

Andy

On 5 Feb 2007, at 16:03, Maruf Aytekin wrote:


Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured 
pom.xml as below. I can deploy the files successfully but I cannot 
read from the repository. It checks internal but doesn't download the 
plugin from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: 
checking for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: 
checking for upd

ates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: 
http://mycompany.com/repository/maven2/org/apache/maven/plugins/maven-compi 


ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions/server
...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.

Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:


I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to 
serve my

artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 
urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url

   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is 
there a

different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:


I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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






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




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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Andrew Williams

In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
I would like to set a password protected repository. In order to 
download from repository you need to enter usernae and password to 
apache authentication prompt. Where should I configure it?  in the pom 
or settings file?


repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf


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




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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin
I think this is for deploying artifacts. and the settings are the 
settings to login the server. I have an http server running to serve my 
artifact repository username and passsword protected. I found this 
solution usses url with username and password:


   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this 
solution I don't want username and password go with pom.xml. Is there a 
different way to achieve this?


Thanks
Maruf


Andrew Williams wrote:

In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
I would like to set a password protected repository. In order to 
download from repository you need to enter usernae and password to 
apache authentication prompt. Where should I configure it?  in the 
pom or settings file?


repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf


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




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




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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Rodrigo Ruiz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
 I think this is for deploying artifacts. and the settings are the
 settings to login the server. I have an http server running to serve my
 artifact repository username and passsword protected. I found this
 solution usses url with username and password:
 
repository
  idinternal/id
  namemycompany Repository/name
  urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
/repository
 
 But I am getting authentication error with this and also with this
 solution I don't want username and password go with pom.xml. Is there a
 different way to achieve this?
 
 Thanks
 Maruf
 
 
 Andrew Williams wrote:
 In settings.xml - something like

 servers
  server
idinternal/id
username.../username
password.../password
  /server
 /servers

 Andy

 Maruf Aytekin wrote:
 I would like to set a password protected repository. In order to
 download from repository you need to enter usernae and password to
 apache authentication prompt. Where should I configure it?  in the
 pom or settings file?

 repositories
repository
  idinternal/id
  nameMyCompany Repository/name
  urlhttp://mycompany.com/repository/maven2/url
/repository
  /repositories

 Thanks for the help,

 Maruf


- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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



Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin

Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured 
pom.xml as below. I can deploy the files successfully but I cannot read 
from the repository. It checks internal but doesn't download the plugin 
from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: 
http://devax/repository/maven2/org/apache/maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions 
   /server

...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.


Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
  

I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to serve my
artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is there a
different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
  

I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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


  


Re: How can i connect to a password protected repository?

2007-02-05 Thread Maruf Aytekin

Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured 
pom.xml as below. I can deploy the files successfully but I cannot read 
from the repository. It checks internal but doesn't download the plugin 
from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking 
for upd

ates from central
Downloading: 
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: 
http://mycompany.com/repository/maven2/org/apache/maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions 
   /server

...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.

Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:
  

I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to serve my
artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/maven2/url
   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is there a
different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:
  

I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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


  


Re: How can i connect to a password protected repository?

2007-02-05 Thread Andrew Williams

You need to setup a pluginRepositories section too

Andy

On 5 Feb 2007, at 16:03, Maruf Aytekin wrote:


Hi,

Thanks for the help. I am doing something wrong here I guess.

I have set the username and password in settings.xml and configured  
pom.xml as below. I can deploy the files successfully but I cannot  
read from the repository. It checks internal but doesn't download  
the plugin from internal. it   downloads it from central as follows:


[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:  
checking for upd

ates from internal
[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:  
checking for upd

ates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/ 
maven-compil

er-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom
1K downloaded
Downloading: http://mycompany.com/repository/maven2/org/apache/ 
maven/plugins/maven-compi

ler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar
14K downloaded

settings.xml
..
   server
 idinternal/id
 usernameusername/username
 passwordpassword/password
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions/server
...

pom.xml
.
.
modules
   modulecustomer/module
   moduleserver/module
 /modules
 repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories
 distributionManagement
   repository
 uniqueVersionfalse/uniqueVersion
 idinternal/id
 nameMyCompany Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /repository
   snapshotRepository
 idinternal/id
 uniqueVersionfalse/uniqueVersion
 nameMyCompany Snapshot Repository/name
 urlscp://mycompany.com/home/repository/maven2/url
   /snapshotRepository
 /distributionManagement
.
.

Rodrigo Ruiz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

No, Andrew was right. The servers/server entry in settings.xml is for
any remote server. Just give it a try ;-)

Cheers,
Rodrigo Ruiz

Maruf Aytekin wrote:


I think this is for deploying artifacts. and the settings are the
settings to login the server. I have an http server running to  
serve my

artifact repository username and passsword protected. I found this
solution usses url with username and password:

   repository
 idinternal/id
 namemycompany Repository/name
 urlhttp://username:[EMAIL PROTECTED]/repository/ 
maven2/url

   /repository

But I am getting authentication error with this and also with this
solution I don't want username and password go with pom.xml. Is  
there a

different way to achieve this?

Thanks
Maruf


Andrew Williams wrote:


In settings.xml - something like

servers
 server
   idinternal/id
   username.../username
   password.../password
 /server
/servers

Andy

Maruf Aytekin wrote:


I would like to set a password protected repository. In order to
download from repository you need to enter usernae and password to
apache authentication prompt. Where should I configure it?  in the
pom or settings file?

repositories
   repository
 idinternal/id
 nameMyCompany Repository/name
 urlhttp://mycompany.com/repository/maven2/url
   /repository
 /repositories

Thanks for the help,

Maruf




- --
- ---
GRID SYSTEMS, S.A. Rodrigo Ruiz
Parc Bit - Edificio 17 Research Coordinator
07121 Palma de Mallorca
Baleares - Spain   Tel: +34 971 435 085
http://www.gridsystems.com/Fax: +34 971 435 082
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFFxy+5p9m/F5UenDoRAt+wAJ9zzqZhlY92NOwFR7n6AOJ4g7tyvwCgs7E3
0DktK0H3WAHSIOkHcmfHlnU=
=6N+9
-END PGP SIGNATURE-

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






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