[ http://jira.codehaus.org/browse/ARCHETYPE-175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eugene Kuleshov updated ARCHETYPE-175: -------------------------------------- Description: Archetype instance returned from the local catalog don't have metadata, such as properties. Catalog is obtained like this: {code} PlexusContainer container = mavenEmbedder.getPlexusContainer(); org.apache.maven.archetype.Archetype archetype = (Archetype) container.lookup(org.apache.maven.archetype.Archetype.class); ArchetypeCatalog catalog = archetype.getLocalCatalog(getId()); Properties properties = ((org.apache.maven.archetype.catalog.Archetype) catalog.getArchetypes().get(0)).getProperties(); {code} I expected to see non empty properties for the 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} was: 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} > 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(); > org.apache.maven.archetype.Archetype archetype = > (Archetype) > container.lookup(org.apache.maven.archetype.Archetype.class); > ArchetypeCatalog catalog = archetype.getLocalCatalog(getId()); > Properties properties = ((org.apache.maven.archetype.catalog.Archetype) > catalog.getArchetypes().get(0)).getProperties(); > {code} > I expected to see non empty properties for the 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