Hi,

I'm not sure if you followed the following approach:

- workspace
    - {parent-pom-project}
    - {cocoon-block-1}
    - {cocoon-block-2}  //where block-2 depends on 1

you first need to install all projects in your local maven repository

so change dir into parent-pom and execute
mvn install

This should trigger the reactor build if you added the 2 cocoon blocks as 
modules.

After that you should not run into the missing jar issue again.

And if you don't have a parent pom... make sure you install each block with 
'mvn install' and block-1 first because otherwise block-2 will run again into 
the missing jar exception.

Cheers,
Robby Pelssers


-----Oorspronkelijk bericht-----
Van: spasm...@gmail.com namens Terence Kearns
Verzonden: wo 20-10-2010 14:48
Aan: docs@cocoon.apache.org
Onderwerp: The "Using Blocks" tutorial
 
The second tutorial for Cocoon 2.2 had an issue for me which i could
not resolve.

Here is the page concerned.
http://cocoon.apache.org/2.2/1291_1_1.html

The tutorial gets you to configure the pom.xml to include myBlock2 as
a dependency.

The problem is that I cannot for the life of me figure out how Maven
is supposed to magically know where the newly created myblock2 folder
resides.

I spent some time reading about maven (which I am not really familiar
with) but how to fix the problem is not immediately apparent.
http://maven.apache.org/pom.html

The tutorial makes the following reference
"If you use the RCL goal of the Cocoon Maven plugin, you will also
want to add the location of the new block to the configuration file of
block1. This has the advantage that you can work on block2 and the
changes take effect immediately. Open
getting-started-app/myBlock1/rcl.properties and add"

> com.mycompany.myBlock1.service%classes-dir=./target/classes
> com.mycompany.myBlock2.service%classes-dir=../myBlock2/target/classes
> %exclude-lib=com.mycompany:myBlock2

but the above settings have no affect (i obviously substituted
"com.mycompany" with my chosen group Id).

running "mvn jetty:run"

just gets me

"Missing:
----------
1) com.TerenceKearns:myBlock2:jar:1.0.0"

and I have been stuck on this issue ever since.

I think I have followed the tutorial to the letter, but it has not
worked. If there is something missing, it is not in the tutorial.

Obviously this is a documentation issue. I'm not looking for tech
support here. If you guys know what I did wrong, then perhaps a
modification of the tutorial will prevent the same problem happening
for others.

Just some feedback for you.

<<winmail.dat>>