Re: how can I build trunk?

2006-01-18 Thread Carsten Ziegeler
Antonio Gallardo wrote:
 
 The new cocoon uses maven 2. Download maven 2.0.2 [1], install it and
 then follow the instructions [2]
 
I get the following error - should the deployer be disabled for now?

[INFO]
-
---
[INFO] Building Cocoon Block Deployer
[INFO]task-segment: [install]
[INFO]
-
---
[INFO] [castor:generate {execution: default}]
[INFO]
-
---
[ERROR] FATAL ERROR
[INFO]
-
---
[INFO] basedir src\main\resources\xsd does not exist
[INFO]
-
---
[INFO] Trace
java.lang.IllegalStateException: basedir src\main\resources\xsd does not
exist
at
org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:
542)
at
org.codehaus.plexus.compiler.util.scan.AbstractSourceInclusionScanner

-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Re: how can I build trunk?

2006-01-18 Thread Daniel Fagerstrom

Carsten Ziegeler wrote:


Giacomo Pati wrote:
 


On Tue, 17 Jan 2006, Ralph Goers wrote:


   


Date: Tue, 17 Jan 2006 21:15:28 -0800
From: Ralph Goers [EMAIL PROTECTED]
Reply-To: dev@cocoon.apache.org, [EMAIL PROTECTED]
To: dev@cocoon.apache.org
Subject: Re: how can I build trunk?

We should probably remove build.sh
   

If we remove build.sh we probably should remove lots of other things too 
(lib/, tools/)


   


+1

If noone objects I'll remove all ant related stuff later today - I'll
leave the libs for now as this directory helps in finding out
dependencies. Once we have converted all blocks we should remove libs as
well.
 


+1

legal must also be kept, even when we remove lib, as there is no support 
for licence handling in Maven yet. Hopefully Maven can give automated 
support for licence handling when ASF get a common policy for where and 
how to put forign licenses in the distributions.


/Daniel



Re: how can I build trunk?

2006-01-18 Thread Daniel Fagerstrom
Carsten Ziegeler wrote:

Antonio Gallardo wrote:
  

The new cocoon uses maven 2. Download maven 2.0.2 [1], install it and
then follow the instructions [2]



I get the following error - should the deployer be disabled for now?

Yes, there is a bug in the the castor plugin that makes it read files
relative current working directory rather than directory of pom.xml.
This makes the deployer buildable only from its own directory, not from
the top level. The deployer plugin must be disabled as well.

/Daniel



Re: how can I build trunk?

2006-01-18 Thread Sylvain Wallez

Daniel Fagerstrom wrote:

Carsten Ziegeler wrote:


Giacomo Pati wrote:
 


On Tue, 17 Jan 2006, Ralph Goers wrote:


  

Date: Tue, 17 Jan 2006 21:15:28 -0800
From: Ralph Goers [EMAIL PROTECTED]
Reply-To: dev@cocoon.apache.org, [EMAIL PROTECTED]
To: dev@cocoon.apache.org
Subject: Re: how can I build trunk?

We should probably remove build.sh
  
If we remove build.sh we probably should remove lots of other things 
too (lib/, tools/)

+1

If noone objects I'll remove all ant related stuff later today - I'll
leave the libs for now as this directory helps in finding out
dependencies. Once we have converted all blocks we should remove libs as
well.
 


+1

legal must also be kept, even when we remove lib, as there is no 
support for licence handling in Maven yet. Hopefully Maven can give 
automated support for licence handling when ASF get a common policy 
for where and how to put forign licenses in the distributions.


+1 as well. Let's remove the now broken and useless Ant build, but keep 
precious legal information accumulated over the years :-)


Sylvain

--
Sylvain WallezAnyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research  Technology Director



Re: how can I build trunk?

2006-01-18 Thread Jean-Baptiste Quenot
* Ralph Goers:

 We should probably remove build.sh

+1

I met the same issue trying to build trunk.
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


Re: how can I build trunk?

2006-01-18 Thread Jean-Baptiste Quenot
About Maven,

I tried to  mavenize the xmldb block  and I can't get  it to build
because  some  POMs  cannot  be  fetched.   Can  someone  go  into
cocoon-xmldb and try to build?

Also,  I did  not import  the xmldb  samples for  now, I'll  do it
later  when  the  implementation  builds.  So  there  is  still  a
src/blocks/xmldb.  It's half-baked because I had a lot of problems
with Maven:

1) I had to download a snapshot because Maven 2.0.1 does not work

2) I had the error with XSD schema

3) Many POMs cannot be retrieved I have to restart build 20 times

Thanks in advance,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


Re: how can I build trunk?

2006-01-18 Thread Daniel Fagerstrom

Jean-Baptiste Quenot wrote:


About Maven,

I tried to  mavenize the xmldb block  and I can't get  it to build
because  some  POMs  cannot  be  fetched.   Can  someone  go  into
cocoon-xmldb and try to build?

Also,  I did  not import  the xmldb  samples for  now, I'll  do it
later  when  the  implementation  builds.  So  there  is  still  a
src/blocks/xmldb.  It's half-baked because I had a lot of problems
with Maven:

1) I had to download a snapshot because Maven 2.0.1 does not work
 


I have no problems with 2.0.1. What specifically doesn't work.


2) I had the error with XSD schema
 

The cocoon-deployer and cocoon-plugins must be disabled in the top level 
POM, if you refer to the problem that have been discussed earlier in 
this thread.



3) Many POMs cannot be retrieved I have to restart build 20 times
 

The Apache local Maven repositories doesn't work that well, and 
generates intermitent cannot connect errors, IIRC. The solutions for 
this is:


1. Help moving artifacts that we use from the Apache repository to the 
much better and mirrored ibiblio repository, see 
http://maven.apache.org/project-faq.html.
2. Reduce the use of snapshot POMs. If you start building all of Cocoon 
from top level rather than from a specific block, you will use your own 
snapshots of the needed block instead of those from the snapshot 
repository. Especially if you change the top level POM or several blocks 
at once, this might be needed as the snapshot in the repository doesn't 
contain your latest changes (not completely sure about what policy maven 
has for downloading snapshots from the networked repositories rather 
than from your local).
3. Joining the infrastructure group and work for making the snapshot 
repository more stable ;)


/Daniel



Re: how can I build trunk?

2006-01-18 Thread Jean-Baptiste Quenot
* Daniel Fagerstrom:
 2) I had the error with XSD schema
  
 The cocoon-deployer and cocoon-plugins must be disabled in the top level POM, 
 if you refer to the problem that have 
 been discussed earlier in this thread.

Someone commented out those two blocks, great.

 3) Many POMs cannot be retrieved I have to restart build 20 times
  
 The Apache local Maven repositories doesn't work that well, and generates 
 intermitent cannot connect errors, IIRC. 
 The solutions for this is:
 
 1. Help moving artifacts that we use from the Apache repository to the much 
 better and mirrored ibiblio repository, 
 see http://maven.apache.org/project-faq.html.
 2. Reduce the use of snapshot POMs. If you start building all of Cocoon from 
 top level rather than from a specific 
 block, you will use your own snapshots of the needed block instead of those 
 from the snapshot repository. Especially 
 if you change the top level POM or several blocks at once, this might be 
 needed as the snapshot in the repository 
 doesn't contain your latest changes (not completely sure about what policy 
 maven has for downloading snapshots from 
 the networked repositories rather than from your local).
 3. Joining the infrastructure group and work for making the snapshot 
 repository more stable ;)

Don't know the best solution, I will think about it.

I added the cocoon-databases and cocoon-databases-mocks artifacts,
to try and build cocoon-xmldb successfully.

Here is my error:

[INFO] Failed to resolve artifact.

required artifacts missing:   d-haven-managed-pool:d-haven-managed-pool:jar:1.0

for the artifact:   org.apache.cocoon:cocoon-databases:jar:1.0-SNAPSHOT

from the specified remote repositories:
  apache-maven2 (http://cvs.apache.org/maven-snapshot-repository),
  central (http://repo1.maven.org/maven2),
  maven-snapshot (http://snapshots.maven.codehaus.org/maven2/),
  apache-cvs (http://cvs.apache.org/repository)

How to fix that?
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


Re: how can I build trunk?

2006-01-18 Thread Daniel Fagerstrom

Jean-Baptiste Quenot wrote:
...


Don't know the best solution, I will think about it.

I added the cocoon-databases and cocoon-databases-mocks artifacts,
to try and build cocoon-xmldb successfully.

Here is my error:

[INFO] Failed to resolve artifact.

required artifacts missing:   d-haven-managed-pool:d-haven-managed-pool:jar:1.0

for the artifact:   org.apache.cocoon:cocoon-databases:jar:1.0-SNAPSHOT

from the specified remote repositories:
 apache-maven2 (http://cvs.apache.org/maven-snapshot-repository),
 central (http://repo1.maven.org/maven2),
 maven-snapshot (http://snapshots.maven.codehaus.org/maven2/),
 apache-cvs (http://cvs.apache.org/repository)

How to fix that?
 

You find instructions in the end of 
http://cocoon.zones.apache.org/daisy/documentation/g2/756.html. Now I'm 
a little bit suprized that it is missing, IIRC, that jar is used in the 
Excalibur project, and Jorg worked together with Excalibur to move 
Excalibur to M2. Hopefully Jorg can comment.


Otherwise, the best long term solution is to ask d-haven.org (i.e. Berin 
Loritsch, IIUC), to publish their artifacts on the central maven2 
repository.


/Daniel



Re: how can I build trunk?

2006-01-18 Thread Carsten Ziegeler
Daniel Fagerstrom wrote

 
 You find instructions in the end of 
 http://cocoon.zones.apache.org/daisy/documentation/g2/756.html. Now I'm 
 a little bit suprized that it is missing, IIRC, that jar is used in the 
 Excalibur project, and Jorg worked together with Excalibur to move 
 Excalibur to M2. Hopefully Jorg can comment.
 
 Otherwise, the best long term solution is to ask d-haven.org (i.e. Berin 
 Loritsch, IIUC), to publish their artifacts on the central maven2 
 repository.
 
Or we can exclude them as we don't need the d-haven implementation. With
ECM++ we use our own stuff.

Carsten
-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Re: how can I build trunk?

2006-01-18 Thread Jean-Baptiste Quenot
* Carsten Ziegeler:

 Or  we   can  exclude  them   as  we  don't  need   the  d-haven
 implementation. With ECM++ we use our own stuff.

I tried to remove the dependency, and got many such errors:

cocoon-trunk/cocoon-databases/src/main/java/org/apache/cocoon/acting/DatabaseSelectAction.java:[56,8]
 cannot resolve symbol
symbol  : class DataSourceComponent
location: class org.apache.cocoon.acting.DatabaseSelectAction

Can you explain what is needed to satisfy this dependency?
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


Re: how can I build trunk?

2006-01-18 Thread Carsten Ziegeler
Jean-Baptiste Quenot schrieb:
 * Carsten Ziegeler:
 
 
Or  we   can  exclude  them   as  we  don't  need   the  d-haven
implementation. With ECM++ we use our own stuff.
 
 
 I tried to remove the dependency, and got many such errors:
 
 cocoon-trunk/cocoon-databases/src/main/java/org/apache/cocoon/acting/DatabaseSelectAction.java:[56,8]
  cannot resolve symbol
 symbol  : class DataSourceComponent
 location: class org.apache.cocoon.acting.DatabaseSelectAction
 
 Can you explain what is needed to satisfy this dependency?
I assume that you exclude the excalibur-datasource dependency? You have
to leave that one in, but define excludes for the transitive
dependencies as some excalibur stuff depends on the d-haven stuff.
You can have a look at the pom in the core module which has some examples.

Carsten

-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/


Re: how can I build trunk?

2006-01-18 Thread Jean-Baptiste Quenot
* Carsten Ziegeler:
 Jean-Baptiste Quenot schrieb:
  I tried to remove the dependency, and got many such errors:
  
  cocoon-trunk/cocoon-databases/src/main/java/org/apache/cocoon/acting/DatabaseSelectAction.java:[56,8]
   cannot resolve symbol
  symbol  : class DataSourceComponent
  location: class org.apache.cocoon.acting.DatabaseSelectAction
  
  Can you explain what is needed to satisfy this dependency?
 I assume that you exclude the excalibur-datasource dependency? You have
 to leave that one in, but define excludes for the transitive
 dependencies as some excalibur stuff depends on the d-haven stuff.
 You can have a look at the pom in the core module which has some examples.

Thank you!  It works.
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


Re: how can I build trunk?

2006-01-18 Thread Jorg Heymans

Daniel Fagerstrom wrote:

 1. Help moving artifacts that we use from the Apache repository to the
 much better and mirrored ibiblio repository, see
 http://maven.apache.org/project-faq.html.

just a quick note wrt to this : you'll find that late afternoon CET even
ibiblio will often time out. This is a known issue, last i heard is that
they are looking to move the central repo somewhere else. Best bet is to
allways specify the european mirror in settings.xml (if you're living in
europe ofcourse) and run maven -s settings.xml ... . The maven docs have
a list of all the repos somewhere.


Jorg




Re: how can I build trunk?

2006-01-18 Thread Jorg Heymans

Daniel Fagerstrom wrote:

 You find instructions in the end of
 http://cocoon.zones.apache.org/daisy/documentation/g2/756.html. Now I'm
 a little bit suprized that it is missing, IIRC, that jar is used in the
 Excalibur project, and Jorg worked together with Excalibur to move
 Excalibur to M2. Hopefully Jorg can comment.


I see Carsten provided the solution already, great ! (Excalibur should
really decide on their next release so we can push all the artifacts
from cvs.a.o to the central repo)


Jorg
(who just started a new contract and will only sporadically be able to
catch up on dev@ mail)



how can I build trunk?

2006-01-17 Thread roy huang
Hi,cocooners:
  I have get trunk using svn,but can't build it.When I use build.bat to build 
it ,error here:

D:\cocoon\trunkbuild
Buildfile: build.xml

 ${fullname} ${version} [${year}]

 Building with Apache Ant version 1.6.5 compiled on June 2 2005

 Using build file D:\cocoon\trunk\build.xml

 Compiler options:
   - debug . [on]
   - optimize .. [on]
   - deprecation ... [off]

Created dir: D:\cocoon\trunk\build\${name}

compile-mocks:
Created dir: D:\cocoon\trunk\build\${name}\mocks

compile-core:
Created dir: D:\cocoon\trunk\build\${name}\classes

BUILD FAILED
D:\cocoon\trunk\tools\targets\compile-build.xml:71: Warning: Could not find file
 D:\cocoon\trunk\src\java\org\apache\cocoon\cocoon.properties to copy.

Total time: 9 seconds

What's the problem?

Roy Huang

[HELP]How can I build trunk?

2006-01-17 Thread roy huang
Hi,cocooners:
  I fail to build trunk after I get it from svn,errors here:

D:\cocoon\trunkbuild
Buildfile: build.xml

 ${fullname} ${version} [${year}]

 Building with Apache Ant version 1.6.5 compiled on June 2 2005

 Using build file D:\cocoon\trunk\build.xml

 Compiler options:
   - debug . [on]
   - optimize .. [on]
   - deprecation ... [off]

Created dir: D:\cocoon\trunk\build\${name}

compile-mocks:
Created dir: D:\cocoon\trunk\build\${name}\mocks

BUILD FAILED
D:\cocoon\trunk\tools\targets\compile-build.xml:61: The following error occurred
 while executing this line:
D:\cocoon\trunk\tools\targets\compile-build.xml:44: D:\cocoon\trunk\src\mocks no
t found.

Total time: 8 seconds

What's the problem?

Roy Huang

Re: how can I build trunk?

2006-01-17 Thread Antonio Gallardo
roy huang wrote:

Hi,cocooners:
  I have get trunk using svn,but can't build it.When I use build.bat to build 
 it ,error here:

D:\cocoon\trunkbuild
Buildfile: build.xml


What's the problem?
  

The new cocoon uses maven 2. Download maven 2.0.2 [1], install it and
then follow the instructions [2]

Enjoy!

Best Regards,

Antonio Gallardo.

[1] http://maven.apache.org/
[2] http://cocoon.zones.apache.org/daisy/documentation/g2/756.html



Re: how can I build trunk?

2006-01-17 Thread Ralph Goers
We should probably remove build.sh

Antonio Gallardo wrote:

roy huang wrote:

  

Hi,cocooners:
 I have get trunk using svn,but can't build it.When I use build.bat to build 
 it ,error here:

D:\cocoon\trunkbuild
Buildfile: build.xml


What's the problem?
 



The new cocoon uses maven 2. Download maven 2.0.2 [1], install it and
then follow the instructions [2]

Enjoy!

Best Regards,

Antonio Gallardo.

[1] http://maven.apache.org/
[2] http://cocoon.zones.apache.org/daisy/documentation/g2/756.html

  



Re: how can I build trunk?

2006-01-17 Thread Giacomo Pati

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 17 Jan 2006, Ralph Goers wrote:


Date: Tue, 17 Jan 2006 21:15:28 -0800
From: Ralph Goers [EMAIL PROTECTED]
Reply-To: dev@cocoon.apache.org, [EMAIL PROTECTED]
To: dev@cocoon.apache.org
Subject: Re: how can I build trunk?

We should probably remove build.sh


If we remove build.sh we probably should remove lots of other things too 
(lib/, tools/)




Antonio Gallardo wrote:


roy huang wrote:




Hi,cocooners:
I have get trunk using svn,but can't build it.When I use build.bat to build it 
,error here:

D:\cocoon\trunkbuild
Buildfile: build.xml


What's the problem?





The new cocoon uses maven 2. Download maven 2.0.2 [1], install it and
then follow the instructions [2]

Enjoy!

Best Regards,

Antonio Gallardo.

[1] http://maven.apache.org/
[2] http://cocoon.zones.apache.org/daisy/documentation/g2/756.html








- -- 
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.2 (GNU/Linux)

iD8DBQFDzdueLNdJvZjjVZARAuEhAJ4mEVagK/HC8NxSqKQOSWiavPT/jwCgxGHb
D2z/3b9qFutpOHp/1duwsZI=
=2+6D
-END PGP SIGNATURE-


Re: how can I build trunk?

2006-01-17 Thread Carsten Ziegeler
Giacomo Pati wrote:
 On Tue, 17 Jan 2006, Ralph Goers wrote:
 
 
Date: Tue, 17 Jan 2006 21:15:28 -0800
From: Ralph Goers [EMAIL PROTECTED]
Reply-To: dev@cocoon.apache.org, [EMAIL PROTECTED]
To: dev@cocoon.apache.org
Subject: Re: how can I build trunk?

We should probably remove build.sh
 
 
 If we remove build.sh we probably should remove lots of other things too 
 (lib/, tools/)
 
+1

If noone objects I'll remove all ant related stuff later today - I'll
leave the libs for now as this directory helps in finding out
dependencies. Once we have converted all blocks we should remove libs as
well.

Carsten

-- 
Carsten Ziegeler - Open Source Group, SN AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/