archetype returned from local catalog don't have metadata
---------------------------------------------------------

                 Key: ARCHETYPE-175
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-175
             Project: Maven Archetype
          Issue Type: Bug
            Reporter: Eugene Kuleshov


Archetype instance returned from the local catalog don't have metadata, such as 
properties. Catalog is obtained like this:

{code}
  PlexusContainer container = mavenEmbedder.getPlexusContainer();
  Archetype archetype = (Archetype) container.lookup(Archetype.class);
  ArchetypeCatalog catalog = archetype.getLocalCatalog(getId());
{code}

See test project attached at MNGECLIPSE-612, which I added to the local 
Archetype catalog like this:

{code}
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
  <archetypes>
    <archetype>
      <groupId>org.apache.maven.archetypes</groupId>
      <artifactId>maven-archetype-proptest</artifactId>
      <version>1.0</version>
      <description>Prop test</description>
    </archetype>
  </archetypes>
</archetype-catalog>
{code}

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