When creating the archetype project pom, distribution management only gets 
added if there is a parent project
-------------------------------------------------------------------------------------------------------------

                 Key: ARCHETYPE-363
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-363
             Project: Maven Archetype
          Issue Type: Bug
          Components: Archetypes
    Affects Versions: 2.0
            Reporter: Jordan Zimmerman


FilesetArchetypeCreator.createArchetypeProjectPom() only adds distribution 
management to the new model if there is a parent project. If there isn't a 
parent, it should use the project's distribution management.

A fix is this:

Add this line after creating the new model:

model.setDistributionManagement(project.getDistributionManagement());

-- 
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

        

Reply via email to