overriding central repo archetype:create

2007-09-10 Thread Adrian Gonzalez
Hello,

I have the impression that the settings default
profiles (activated in settings.xml with
activeProfile) are not used when there's no pom.xml.

My use case is :
I've overrode central repository in settings.xml [1].
It's working fine for an existing project.

Now, I want to execute mvn archetype:create -e
-DgroupId=samplegroup -DartifactId=arti

There's no pom.xml in the current directory.
When I execute this mvn command, mvn doesn't use my
override (see [1]).

When I add a sample empty pom.xml, the mvn command
executes fine.

Am I missing sthing ?

Thanks for your help.

[1] my settings.xml
settings
 
localRepositoryD:\Documents\Developpements\.m2\repository/localRepository
  servers
server
  idsphinx-site/id
  usernamefwk/username
  passwordXXX/password
/server

server
  idlibs-releases/id
  usernameadmin/username
  passwordYYY/password
/server

server
  idlibs-snapshots/id
  usernameadmin/username
  passwordYYY/password
/server

  /servers

  profiles
profile
  iddefault/id
repositories
repository
  idcentral/id
 
urlhttp://10.253.21.49:8081/artifactory/repo/url
  snapshots
  enabledfalse/enabled
  /snapshots
/repository
repository
  idsnapshots/id
 
urlhttp://10.253.21.49:8081/artifactory/repo/url
  releases
  enabledfalse/enabled
  /releases
/repository
/repositories
pluginRepositories
pluginRepository
  idcentral/id
 
urlhttp://10.253.21.49:8081/artifactory/plugins-releases/url
  snapshots
  enabledfalse/enabled
  /snapshots
/pluginRepository
pluginRepository
  idsnapshots/id
 
urlhttp://10.253.21.49:8081/artifactory/plugins-snapshots/url
  releases
  enabledfalse/enabled
  /releases
/pluginRepository
/pluginRepositories
/profile

  activeProfiles
activeProfiledefault/activeProfile
  /activeProfiles

/settings


[2]-[WARNING] repository metadata for: 'artifact
org.apache.maven.plugins:maven-archetype-plugin' could
not be retrieved from repository: central due to an
error: Error transferring file
[INFO] Repository 'central' will be blacklisted


  

Découvrez le blog Yahoo! Mail : dernières nouveautés, astuces, conseils.. et 
vos réactions !
http://blog.mail.yahoo.fr

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



Re: overriding central repo archetype:create

2007-09-10 Thread Thorsten Heit
Hi,

 I have the impression that the settings default
 profiles (activated in settings.xml with
 activeProfile) are not used when there's no pom.xml.

Yes. There's already a couple of Jira issues for that:

* http://jira.codehaus.org/browse/ARCHETYPE-59
* http://jira.codehaus.org/browse/MNG-3099

See also 
http://www.nabble.com/Maven-ignoring-Artifactory-proxy-settings--t3397576s177.html


HTH

Thorsten

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



RE : Re: overriding central repo archetype:create

2007-09-10 Thread Adrian Gonzalez
Thank you very much Thorsten !

--- Thorsten Heit [EMAIL PROTECTED] a écrit :

 Hi,
 
  I have the impression that the settings default
  profiles (activated in settings.xml with
  activeProfile) are not used when there's no
 pom.xml.
 
 Yes. There's already a couple of Jira issues for
 that:
 
 * http://jira.codehaus.org/browse/ARCHETYPE-59
 * http://jira.codehaus.org/browse/MNG-3099
 
 See also

http://www.nabble.com/Maven-ignoring-Artifactory-proxy-settings--t3397576s177.html
 
 
 HTH
 
 Thorsten
 

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



  
_ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

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