maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Brinkhoff <lars.brinkh...@jeppesen.com>
Subject Lifecycle confusion
Date Wed, 01 Jun 2011 09:41:33 GMT
Hello,

I have taken over maintainership of a plugin called maven-car-plugin.  
Recently, I added a site lifecycle for this plugin, with a pre-site and 
a site phase.

The problem is that when I call "mvn site", between the pre-site and the 
site phase, maven decides to run the string of generate-sources, 
process-sources, process-resources, and compile phases.  It even does so 
six times before getting to the site phase.  What am I doing wrong?

This is the plugin lifecycle configuration from 
src/main/resources/META-INF/plexus/components.xml:

        <component>
            <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
            <role-hint>car</role-hint>
            
<implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
            <configuration>
              <lifecycles>
                <lifecycle>
                  <id>default</id>
                  <phases>
                    <validate></validate>
                    
<generate-sources>carmen:maven-car-plugin:car-download</generate-sources>
                    <generate-resources></generate-resources>
                    
<process-sources>carmen:maven-car-plugin:car-unpack</process-sources>
                    
<process-resources>org.apache.maven.plugins:maven-resources-plugin:resources,
                                       carmen:maven-car-plugin:cmake,
                                       
carmen:maven-car-plugin:cmakeEclipse</process-resources>
                    <compile>carmen:maven-car-plugin:gmake,
                             
org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
                    <process-classes></process-classes>
                    
<process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
                    <test-compile></test-compile>
                    
<test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
                    <package>carmen:maven-car-plugin:car-package,
                             org.apache.maven.plugins:maven-jar-plugin:jar
                    </package>
                    <integration-test></integration-test>
                    
<install>org.apache.maven.plugins:maven-install-plugin:install</install>
                    
<deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
                    <verify>carmen:maven-car-plugin:verify</verify>
                  </phases>
                </lifecycle>
                <lifecycle>
                  <id>site</id>
                  <phases>
                    <pre-site>
                      
org.apache.maven.plugins:maven-dependency-plugin:unpack-dependencies,
                      carmen:maven-car-plugin:car-download,
                      carmen:maven-car-plugin:car-unpack,
                      carmen:maven-car-plugin:cmake
                    </pre-site>
                    <site>
                      org.apache.maven.plugins:maven-site-plugin:site,
                      carmen:maven-car-plugin:car-site
                    </site>
                  </phases>
                </lifecycle>
              </lifecycles>
            </configuration>
        </component>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message