You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by eyal edri <ey...@gmail.com> on 2010/02/14 15:07:06 UTC

error using a new archetype from local index

Hi,

i've created a new archetype: (the pom.xml)

*<groupId>com.company.maven.archetype</groupId>
  <artifactId>Generic</artifactId>
  <packaging>jar</packaging>
  <version>0.0.1</version>
  <name>Company Generic archetype</name>
  <description>default archetype for company maven projects</description>
  <parent>
    <groupId>com.company.maven.pom</groupId>
    <artifactId>Parent</artifactId>
    <version>0.0.15</version>
  </parent>
*
*deployed to it: http://ct-repo01:8081/artifactory/libs-releases-local*

*manually created the catalog file: ~/.m2/archetype-catalog.xml*

<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
  <archetypes>
    <archetype>
        <groupId>com.company.maven.archetype</groupId>
        <artifactId>Generic</artifactId>
        <version>0.0.1</version>
        <repository>http://ct-repo01:8081/artifactory/libs-releases-local
</repository>
        <description>Generic Company ArcheType for Maven
Projects</description>
    </archetype>
  </archetypes>
</archetype-catalog>

when trying to use it from eclipse (using New->Project->Maven Project),and
picking from the default-local catalog the Generic archetype.

i get an error after writing the basic pom info:

*Failed to create project.
  Unable to create project from archetype
[com.company.maven.archetype:Generic:0.0.1 ->
http://ct-repo01:8081/artifactory/libs-releases-local]
  Failed to generate project from the old archetype**
*

-- 
Eyal Edri

Re: error using a new archetype from local index

Posted by eyal edri <ey...@gmail.com>.
Problem fixed.

i've used a property in the parent called: classpath.
apparantly this caused errors.

changed it to ctch.classpath and now it works!

great way to create a default project scheme to all the developers.

On Sun, Feb 14, 2010 at 4:07 PM, eyal edri <ey...@gmail.com> wrote:

> Hi,
>
> i've created a new archetype: (the pom.xml)
>
> *<groupId>com.company.maven.archetype</groupId>
>   <artifactId>Generic</artifactId>
>   <packaging>jar</packaging>
>   <version>0.0.1</version>
>   <name>Company Generic archetype</name>
>   <description>default archetype for company maven projects</description>
>   <parent>
>     <groupId>com.company.maven.pom</groupId>
>     <artifactId>Parent</artifactId>
>     <version>0.0.15</version>
>   </parent>
> *
> *deployed to it: http://ct-repo01:8081/artifactory/libs-releases-local*
>
> *manually created the catalog file: ~/.m2/archetype-catalog.xml*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <archetype-catalog>
>   <archetypes>
>     <archetype>
>         <groupId>com.company.maven.archetype</groupId>
>         <artifactId>Generic</artifactId>
>         <version>0.0.1</version>
>         <repository>http://ct-repo01:8081/artifactory/libs-releases-local
> </repository>
>         <description>Generic Company ArcheType for Maven
> Projects</description>
>     </archetype>
>   </archetypes>
> </archetype-catalog>
>
> when trying to use it from eclipse (using New->Project->Maven Project),and
> picking from the default-local catalog the Generic archetype.
>
> i get an error after writing the basic pom info:
>
> *Failed to create project.
>   Unable to create project from archetype
> [com.company.maven.archetype:Generic:0.0.1 ->
> http://ct-repo01:8081/artifactory/libs-releases-local]
>   Failed to generate project from the old archetype**
> *
>
> --
> Eyal Edri
>



-- 
Eyal Edri