You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Paul Michael Reilly <pm...@pajato.com> on 2002/11/04 02:29:40 UTC

Re: [jelly] Building from CVS sources

 > > The README says that Jelly is built using Ant and Maven and to just
 > > invoke ant to build it.  I tried that and got many compilation
 > > errors.  But what bothers me is that ant will find build.xml and
 > > maven is not in the picture.  So why does the README even mention
 > > Maven?
 > 
 > Jelly should be buildable by running either Ant *or* Maven, although Maven
 > is the preferred tool. To build using Ant, type 'ant'; to build using Maven,
 > type 'maven'.

Sounds like your sentence should replace the content of the README.
Can you take care of committing a fix for the README file?

Using `maven' I get:

[pmr@copa jelly]$ maven
 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-7

/storage/home/pmr/projects/jakarta-commons-sandbox/jelly

[ERROR] BUILD FAILED
[ERROR] Goal "java:jar" does not exist in this project.
Total time:  13 seconds

[pmr@copa jelly]$


Using `ant' has a lot more problems.  I'll defer reporting those till
later.

 > > 
 > > I have a suspicion that build.xml is out of date wrt the jar files
 > > that one needs in order to build Jelly.  Could this be correct?
 > > Please tell me I'm missing some fundamental piece of information.
 > 
 > Yes, that's possible. The Ant build.xml file is generated by Maven, so if
 > somebody made changes to the Maven build file, but forgot to regenerate the
 > Ant build file and check it in, you might see the kind of thing you are
 > seeing.

If the Ant build.xml file is generated by Maven then perhaps it
should be removed from CVS, or a comment added to the generation that
indicates to someone trying to read and contribute to Jelly might
have a clue.  Can you commit a fix for this too?

How does Maven generate the build.xml file?  I don't seen anything
in the .../jelly/maven.xml file.  Am I looking in the right place?

 > I would recommend using Maven instead of Ant - then you'll avoid any issues
 > like this.

I must be doing something basically wrong.  Here's what I did on my
RedHat 8.0 system running Sun's 1.4.1 JVM:

1) got maven-1.0-beta-7 and installed it.
2) added the beta-7 maven bin directory to my PATH env variable.
3) set MAVEN_HOME to the root of the beta-7 tree where I installed it.
4) used anonymous CVS access to get the latest Jelly
(jakarta-commmons-sandbox) sources.
5) executed maven like above.

Thanks,

-pmr

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by Paul Michael Reilly <pm...@pajato.com>.
 > Yah, this weekend, while trying to deal with having a broken maven
 > bootstrap (Emanuelle?  Fixed that yet?), I was trying to build jelly
 > using the legacy ant build.xml.  You're right that it didn't work.
 > 
 > James, maybe we should cleanse the no-longer-pertinent buildfiles
 > from jelly?  'maven ant' to generate another ant-based build?

That sure would help eliminate a lot of my confusion.

-pmr

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by James Strachan <ja...@yahoo.co.uk>.
From: "Paul Michael Reilly" <pm...@pajato.com>
> > Cool tip : Keep around a maven that works (eg b8) and move it when you
>  > want to use the latest (untill it is broken, use b8 or whatever the
>  > version is). Simple but effective ;)
>  >
>  > Mvgr,
>  > Martin
>
> I've been trying to use Maven b7 to build the Jelly CVS version.

That should work. Honest :-)

> I
> could find no Maven b8 to download.  Is there one built?

I don't think so.

>  I am loathe
> to try to build Maven from the CVS sources after all the grief I've
> had with Jelly.

Don't worry - it should work fine. I've been using Maven b4, b5, b7 and b7
to build Jelly and not had a problem up to now.

> If and when I do get a Maven that actually builds Jelly, I shall cast
> it in bronze.

:-). Hopefully any of them should work.

I've looked at your error log and I'm kinda stumped. It does look quite
strange to me. Are you absolutely sure that you've a proper b7 distro and
that MAVEN_HOME definitely points to it and that $MAVEN_HOME/bin is near the
front of your path?

What does this output...

    maven -g

As 'java:jar' has been a standard target for quite some time and works fine
for me. Does

    maven test

work for you?

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by Paul Michael Reilly <pm...@pajato.com>.
 > Cool tip : Keep around a maven that works (eg b8) and move it when you
 > want to use the latest (untill it is broken, use b8 or whatever the
 > version is). Simple but effective ;)
 > 
 > Mvgr,
 > Martin

I've been trying to use Maven b7 to build the Jelly CVS version.  I
could find no Maven b8 to download.  Is there one built?  I am loathe
to try to build Maven from the CVS sources after all the grief I've
had with Jelly.

If and when I do get a Maven that actually builds Jelly, I shall cast
it in bronze.

-pmr

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by Martin van den Bemt <ml...@mvdb.net>.
Cool tip : Keep around a maven that works (eg b8) and move it when you
want to use the latest (untill it is broken, use b8 or whatever the
version is). Simple but effective ;)

Mvgr,
Martin

On Mon, 2002-11-04 at 15:31, bob mcwhirter wrote:
> > > Just to through in my 2 cents, I likewise was unable to build Jelly
> > > using Ant.  However, use of Maven worked perfectly.
> 
> Yah, this weekend, while trying to deal with having a broken maven
> bootstrap (Emanuelle?  Fixed that yet?), I was trying to build jelly
> using the legacy ant build.xml.  You're right that it didn't work.
> 
> James, maybe we should cleanse the no-longer-pertinent buildfiles
> from jelly?  'maven ant' to generate another ant-based build?
> 
> 	-bob
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by bob mcwhirter <bo...@werken.com>.
> > Just to through in my 2 cents, I likewise was unable to build Jelly
> > using Ant.  However, use of Maven worked perfectly.

Yah, this weekend, while trying to deal with having a broken maven
bootstrap (Emanuelle?  Fixed that yet?), I was trying to build jelly
using the legacy ant build.xml.  You're right that it didn't work.

James, maybe we should cleanse the no-longer-pertinent buildfiles
from jelly?  'maven ant' to generate another ant-based build?

	-bob


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by Lavandowska <fl...@yahoo.com>.
<correction>Just to throw in my 2 cents...</correction>

I plead Monday morning.

--- Lavandowska <fl...@yahoo.com> wrote:
> 
> Just to through in my 2 cents, I likewise was unable to build Jelly
> using Ant.  However, use of Maven worked perfectly.

Lance

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [jelly] Building from CVS sources

Posted by Lavandowska <fl...@yahoo.com>.
Just to through in my 2 cents, I likewise was unable to build Jelly
using Ant.  However, use of Maven worked perfectly.

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>