You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by eastwoj <je...@fastmail.fm> on 2006/03/24 05:27:09 UTC

maven codeczar plugin

Two problems ..

1) Running the maven tomcat:deploy goal, plugin.jelly file for
maven-tomcat-plugin 1.2.1 does not seem to be recognizing that i've set
maven.tomcat.deploy.mode=development. I can echo the correct value to the
console, but the "if test" ( <j:if test="${maven.tomcat.deploy.mode ==
'development'}">) still fails. 

2) if i force it to pass by setting it to <j:if test="${true}">,(
temporarily ignoring problem #1 ),  i get a BUILD FAILED error,
org/apache/tools/ant/taskdefs/Redirector

where do i get this missing library? 

anyone have any ideas on either problem ? I'm using maven 1.0.1 and Tomcat
5.5.15 on winxp
--
View this message in context: http://www.nabble.com/maven-codeczar-plugin-t1334578.html#a3565589
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven codeczar plugin

Posted by Arnaud HERITIER <ah...@gmail.com>.
For the problem #1 it was certainly a bug in Jelly.
I remember that we had some problems with properties with dots in their
names.

Arnaud

On 3/25/06, eastwoj <je...@fastmail.fm> wrote:
>
>
> upgrading to maven 1.1-beta-2 fixed both of my problems. The reason the
> second problem i mentioned was fixed ( the missing class ) was that the
> older version of maven ( 1.0.1 ) i was using ant 1.5.3. The codeczar
> plugin
> depends on ant 1.6.5 or greater.
>
> I have no idea why problem #1 ( the one you discussed )was fixed by the
> upgrade. Seems like it should have worked with either version ..
> --
> View this message in context:
> http://www.nabble.com/maven-codeczar-plugin-t1334578.html#a3580968
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: maven codeczar plugin

Posted by eastwoj <je...@fastmail.fm>.
upgrading to maven 1.1-beta-2 fixed both of my problems. The reason the
second problem i mentioned was fixed ( the missing class ) was that the
older version of maven ( 1.0.1 ) i was using ant 1.5.3. The codeczar plugin
depends on ant 1.6.5 or greater. 

I have no idea why problem #1 ( the one you discussed )was fixed by the
upgrade. Seems like it should have worked with either version .. 
--
View this message in context: http://www.nabble.com/maven-codeczar-plugin-t1334578.html#a3580968
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven codeczar plugin

Posted by René Clerc <re...@clerc.nl>.
Now the patches are attached, my apologies..

Ren�


* Ren� Clerc <re...@clerc.nl> [24-03-2006 09:37]:

> Hi,
> 
> * eastwoj <je...@fastmail.fm> [24-03-2006 05:36]:
> 
> > 1) Running the maven tomcat:deploy goal, plugin.jelly file for
> > maven-tomcat-plugin 1.2.1 does not seem to be recognizing that i've set
> > maven.tomcat.deploy.mode=development. I can echo the correct value to the
> > console, but the "if test" ( <j:if test="${maven.tomcat.deploy.mode ==
> > 'development'}">) still fails. 
> 
> I have encountered this problem too, and solved it.  The tests seem to
> fail because the way in which the variables are read is not correct.
> 
> Attached patch fixes this problem, at least for the tomcat:deploy and
> tomcat:undeploy goals.
> 
> > 2) if i force it to pass by setting it to <j:if test="${true}">,(
> > temporarily ignoring problem #1 ),  i get a BUILD FAILED error,
> > org/apache/tools/ant/taskdefs/Redirector
> 
> Out-of-the-box, the plugin depends on tomcat 5.5.12.  I have changed
> the dependencies of the plugin to depend on 5.5.15 (which you use
> too), and found that I needed to add a dependency on ant.  See
> attached patch.
> 
> How to apply:
> 
> unjar the plugin
> apply the patch(es)
> rejar the plugin
> 
> You might want to use a slightly different version number, to
> distinguish your modified version from the standard 1.2.1 version.
> 
> If convenient, I can supply a modified jar file, but I'm not going to
> post this to the list.
> 
> Oh, by the way, I have e-mailed codeczar support about this problem,
> but to no avail..  Now cc-ing the developer.
> 
> Hope this helps,
> 
> -- 
> Ren� Clerc                      - (rene@clerc.nl) - PGP: 0x9ACE0AC7
> 
> 42. When I capture the hero, I will make sure I also get his dog,
>     monkey, ferret, or whatever sickeningly cute little animal capable
>     of untying ropes and filching keys happens to follow him around.
> 
> -"Peter Anspach's list of things to do as an Evil Overlord"
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org

-- 
Ren� Clerc                      - (rene@clerc.nl) - PGP: 0x9ACE0AC7

153. My Legions of Terror will be an equal-opportunity employer.
     Conversely, when it is prophesied that no man can defeat me, I will
     keep in mind the increasing number of non-traditional gender roles.

-"Peter Anspach's list of things to do as an Evil Overlord"

Re: maven codeczar plugin

Posted by René Clerc <re...@clerc.nl>.
Hi,

* eastwoj <je...@fastmail.fm> [24-03-2006 05:36]:

> 1) Running the maven tomcat:deploy goal, plugin.jelly file for
> maven-tomcat-plugin 1.2.1 does not seem to be recognizing that i've set
> maven.tomcat.deploy.mode=development. I can echo the correct value to the
> console, but the "if test" ( <j:if test="${maven.tomcat.deploy.mode ==
> 'development'}">) still fails. 

I have encountered this problem too, and solved it.  The tests seem to
fail because the way in which the variables are read is not correct.

Attached patch fixes this problem, at least for the tomcat:deploy and
tomcat:undeploy goals.

> 2) if i force it to pass by setting it to <j:if test="${true}">,(
> temporarily ignoring problem #1 ),  i get a BUILD FAILED error,
> org/apache/tools/ant/taskdefs/Redirector

Out-of-the-box, the plugin depends on tomcat 5.5.12.  I have changed
the dependencies of the plugin to depend on 5.5.15 (which you use
too), and found that I needed to add a dependency on ant.  See
attached patch.

How to apply:

unjar the plugin
apply the patch(es)
rejar the plugin

You might want to use a slightly different version number, to
distinguish your modified version from the standard 1.2.1 version.

If convenient, I can supply a modified jar file, but I'm not going to
post this to the list.

Oh, by the way, I have e-mailed codeczar support about this problem,
but to no avail..  Now cc-ing the developer.

Hope this helps,

-- 
René Clerc                      - (rene@clerc.nl) - PGP: 0x9ACE0AC7

42. When I capture the hero, I will make sure I also get his dog,
    monkey, ferret, or whatever sickeningly cute little animal capable
    of untying ropes and filching keys happens to follow him around.

-"Peter Anspach's list of things to do as an Evil Overlord"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org