cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: My first steps with cocoon 2.2 mavenized application
Date Wed, 09 Aug 2006 08:11:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Wed, 2 Aug 2006, Reinhard Poetz wrote:

> Date: Wed, 02 Aug 2006 07:12:17 +0200
> From: Reinhard Poetz <reinhard@apache.org>
> Reply-To: dev@cocoon.apache.org
> To: dev@cocoon.apache.org
> Subject: Re: My first steps with cocoon 2.2 mavenized application
> 
> Leszek Gawron wrote:
>>  Leszek Gawron wrote:
>> >  Reinhard Poetz wrote:
>> > > >  Does that mean that even simplest application needs 2 maven modules?
>> > > 
>> > >  not necessarily but it is recommended (IMO). If you put all your code

>> > >  into the /src/main/java and /src/main/webapp directories it should 
>> > >  work too.
>>
>>  If so wouldn't it be a good idea to provide an archetype that would create
>>  both a webapp and a block and additionally a main pom file?

We used the webapp archetype and stuffed it with our java code as within
normal Maven 2 src/main/java

When building you need the install phase to make that code into the 
webapp structure:

 	mvn clean install cocoon:deploy-war

and ready is your WAR File

HTH

Giacomo

- -- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFE2ZjFLNdJvZjjVZARAje+AKCNKLFQ3I1hyjmzT5OTNMfEYisxmACg9Hov
+ev4ML5n9OZE8WE+bLbiOUU=
=RSA0
-----END PGP SIGNATURE-----

Mime
View raw message