You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Raphaël Luta <ra...@apache.org> on 2004/03/29 10:13:36 UTC
[J2] Maven version required to build J2 ?
I spent a very frustating week-end trying to build J2 and while
I finally managed to get there, I found several issues with Maven
along the way.
First my dev setup is:
windows 2000 SP4
jsdk 1.4.2_03
tomcat 4.1.24
I had maven 1.0-rc1 installed and kept getting errors in the torque
generation tasks about log4j not finding its appender definition.
So I decided to do a full reinstall of Maven using the latest rc2
binary.
Bad idea! The rc2 seems not to package a torque plugin anymore and
the goal jar:install fails because of some issues with the java
plugin (I've not bothered to look more in-depth into it...)
So to get a clean build of J2 I had to do the following:
Use Maven rc2 with the torque plugin bundled with beta 10 and the
java plugin bundled with rc1 !
My question is: am I the only one with this issue with the Maven
release candidates ?
If not, I think we should update the getting started document
to specify which version of Maven exactly works for building J2.
I must also say that I'm quite uncomfortable with this Maven dependency
as it seems to me that it's pretty much like the Turbine of old: a
moving target you can't really depend upon and it's so damn SLOW !
Anyway, just my 2 cents.
--
Raphaël Luta - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Emmanuel Venisse <em...@venisse.net>.
>
> So to get a clean build of J2 I had to do the following:
> Use Maven rc2 with the torque plugin bundled with beta 10 and the
> java plugin bundled with rc1 !
The torque plugin is now hosted by torque project.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Serge Huber2 <sh...@jahia.com>.
At 10:13 29.03.2004, you wrote:
>I must also say that I'm quite uncomfortable with this Maven dependency
>as it seems to me that it's pretty much like the Turbine of old: a
>moving target you can't really depend upon and it's so damn SLOW !
Hi Raphael,
I haven't had time to test with RC2 yet, but I'm the one that introduced
the Torque Gen stuff. I was looking for a solution to generate SQL schema
creation scripts for most major database without having to rewrite a tool
from scratch, and without having to maintain what seems like an endlessly
growing set of SQL scripts. Torque Gen seemed to fit the bill quite well,
although it had a few issues to be ironed out (such as the Log4j stuff and
some errors in the templates).
But if you know of another tool that would suit J2 better, I'd be the first
interested. Basically we need a way to easily generate SQL schema creation
scripts for most of the major databases.
I think also one of the main problem with the Torque project is that Martin
Poeschl seemed to be the main maintainer of the project, and somebody has
yet to step up to help out in this area.
Regards,
Serge Huber.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Emmanuel Venisse <em...@venisse.net>.
----- Original Message -----
From: "Serge Huber2" <sh...@jahia.com>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Wednesday, March 31, 2004 10:18 AM
Subject: Re: [J2] Maven version required to build J2 ?
> At 00:13 31.03.2004, you wrote:
>
> >Well since I'm not subscribed to the maven list, I'll try to recap
exactly
> >what I did :
> >- clean the maven local files ($HOME/.maven)
> >- download Maven RC2 Windows installer and install over Maven RC1
>
> Ok the main difference for me was that I didn't use the Windows installer
> but the ZIP file, and didn't install over RC 1. I have two difference
Maven
> directories, and I simply changed the MAVEN_HOME and PATH environment
> variables. Maybe it's an issue with the Windows installer or installing
> over a previous version ?
It's a better solution. It isn't recommended to unzip a version over an
other.
>
> Oh and I also started by flushing the ${user.home}/.maven/plugins
directory.
>
> Regards,
> Serge Huber.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Serge Huber2 <sh...@jahia.com>.
At 00:13 31.03.2004, you wrote:
>Well since I'm not subscribed to the maven list, I'll try to recap exactly
>what I did :
>- clean the maven local files ($HOME/.maven)
>- download Maven RC2 Windows installer and install over Maven RC1
Ok the main difference for me was that I didn't use the Windows installer
but the ZIP file, and didn't install over RC 1. I have two difference Maven
directories, and I simply changed the MAVEN_HOME and PATH environment
variables. Maybe it's an issue with the Windows installer or installing
over a previous version ?
Oh and I also started by flushing the ${user.home}/.maven/plugins directory.
Regards,
Serge Huber.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Raphaël Luta <ra...@apache.org>.
Le 30 mars 04, à 23:52, Emmanuel Venisse a écrit :
>>>> Thanks. I'll test it tomrrow. Do you also have the strange java
>>>> goals
>>>> issue with Maven RC2 ?
>>>
>>> Remove the plugins directory in ${user.home}/.maven
>>>
>>> Emmanuel
>>>
>>
>> That's what I did with the clean install... I still got the issue !
>> There must be something else rotten in my maven config
>
>
> Can you explain us (on maven mailing list) your problem?
>
Well since I'm not subscribed to the maven list, I'll try to recap
exactly what I did :
- clean the maven local files ($HOME/.maven)
- download Maven RC2 Windows installer and install over Maven RC1
- start building J2
- got error message complaining that "java:jar-resources" was not an
available goal
- same with java:compile
- checked with maven -g and the java goal was not registered
- checked the maven plugin directory and the java plugin was there but
it was not
expanded inside .maven/plugins
I fixed the issue by using the java plugin of Maven RC1 within RC2
(they are listed with the
same version number but don't have the same size...)
--
Raphaël Luta - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Emmanuel Venisse <em...@venisse.net>.
>>> Thanks. I'll test it tomrrow. Do you also have the strange java goals
>>> issue with Maven RC2 ?
>>
>> Remove the plugins directory in ${user.home}/.maven
>>
>> Emmanuel
>>
>
> That's what I did with the clean install... I still got the issue !
> There must be something else rotten in my maven config
Can you explain us (on maven mailing list) your problem?
Emmanuel
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Raphaël Luta <ra...@apache.org>.
Le 30 mars 04, à 23:19, Emmanuel Venisse a écrit :
>
> ----- Original Message -----
> From: "Raphaël Luta" <ra...@luta.org>
> To: "Jetspeed Developers List" <je...@jakarta.apache.org>
> Sent: Tuesday, March 30, 2004 7:12 PM
> Subject: Re: [J2] Maven version required to build J2 ?
>
>
>> David Sean Taylor wrote:
>>>
>>> On Monday, March 29, 2004, at 12:13 AM, Raphaël Luta wrote:
>>>
>>>> I spent a very frustating week-end trying to build J2 and while
>>>> I finally managed to get there, I found several issues with Maven
>>>> along the way.
>>>>
>>>> First my dev setup is:
>>>> windows 2000 SP4
>>>> jsdk 1.4.2_03
>>>> tomcat 4.1.24
>>>>
>>>> I had maven 1.0-rc1 installed and kept getting errors in the torque
>>>> generation tasks about log4j not finding its appender definition.
>>>> So I decided to do a full reinstall of Maven using the latest rc2
>>>> binary.
>>>> Bad idea! The rc2 seems not to package a torque plugin anymore and
>>>> the goal jar:install fails because of some issues with the java
>>>> plugin (I've not bothered to look more in-depth into it...)
>>>>
>>>> So to get a clean build of J2 I had to do the following:
>>>> Use Maven rc2 with the torque plugin bundled with beta 10 and the
>>>> java plugin bundled with rc1 !
>>>>
>>>> My question is: am I the only one with this issue with the Maven
>>>> release candidates ?
>>>> If not, I think we should update the getting started document
>>>> to specify which version of Maven exactly works for building J2.
>>>>
>>> I added a dependency on the Torque plugin to the project.xml
>>> The plugin is now automatically downloaded if not in the local repo
>>> Serge and I tested with Maven RC1 and RC2
>>> It seems to work fine
>>>
>>
>> Thanks. I'll test it tomrrow. Do you also have the strange java goals
>> issue with Maven RC2 ?
>
> Remove the plugins directory in ${user.home}/.maven
>
> Emmanuel
>
That's what I did with the clean install... I still got the issue !
There must be something else rotten in my maven config
--
Raphaël Luta - raphael@apache.org
Apache Jetspeed - Enterprise Portal in Java
http://jakarta.apache.org/jetspeed/
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Tuesday, March 30, 2004, at 01:19 PM, Emmanuel Venisse wrote:
[snip]
>>
>> Thanks. I'll test it tomrrow. Do you also have the strange java goals
>> issue with Maven RC2 ?
>
Well I had to completely re-install Maven RC2 this morning
All part of the fun, seems like something was corrupted
but it seems to be working fine now
Just built the whole system and deployed without error
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Emmanuel Venisse <em...@venisse.net>.
----- Original Message -----
From: "Raphaël Luta" <ra...@luta.org>
To: "Jetspeed Developers List" <je...@jakarta.apache.org>
Sent: Tuesday, March 30, 2004 7:12 PM
Subject: Re: [J2] Maven version required to build J2 ?
> David Sean Taylor wrote:
> >
> > On Monday, March 29, 2004, at 12:13 AM, Raphaël Luta wrote:
> >
> >> I spent a very frustating week-end trying to build J2 and while
> >> I finally managed to get there, I found several issues with Maven
> >> along the way.
> >>
> >> First my dev setup is:
> >> windows 2000 SP4
> >> jsdk 1.4.2_03
> >> tomcat 4.1.24
> >>
> >> I had maven 1.0-rc1 installed and kept getting errors in the torque
> >> generation tasks about log4j not finding its appender definition.
> >> So I decided to do a full reinstall of Maven using the latest rc2
> >> binary.
> >> Bad idea! The rc2 seems not to package a torque plugin anymore and
> >> the goal jar:install fails because of some issues with the java
> >> plugin (I've not bothered to look more in-depth into it...)
> >>
> >> So to get a clean build of J2 I had to do the following:
> >> Use Maven rc2 with the torque plugin bundled with beta 10 and the
> >> java plugin bundled with rc1 !
> >>
> >> My question is: am I the only one with this issue with the Maven
> >> release candidates ?
> >> If not, I think we should update the getting started document
> >> to specify which version of Maven exactly works for building J2.
> >>
> > I added a dependency on the Torque plugin to the project.xml
> > The plugin is now automatically downloaded if not in the local repo
> > Serge and I tested with Maven RC1 and RC2
> > It seems to work fine
> >
>
> Thanks. I'll test it tomrrow. Do you also have the strange java goals
> issue with Maven RC2 ?
Remove the plugins directory in ${user.home}/.maven
Emmanuel
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by Raphaël Luta <ra...@luta.org>.
David Sean Taylor wrote:
>
> On Monday, March 29, 2004, at 12:13 AM, Raphaël Luta wrote:
>
>> I spent a very frustating week-end trying to build J2 and while
>> I finally managed to get there, I found several issues with Maven
>> along the way.
>>
>> First my dev setup is:
>> windows 2000 SP4
>> jsdk 1.4.2_03
>> tomcat 4.1.24
>>
>> I had maven 1.0-rc1 installed and kept getting errors in the torque
>> generation tasks about log4j not finding its appender definition.
>> So I decided to do a full reinstall of Maven using the latest rc2
>> binary.
>> Bad idea! The rc2 seems not to package a torque plugin anymore and
>> the goal jar:install fails because of some issues with the java
>> plugin (I've not bothered to look more in-depth into it...)
>>
>> So to get a clean build of J2 I had to do the following:
>> Use Maven rc2 with the torque plugin bundled with beta 10 and the
>> java plugin bundled with rc1 !
>>
>> My question is: am I the only one with this issue with the Maven
>> release candidates ?
>> If not, I think we should update the getting started document
>> to specify which version of Maven exactly works for building J2.
>>
> I added a dependency on the Torque plugin to the project.xml
> The plugin is now automatically downloaded if not in the local repo
> Serge and I tested with Maven RC1 and RC2
> It seems to work fine
>
Thanks. I'll test it tomrrow. Do you also have the strange java goals
issue with Maven RC2 ?
--
Raphaël Luta - raphael@luta.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Monday, March 29, 2004, at 12:13 AM, Raphaël Luta wrote:
> I spent a very frustating week-end trying to build J2 and while
> I finally managed to get there, I found several issues with Maven
> along the way.
>
> First my dev setup is:
> windows 2000 SP4
> jsdk 1.4.2_03
> tomcat 4.1.24
>
> I had maven 1.0-rc1 installed and kept getting errors in the torque
> generation tasks about log4j not finding its appender definition.
> So I decided to do a full reinstall of Maven using the latest rc2
> binary.
> Bad idea! The rc2 seems not to package a torque plugin anymore and
> the goal jar:install fails because of some issues with the java
> plugin (I've not bothered to look more in-depth into it...)
>
> So to get a clean build of J2 I had to do the following:
> Use Maven rc2 with the torque plugin bundled with beta 10 and the
> java plugin bundled with rc1 !
>
> My question is: am I the only one with this issue with the Maven
> release candidates ?
> If not, I think we should update the getting started document
> to specify which version of Maven exactly works for building J2.
>
I added a dependency on the Torque plugin to the project.xml
The plugin is now automatically downloaded if not in the local repo
Serge and I tested with Maven RC1 and RC2
It seems to work fine
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: [J2] Maven version required to build J2 ?
Posted by David Sean Taylor <da...@bluesunrise.com>.
On Monday, March 29, 2004, at 12:13 AM, Raphaël Luta wrote:
> I spent a very frustating week-end trying to build J2 and while
> I finally managed to get there, I found several issues with Maven
> along the way.
>
> First my dev setup is:
> windows 2000 SP4
> jsdk 1.4.2_03
> tomcat 4.1.24
>
> I had maven 1.0-rc1 installed and kept getting errors in the torque
> generation tasks about log4j not finding its appender definition.
> So I decided to do a full reinstall of Maven using the latest rc2
> binary.
> Bad idea! The rc2 seems not to package a torque plugin anymore and
> the goal jar:install fails because of some issues with the java
> plugin (I've not bothered to look more in-depth into it...)
>
> So to get a clean build of J2 I had to do the following:
> Use Maven rc2 with the torque plugin bundled with beta 10 and the
> java plugin bundled with rc1 !
>
> My question is: am I the only one with this issue with the Maven
> release candidates ?
Nope we all were surprised to find that torque is no longer packaged.
I think we can add a dependency in the project.xml to automatically
bring it in
> If not, I think we should update the getting started document
> to specify which version of Maven exactly works for building J2.
>
> I must also say that I'm quite uncomfortable with this Maven dependency
> as it seems to me that it's pretty much like the Turbine of old: a
> moving target you can't really depend upon and it's so damn SLOW !
>
> Anyway, just my 2 cents.
>
Maven takes some to get used to. I cursed and bitched when first using
it too
Regarding speed, you can run Maven as
maven -o
for offline, it will run faster since it doesn't check for snapshots
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org