You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bruce Snyder (JIRA)" <ji...@codehaus.org> on 2007/03/08 19:14:14 UTC

[jira] Created: (MNG-2862) The archetype:create goal ignores activated profiles in local settings.xml

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

                 Key: MNG-2862
                 URL: http://jira.codehaus.org/browse/MNG-2862
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.5
            Reporter: Bruce Snyder
         Attachments: mvn.log

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|http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration]. But it appears that the {{archetype:create}} goal doesn't recognize this profile at all. Below is the command I'm using: 

{panel}
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
{panel}

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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (ARCHETYPE-66) The archetype:create goal ignores activated profiles in local settings.xml

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/ARCHETYPE-66?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wendy Smoak moved MNG-2862 to ARCHETYPE-66:
-------------------------------------------

    Affects Version/s:     (was: 2.0.5)
           Complexity:   (was: Intermediate)
                  Key: ARCHETYPE-66  (was: MNG-2862)
              Project: Maven Archetype  (was: Maven 2)

> The archetype:create goal ignores activated profiles in local settings.xml 
> ---------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-66
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-66
>             Project: Maven Archetype
>          Issue Type: Bug
>            Reporter: Bruce Snyder
>         Attachments: mvn.log
>
>
> 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|http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration]. But it appears that the {{archetype:create}} goal doesn't recognize this profile at all. Below is the command I'm using: 
> {panel}
> 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
> {panel}
> 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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MNG-2862) The archetype:create goal ignores activated profiles in local settings.xml

Posted by "Bruce Snyder (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruce Snyder closed MNG-2862.
-----------------------------

    Resolution: Won't Fix

Thanks for the tip, Wendy! 

> The archetype:create goal ignores activated profiles in local settings.xml 
> ---------------------------------------------------------------------------
>
>                 Key: MNG-2862
>                 URL: http://jira.codehaus.org/browse/MNG-2862
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Bruce Snyder
>         Attachments: mvn.log
>
>
> 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|http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration]. But it appears that the {{archetype:create}} goal doesn't recognize this profile at all. Below is the command I'm using: 
> {panel}
> 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
> {panel}
> 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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-2862) The archetype:create goal ignores activated profiles in local settings.xml

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-2862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89477 ] 

Wendy Smoak commented on MNG-2862:
----------------------------------

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.

> The archetype:create goal ignores activated profiles in local settings.xml 
> ---------------------------------------------------------------------------
>
>                 Key: MNG-2862
>                 URL: http://jira.codehaus.org/browse/MNG-2862
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>            Reporter: Bruce Snyder
>         Attachments: mvn.log
>
>
> 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|http://incubator.apache.org/servicemix/4-examples.html#4.Examples-Mavenconfiguration]. But it appears that the {{archetype:create}} goal doesn't recognize this profile at all. Below is the command I'm using: 
> {panel}
> 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
> {panel}
> 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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira