Hi everyone,

I am building new archetypes to normalize my software developments and I 
encounter what seems to be a bug.

In the documentation it is written that the update-local-catalog goal is bound 
"by default to the lifecycle phase: install".

However, when I build my archetype, Maven (2.2.1) does not execute the goal and 
I have to run it manually to add the archetype to the local catalog. Here is 
what Maven prints:
> mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building archetype for standard projects
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: 
/Users/ben/Documents/workspace/com-artenum-archetype/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing 
/Users/ben/Documents/workspace/com-artenum-archetype/target/com-artenum-archetype-1.0.0-SNAPSHOT.jar
 to 
/Users/ben/.m2/repository/com/artenum/com-artenum-archetype/1.0.0-SNAPSHOT/com-artenum-archetype-1.0.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Fri Jan 14 11:17:56 CET 2011
[INFO] Final Memory: 16M/81M
[INFO] ------------------------------------------------------------------------

The file is correctly install in the repository, but the catalog is not updated.
Is it me or is it a bug?

Here is my POM:

<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>

        <!-- =========================================================== -->
        <!-- POM relationships -->
        <!-- =========================================================== -->

        <!-- Maven coordinates -->
        <groupId>com.artenum</groupId>
        <artifactId>com-artenum-archetype</artifactId>
        <version>1.0.0-SNAPSHOT</version>

        <!-- =========================================================== -->
        <!-- General project information -->
        <!-- =========================================================== -->

        <!-- General project information -->
        <name>Artenum archetype for standard projects</name>
        <description>
        This archetype shall be used to create new standardized Artenum 
project. 
    </description>
        <url>http://www.artenum.com</url>
        <organization>
                <name>Artenum</name>
                <url>http://www.artenum.com</url>
        </organization>
        <inceptionYear>2011</inceptionYear>

        <!-- Project licenses -->
        <licenses>
                <license>
                        <name>General Public License (GPL)</name>
                        
<url>http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt</url>
                </license>
        </licenses>

        <!-- Development team -->
        <developers></developers>

        <!-- External contributors -->
        <contributors></contributors>

        <!-- =========================================================== -->
        <!-- Build settings -->
        <!-- =========================================================== -->

        <!-- Packaging -->
        <packaging>jar</packaging>

        <!-- Properties -->
        <properties>
                
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        </properties>

        <!-- Build -->
        <build>
                <extensions>
                        <extension>
                                <groupId>org.apache.maven.archetype</groupId>
                                <artifactId>archetype-packaging</artifactId>
                                <version>2.0</version>
                        </extension>
                </extensions>

                <pluginManagement>
                        <plugins>
                                <plugin>
                                        
<artifactId>maven-archetype-plugin</artifactId>
                                        <version>2.0</version>
                                </plugin>
                        </plugins>
                </pluginManagement>
        </build>

</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to