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]