[EMAIL PROTECTED] wrote:
Author: cziegeler
Date: Fri Oct  6 02:06:31 2006
New Revision: 453534

URL: http://svn.apache.org/viewvc?view=rev&rev=453534
Log:
Deployer plugin will run automatically

Modified:
    
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml

Modified: 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml?view=diff&rev=453534&r1=453533&r2=453534
==============================================================================
--- 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
 (original)
+++ 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
 Fri Oct  6 02:06:31 2006
@@ -37,6 +37,14 @@
         <groupId>org.apache.cocoon</groupId>
         <artifactId>cocoon-deployer-plugin</artifactId>
         <version>1.0.0-M2-SNAPSHOT</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>deploy</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
       <plugin>
         <groupId>org.mortbay.jetty</groupId>

This does not as expected. Probably because you are not able to specify the order of goals to be executed. So the order is:

war:war
cocoon:deploy
cocoon:deploy (again .. have no idea where that comes from)

see my log of 'mvn clean package':

[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building GeminiSmart Webapp
[INFO]    task-segment: [clean, package]
[INFO] 
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target
[INFO] Deleting directory 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\classes
[INFO] Deleting directory 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overriding broader scope 'compile'
        given by a dependency. If this is not intended, modify or remove the 
local scope.

[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Assembling webapp geminismart-server-webapp in 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Generating war 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT.war
[INFO] Building war: 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT.war
[INFO] [cocoon:deploy {execution: default}]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Assembling webapp geminismart-server-webapp in 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Deploying icu4j

[...]

[INFO] Deploying nekohtml
[INFO] Copy webapp resources to 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] [cocoon:deploy {execution: default}]
[INFO] Exploding webapp...
[INFO] Copy webapp resources to 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Assembling webapp geminismart-server-webapp in 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] Deploying icu4j

[...]

[INFO] Deploying nekohtml
[INFO] Copy webapp resources to 
c:\dev\projects\gemini-smart\server\geminismart-server-webapp\target\geminismart-server-webapp-1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25 seconds
[INFO] Finished at: Fri Oct 06 12:48:56 CEST 2006
[INFO] Final Memory: 9M/17M
[INFO] ------------------------------------------------------------------------

so in the end you have proper web application in \target\geminismart-server-webapp-1.0.0-SNAPSHOT but the war is not cocoon:deploy'ed !


if you remove execution binding you can simply do:

mvn clean cocoon:deploy - to get a properly built webapp
mvn clean cocoon:deploy-war - to get a good war

still no way to make 'mvn clean package' working though.

--
Leszek Gawron, IT Manager                          MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Reply via email to