cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Piéroni <raphael.pier...@aql.fr>
Subject Re: webapp maven error
Date Fri, 16 Nov 2007 08:03:05 GMT
Hi

I attached the result.
I also changed the pom content.
First to have the dependency to articleBlock.
And also to make the webapp module links to the parent pom.

I am also behind a firewall.

Hope this helps.

Raphaël

PS: if not yet tried you can call mvn with -U or -cpu options
PPS can't sent you the resulting zip. so here is the tree
|   pom.xml
|
\---articleWebapp
     |   pom.xml
     |
     \---src
         \---main
             \---webapp
                 \---WEB-INF
                         web.xml

Here is the trace
E:\temp\test>mvn clean
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Article application [parent]
[INFO]   articleWebapp
[INFO]
----------------------------------------------------------------------------
[INFO] Building Article application [parent]
[INFO]    task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory E:\temp\test\target
[INFO] Deleting directory E:\temp\test\target\classes
[INFO] Deleting directory E:\temp\test\target\test-classes
[INFO] Deleting directory E:\temp\test\target\site
[INFO]
----------------------------------------------------------------------------
[INFO] Building articleWebapp
[INFO]    task-segment: [clean]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory E:\temp\test\articleWebapp\target
[INFO] Deleting directory E:\temp\test\articleWebapp\target\classes
[INFO] Deleting directory E:\temp\test\articleWebapp\target\test-classes
[INFO] Deleting directory E:\temp\test\articleWebapp\target\site
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Article application [parent] .......................... SUCCESS
[0.641s]
[INFO] articleWebapp ......................................... SUCCESS
[0.140s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 16 08:50:02 CET 2007
[INFO] Final Memory: 19M/64M
[INFO]
------------------------------------------------------------------------

E:\temp\test>mvn package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Article application [parent]
[INFO]   articleWebapp
[INFO]
----------------------------------------------------------------------------
[INFO] Building Article application [parent]
[INFO]    task-segment: [package]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO]
----------------------------------------------------------------------------
[INFO] Building articleWebapp
[INFO]    task-segment: [package]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[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] Assembling webapp articleWebapp in
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT
[INFO] Copy webapp webResources to
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT
[INFO] Generating war
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT.war
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor:
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT\WEB-INF
\web.xml does not exist.

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Fri Nov 16 08:50:51 CET 2007
[INFO] Final Memory: 24M/64M
[INFO]
------------------------------------------------------------------------

E:\temp\test>mkdir articleWebapp\src\main\webapp\WEB-INF

E:\temp\test>mkdir articleWebapp\src\main\webapp\WEB-INF
Un sous-répertoire ou un fichier articleWebapp\src\main\webapp\WEB-INF
existe déjà.

E:\temp\test>touch articleWebapp\src\main\webapp\WEB-INF\web.xml

E:\temp\test>mvn package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Article application [parent]
[INFO]   articleWebapp
[INFO]
----------------------------------------------------------------------------
[INFO] Building Article application [parent]
[INFO]    task-segment: [package]
[INFO]
----------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO]
----------------------------------------------------------------------------
[INFO] Building articleWebapp
[INFO]    task-segment: [package]
[INFO]
----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[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] Assembling webapp articleWebapp in
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT
[INFO] Copy webapp webResources to
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT
[INFO] Generating war
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT.war
[INFO] Building war:
E:\temp\test\articleWebapp\target\articleWebapp-1.0-SNAPSHOT.war
[INFO]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] Article application [parent] .......................... SUCCESS
[1.000s]
[INFO] articleWebapp ......................................... SUCCESS
[1.063s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Nov 16 08:51:50 CET 2007
[INFO] Final Memory: 24M/64M
[INFO]
------------------------------------------------------------------------


Here is the webapp 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">

<!-- (Modified HERE) -->
  <parent>
   <groupId>com.sample.article</groupId>
   <artifactId>article-app</artifactId>
   <version>1-SNAPSHOT</version>
  </parent>
<!-- (/Modified HERE) -->

   <modelVersion>4.0.0</modelVersion>
   <packaging>war</packaging>

   <name>articleWebapp</name>
   <groupId>com.sample.article</groupId>
   <artifactId>articleWebapp</artifactId>
   <version>1.0-SNAPSHOT</version>

   <build>
     <plugins>
       <plugin>
         <groupId>org.mortbay.jetty</groupId>
         <artifactId>maven-jetty-plugin</artifactId>
         <version>6.1.3</version>
         <configuration>
           <connectors>
             <connector 
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
               <port>8888</port>
               <maxIdleTime>30000</maxIdleTime>
             </connector>
           </connectors>
 
<webAppSourceDirectory>${project.build.directory}/${pom.artifactId}-${pom.version}</webAppSourceDirectory>
           <contextPath>/</contextPath>
         </configuration>
       </plugin>
     </plugins>
   </build>

   <dependencies><!-- (Modified HERE) -->
     <!--dependency>
         <groupId>com.sample.article</groupId>
         <artifactId>article_block</artifactId>
         <version>1.0-SNAPSHOT</version>
     </dependency-->
   </dependencies><!-- (/Modified HERE) -->

</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message