You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vilya Harvey <vi...@gmail.com> on 2006/02/07 17:56:09 UTC

How to build cocoon trunk?

Hi there,

After spending some time developing on Cocoon 2.1.5.1, I thought it was 
time to try and get up to date. I've checked out the Cocoon trunk from 
SVN and tried to follow the instructions in the README.m10n.txt file, 
but seem to keep getting problems.

The first problem was that the cocoon-deployer module (in the 
cocoon-block-deployer subdirectory) wouldn't build. I found another 
thread related to that which indicated (if I understood correctly) that 
cocoon-deployer was not needed; I've commented it out for now.

Now I'm gettting a lot of warnings about Maven being unable to get 
resources from various directories. I'm not very familiar with Maven yet 
- are these things I can ignore, or will they come back to bite me later 
if I do?

Finally, once I have got it all downloaded and building correctly, what 
is the intended way of developing applications for it? I read a passing 
comment somewhere that user code would be written as a block and would 
just declare dependencies on the blocks it needs. Is that the case? If 
so, where can I find information about writing blocks? If not, how 
*should* I be writing applications for Cocoon 2.2?

Any help would be very much appreciated!

Vil.

-- 
http://www.vilyaharvey.com


Re: How to build cocoon trunk?

Posted by Vilya Harvey <vi...@gmail.com>.
Daniel Fagerstrom wrote:
> If you are brave enough, the best bet is by starting by taking a copy 
> of the cocoon-webapp, rename it to something appropriate. The you 
> update the pom to a new artifactId and to depend on the blocks that 
> you need. You also need to copy the component (and other) 
> configuration files _manually_ from the blocks to WEB-INF in your 
> webapp, they are located in the WEB-INF directory of the blocks. This 
> was done by the ant task before, but no one have written any Maven 
> replacement yet.
>
> After this it might work ;)
>
> /Daniel
>
Thanks a lot for your help Daniel.

Vil.

-- 
http://www.vilyaharvey.com


Re: How to build cocoon trunk?

Posted by Daniel Fagerstrom <da...@nada.kth.se>.
Vilya Harvey skrev:
> Hi there,
> 
> After spending some time developing on Cocoon 2.1.5.1, I thought it was 
> time to try and get up to date. I've checked out the Cocoon trunk from 
> SVN and tried to follow the instructions in the README.m10n.txt file, 
> but seem to keep getting problems.

The trunk is in a state of flux, so if you want to work with it 
currently you have to be prepared to a bumpy ride.

> The first problem was that the cocoon-deployer module (in the 
> cocoon-block-deployer subdirectory) wouldn't build. I found another 
> thread related to that which indicated (if I understood correctly) that 
> cocoon-deployer was not needed; I've commented it out for now.

I have hopefully fixed that problem.

> Now I'm gettting a lot of warnings about Maven being unable to get 
> resources from various directories. I'm not very familiar with Maven yet 
> - are these things I can ignore, or will they come back to bite me later 
> if I do?

If the build succeed it should be OK. Many of the warning have to do 
with small inconsistencies in POMs or that the jar wasn't found in the 
first repository where Maven looked, as long as it is found in any of 
the repositories it should work.

> Finally, once I have got it all downloaded and building correctly, what 
> is the intended way of developing applications for it? I read a passing 
> comment somewhere that user code would be written as a block and would 
> just declare dependencies on the blocks it needs. Is that the case?

We are working on it, and are almost there.

> If 
> so, where can I find information about writing blocks?

http://cocoon.zones.apache.org/daisy/documentation/g2/795.html

But, its not working yet.

> If not, how 
> *should* I be writing applications for Cocoon 2.2?

It is not certain that you *should* as I don't know if anyone have tried 
after the move to Maven. But it should be possible to do similar to how 
it is done in 2.1.

If you are brave enough, the best bet is by starting by taking a copy of 
the cocoon-webapp, rename it to something appropriate. The you update 
the pom to a new artifactId and to depend on the blocks that you need. 
You also need to copy the component (and other) configuration files 
_manually_ from the blocks to WEB-INF in your webapp, they are located 
in the WEB-INF directory of the blocks. This was done by the ant task 
before, but no one have written any Maven replacement yet.

After this it might work ;)

/Daniel