Re: how do I do this tricky string manipulation with jelly/maven?

2003-10-09 Thread John Farrell
On Thu, 9 Oct 2003 11:01 pm, Sri Sankaran wrote: > To test it I added an in the loop and changed the search for "mp-" > to ".maven". Finally, you probably want to use the > replaceAll(regex,String) method. The replace method takes only character > arguments and you are trying to replace entire s

how do I do this tricky string manipulation with jelly/maven?

2003-10-08 Thread John Farrell
It seems to me that Jelly script doesn't support multiple parameters in brackets in Java script fragments. The code below puts NumberFormatExceptions in maven.log. What I need to do is (a) find another way which involves only single parameter methods, or (b) get Jelly to play the game a bit more

Re: how do I see my Java exceptions? -e and -X don't help

2003-09-23 Thread John Farrell
On Wed, 24 Sep 2003 11:45 am, Brett Porter wrote: > Doco for which is hidden well in the "project reports" section of the > navigation :) > > http://maven.apache.org/tags.html#maven:makeRelativePath Thanks Brett. Silly naive me thought it would be under Reference. John --

Re: how do I see my Java exceptions? -e and -X don't help

2003-09-23 Thread John Farrell
On Wed, 24 Sep 2003 11:35 am, [EMAIL PROTECTED] wrote: > Why not just use the maven makeRelativePath tag? Hmm, firstly because I didn't know it existed, secondly because I am actually trying to do something more complicated, and thirdly because I really want to grok how this Jelly coding works.

Re: how do I see my Java exceptions? -e and -X don't help

2003-09-23 Thread John Farrell
On Wed, 24 Sep 2003 11:30 am, Nathan Coast wrote: > try having a look in the maven.log in your project root. > > My understanding is that there's some sort of error occurring in > > the execution of the Java in the Jelly, but I can't guess what, and -e > > and -X don't tell me anything useful. Is

how do I see my Java exceptions? -e and -X don't help

2003-09-23 Thread John Farrell
I am writing Jelly code like this: File is ${file} Relative is ${relative} Now when I add the "+1" in, relative is "", but withou

Re: pom.id has a : in it?

2003-08-26 Thread John Farrell
On Tue, 19 Aug 2003 01:53 pm, Jason van Zyl wrote: > On Mon, 2003-08-18 at 21:31, John Farrell wrote: > > I definitely expected pom.id to give me just "mp-util", instead of > > "mp-util:mp-util". Why are my expectations wrong? > The id has been something tha

pom.id has a : in it?

2003-08-18 Thread John Farrell
If I write this in my maven.xml: ] ${pom.id} I get: ]$ maven blah ]blah: ][echo] mp-util:mp-util My project.xml has this in it: ] ] mp-util I definitely expected pom.id to give me just "mp-util", instead of "mp-util:mp-util". Why are my expectations wrong? I can fix it: ] ] ]

java.lang.LinkageError: loader constraints violated when linking

2003-08-14 Thread John Farrell
I've got an exception coming out in my test:test target which I just can't figure out. It's a LinkageError loading org.w3c.dom.Document. My understanding of this error is that the classloader needs to load the same class from two different jars, but I can't figure out which jars. The obvious su

Re: J2EE project : EAR/WAR/JAR - web site generation

2003-08-14 Thread John Farrell
On Fri, 8 Aug 2003 10:51 am, [EMAIL PROTECTED] wrote: > John, > > which project lists dependencies on j2ee? > > I couldn't find any in Maven or Jelly's CVS tree. It's not j2ee. Jelly's demo:swing depends on jdbc, jms and xsdlib. The JDBC jar is just not on ibiblio. Yet the tutorial says "just do

Re: J2EE project : EAR/WAR/JAR - web site generation

2003-08-14 Thread John Farrell
On Fri, 8 Aug 2003 09:34 am, [EMAIL PROTECTED] wrote: > We're not allowed to redistribute the j2ee jar. > [EMAIL PROTECTED] wrote on 08/08/2003 05:59:27 AM: > > Is anyone else having a problem retrieving j2ee-1.3.jar ? I believe I am having this problem with jelly as well. What I don't understand

Re: java.lang.LinkageError: loader constraints violated when link ing

2003-08-14 Thread John Farrell
On Thu, 14 Aug 2003 10:23 am, Brett Porter wrote: > Have you tried setting maven.junit.fork=true? I have now, and it works a beauty. Thanks Brett. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: build failed in jxr, what do I do?

2003-08-11 Thread John Farrell
On Wed, 6 Aug 2003 04:38 pm, [EMAIL PROTECTED] wrote: > Run 'maven -e clean site:generate' and post the stacktrace. Thanks Dion. I found -X straight after I posted, so I did that and raised MAVEN-657 on the Jira. But here is the quick stack. John BUILD FAILED java.lang.reflect.InvocationTargetE

what does vdoclet do and can I get rid of it?

2003-08-09 Thread John Farrell
I am receiving the error below when trying to do a site:generate on a particular troublesome set of packages of mine. In particular, I depend on a jar which adds a class to java.text. I handle this a run-time by adding the jar to the bootclasspath. However my guess is that vdoclet is trying to l

cross referencer gets NumberFormatException

2003-08-09 Thread John Farrell
On one of my Maven projects, there is a NumberFormatException during the cross reference goal. The stack trace starts like this: 2003-08-05 12:04:21,135 WARN org.apache.commons.jelly.expression.jexl.JexlExpression - Caught exception evaluating: [EMAIL PROTECTED] Reason: java.lang.NumberFormat

build failed in jxr, what do I do?

2003-08-08 Thread John Farrell
I received this message while doing 'maven clean site:generate site:fsdeploy'with beta 10. BUILD FAILED File.. file:/home/john/.maven/plugins/maven-jxr-plugin-1.2-SNAPSHOT/ Element... jxr:jxr Line.. 90 Column 31 java.lang.reflect.InvocationTargetException Total time: 1 minutes 31 seco

Maven and missing jelly jars

2003-08-08 Thread John Farrell
On Fri, 8 Aug 2003 12:30 pm, [EMAIL PROTECTED] wrote: > Yep, that'd be nice, but maven can't know where all possible jar files are > stored. The only place it can look is on the remote repo. It does say > where its trying to download it from, and the only place to stick it is > the local repo. Mav

Re: J2EE project : EAR/WAR/JAR - web site generation

2003-08-08 Thread John Farrell
ng, it's got to work for dumb people. Dumb people can probably follow instructions on how to get something, but guessing what jar is meant and figuring out where to get it from is just an unfair ask. (footnote): While writing this mail, I received other mail telling me that when they wrote the

Re: how do I get resources in my jar file?

2003-08-07 Thread John Farrell
On Tue, 5 Aug 2003 04:54 pm, Andy Jefferson wrote: > On Tuesday 05 Aug 2003 07:48, John Farrell wrote: > > I am running maven beta 10, and cannot get resources copied into my jar > > file. I have made extensive investigations. In the POM, I have this: > > > > >

Re: cross referencer gets NumberFormatException

2003-08-05 Thread John Farrell
On Tue, 5 Aug 2003 02:28 pm, dion gillard wrote: > Are you 100% sure it's the xref that's doing this? No, I have been trying to figure out why I thought that. I now think I have xref turned off, and it is still happening. I can't figure out what's causing it now. John -

how do I get resources in my jar file?

2003-08-05 Thread John Farrell
I am running maven beta 10, and cannot get resources copied into my jar file. I have made extensive investigations. In the POM, I have this: ${basedir}/src/res *.properties I found this goal which seems to copy resources as I need: