Hi,

I've got a question regarding the cocoon-maven-plugin.
I want to use this rapid development feature in a multi-module project.
It usually worked in my project, but it stopped working since I made a 
major change.

So my question is, how can I debug this feature?
How can I determine what's wrong with my configuration?

Here is my setup:

In my parent pom, there is the following plugin call (that should be used 
by all the other modules):
<plugin>
  <groupId>org.apache.cocoon</groupId>
  <artifactId>cocoon-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>prepare</id>
      <phase>compile</phase>
      <goals>
        <goal>prepare</goal>
      </goals>
    </execution>
  </executions>
</plugin>

In each module, I have a rcl.properties with the self containing entry 
pointing to its target directory:
my.project.module.block%classes-dir=./target/classes

In my home-module there is a rcl.properties pointing to all the other 
modules:
#HOME
my.project.home.block%classes-dir=./target/classes

#OTHERS
my.project.module1.block%classes-dir=../module1/target/classes
my.project.module2.block%classes-dir=../module2/target/classes
my.project.module3.block%classes-dir=../module3/target/classes

calling mvn jetty:run gives the following output 

[INFO] Scanning for projects...
...
[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] Preparing cocoon:prepare
[WARNING] Removing: prepare from forked lifecycle, to prevent recursive 
invocation.
[INFO] [resources:resources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [cocoon:prepare {execution: prepare}]
[INFO] Preparing a Cocoon web application.
[INFO] Deploying string-template to WEB-INF/log4j.xml
[INFO] Adding lib to WEB-INF/lib: commons-logging:commons-logging:1.1:jar
[INFO] Adding lib to WEB-INF/lib: 
org.apache.commons:commons-jci-core:1.0:jar
[INFO] Adding lib to WEB-INF/lib: commons-io:commons-io:1.3.1:jar
[INFO] Adding lib to WEB-INF/lib: log4j:log4j:1.2.14:jar
[INFO] Adding lib to WEB-INF/lib: 
commons-logging:commons-logging-api:1.1:jar
[INFO] Adding lib to WEB-INF/lib: javax.servlet:servlet-api:2.3:jar
[INFO] Adding lib to WEB-INF/lib: 
org.apache.cocoon:cocoon-rcl-webapp-wrapper:1.0.0-M2:jar
[INFO] Adding lib to WEB-INF/lib: 
org.apache.commons:commons-jci-fam:1.0:jar
log4j:WARN No appenders could be found for logger 
(org.apache.commons.configuration.ConfigurationUtils).
log4j:WARN Please initialize the log4j system properly.
[INFO] No patches to apply
[INFO] [resources:testResources]
[INFO] Using encoding: 'UTF-8' to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [jetty:run]
[INFO] Configuring Jetty for project: Home Module
[INFO] Webapp source directory = 
C:\local\dev\workspace\sxdp-niko\niko-modules\niko-home\target\rcl\webapp
[INFO] web.xml file = 
C:\local\dev\workspace\sxdp-niko\niko-webapp\src\main\webapp\WEB-INF\web.xml
[INFO] Classes = 
C:\local\dev\workspace\sxdp-niko\niko-modules\niko-home\target\classes
[INFO] Property org.apache.cocoon.mode=dev was set
2008-09-17 12:22:34.489::INFO:  Logging to STDERR via 
org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] Webapp directory = 
C:\local\dev\workspace\sxdp-niko\niko-modules\niko-home\target\rcl\webapp
[INFO] Starting jetty 6.1.9 ...
2008-09-17 12:22:35.552::INFO:  jetty-6.1.9
...

Thanks in advance
Tobias


_________________________________________________________________

Sachsen DV Betriebs- und Servicegesellschaft mbH
Täubchenweg 26
04317 Leipzig
Amtsgericht Leipzig, HRB 18545

Geschäftsführer: Herbert Roller Brandão, Dr. Jean-Michael Pfitzner

Aufsichtsratsvorsitzender: Andreas Benninger

Reply via email to