Maven Archetype

The archetype:create goal ignores activated profiles in local settings.xml

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

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.

Issue Links

Activity

Hide
Wendy Smoak added a comment -

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.

Show
Wendy Smoak added a comment - 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.
Hide
Bruce Snyder added a comment -

Thanks for the tip, Wendy!

Show
Bruce Snyder added a comment - Thanks for the tip, Wendy!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: