Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Because Incubating projects at the ASF cannot publish releases to the central repo, I've created and activated a profile for the Apache Incubating repo. But it appears that the archetype:create goal doesn't recognize this profile at all. Below is the command I'm using:
mvn archetype:create \
-DarchetypeGroupId=org.apache.servicemix.tooling \
-DarchetypeArtifactId=servicemix-binding-component \
-DarchetypeVersion=3.1-incubating \
-DgroupId=org.apache.servicemix.samples.helloworld.bc \
-DartifactId=hello-world-bc
I'm also attaching the debug log output that shows Maven is only searching the central repo instead of also searching the Incubating repo listed in the profile.
Attachments
Issue Links
| This issue is related to: | ||||
| MNG-3099 | Profiles ignored when working with non-projects (such as archetype:create) |
|
|
|
I don't think archetype looks at settings.xml at all.
You can use -DremoteRepositories=... to retrieve the archetype from an alternate remote repo during archetype:create.
http://maven.apache.org/plugins/maven-archetype-plugin/create-mojo.html
Then the pom.xml in the created project could have the incubating repository configured, so that 'mvn install' will work and pull additional artifacts from that repo.