RE: JUnit taskdef

2003-09-22 Thread GONNOT boris
Please, can you tell me what version of maven are you using ?


-Message d'origine-
De : Nathan Coast [mailto:[EMAIL PROTECTED]
Envoyé : mardi 23 septembre 2003 08:44
À : Maven Users List
Objet : Re: JUnit taskdef



> 
> Your junit jar is not on the "root" class loader. You need to set this in > your 
> dependency/property element.

YAY!  yep that works,  cheers Dion.

after all that, all I needed was a single dependency (presumably because the ant deps 
are always available)

 
   junit
   junit
   3.8.1

 root
   
 

and no classpath in the junit taskdef

   







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ce message est protege par les regles relatives au secret des correspondances ; il 
peut en outre contenir des informations a caractere confidentiel ou protegees par 
differentes regles et notamment le secret des affaires ; il est etabli a destination 
exclusive de son destinataire. Toute divulgation, utilisation, diffusion ou 
reproduction (totale ou partielle) de ce message, ou des informations qu'il contient, 
doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut etre 
assuree. Les AGF declinent toute responsabilite au titre de ce message s'il a ete 
modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et 
d'avertir l'expediteur de l'erreur de distribution et de la destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore it may 
contain privileged or confidential information that is protected by law, notably by 
the secrecy of business relations rule ; it is intended solely for the attention of   
the addressee . Any disclosure, use, dissemination or reproduction (either whole or  
partial) of this message or the information contained herein is strictly prohibited 
without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can not be 
assured.  AGF declines any  responsibility for  this message in the event of  
alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  notify the 
sender of the wrong delivery and the mail deletion. 
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit taskdef

2003-09-22 Thread Nathan Coast

Your junit jar is not on the "root" class loader. You need to set this in 
your dependency/property element.
YAY!  yep that works,  cheers Dion.

after all that, all I needed was a single dependency (presumably because the ant deps are always available)


  junit
  junit
  3.8.1
   
root
  

and no classpath in the junit taskdef

  






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JUnit taskdef

2003-09-22 Thread GONNOT boris

I had the same kind of  problem with the optional 
ftp task (NoClassDefFoundError). After some investigations, 
we found that the "ant-optionnal.jar" was loaded with the 
"root" class loader whereas the external class 
"junit/framework/TestListener" (for you) is loaded with 
the "root.maven" class loader.

In the maven document, it is said we just had to add a 
classloader property to solve the problem. Like this 


junit
3.8

root



But for us (beta 9), it seems that this property is only 
used for plugin (so we built a little plugin).

Hope it helps.

Boris 

-Message d'origine-
De : Nathan Coast [mailto:[EMAIL PROTECTED]
Envoyé : mardi 23 septembre 2003 06:12
À : Maven Users List
Objet : Re: JUnit taskdef


D:\dev\op\op\logistics>maven junitejb:test -X
  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\oputil\jars\oputil-1.0.jar;D:\java\apache\maven-cvsbuild\repository\weblogic\jars\weblogic-8.1.jar;D:\java\apache\maven-cvsbuild\repository\junit\jars\junit-3.8.1.jar;D:\java\apache\maven-cvsbuild\repository\junitejb\jars\junitejb-1.0.jar
 [available] [VERBOSE] Found: src\java
 [available] [VERBOSE] Found: src\junitejb\java
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\maven\jars\maven-1.0-beta-10.jar;D:\java\apache\maven-cvsbuild\repository\commons-io\jars\commons-io-20030203.000550.jar;D:\java\apache\maven-cvsbuild\repository\commons-net\jars\commons-net-1.0.0.jar;D:\java\apache\maven-cvsbuild\repository\commons-httpclient\jars\commons-httpclient-2.0-beta1.jar;D:\java\apache\maven-cvsbuild\repository\commons-lang\jars\commons-lang-1.0.1.jar;D:\java\apache\maven-cvsbuild\repository\jsch\jars\jsch-0.1.5.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-velocity-20030303.205659.jar;D:\java\apache\maven-cvsbuild\repository\velocity\jars\velocity-1.4-dev.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\dom4j\jars\dom4j-1.4.jar;D:\java\apache\maven-cvsbuild\repository\xml-apis\jars\xml-apis-1.0.b2.jar;D:\java\apache\maven-cvsbuild\repository\maven\jars\maven.jar;D:\java\apache\maven-cvsbuild\repository\isorelax\jars\isorelax-20030108.jar;D:\java\apache\maven-cvsbuild\repository\xercesjarv\jars\xercesjarv-20020712-DG.jar;D:\java\apache\maven-cvsbuild\repository\xerces\jars\xerces-2.4.0.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\ant\jars\ant-1.5.3-1.jar;D:\java\apache\maven-cvsbuild\repository\dom4j\jars\dom4j-1.4.jar;D:\java\apache\maven-cvsbuild\repository\commons-grant\jars\commons-grant-1.0-beta-4.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-jsl-20030211.143151.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-log-20030211.142821.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-velocity-20030303.205659.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-xml-20030211.142705.jar;D:\java\apache\maven-cvsbuild\repository\commons-logging\jars\commons-logging-1.0.3.jar;D:\java\apache\maven-cvsbuild\repository\maven\jars\maven-1.0-beta-10.jar;D:\java\apache\maven-cvsbuild\repository\velocity\jars\velocity-1.4-dev.jar;D:\java\apache\mave
n-cvsbuild\repository\velocity-dvsl\jars\velocity-dvsl-0.45.jar;D:\java\apache\maven-cvsbuild\repository\xml-apis\jars\xml-apis-1.0.b2.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\weblogic\jars\weblogic-8.1.jar;D:\java\apache\maven-cvsbuild\repository\junit\jars\junit-3.8.1.jar;D:\java\apache\maven-cvsbuild\repository\ant\jars\ant-optional-1.5.3-1.jar;D:\java\apache\maven-cvsbuild\repository\ant

RE: maven memory increase...

2003-09-22 Thread Christian Goos
I don't know if your last message means that the problem is solved now.
In this case just as an info. 
I had the same error messages last week and it was also because I didn't use
the memory parameters correctly.
So in case you get an error message "Incompatible initial and maximum heap
sizes specified" you have to check that the maximum memory size is higher
than the initial size.

As far as I know the Xmx parameter from MAVEN_OPTS is passed to the
javadoc-call by default so increasing the value in Maven_OPTS should solve
memory
issues with the javadoc plugin

Christian
-Original Message-
From: Ciramella, EJ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 18, 2003 7:21 PM
To: 'Maven Users List'
Subject: RE: maven memory increase...

As per my last email, the -X value should have been -Xmx no -Xms

-Original Message-
From: Luke Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 18, 2003 12:46 PM
To: Maven Users List
Subject: Re: maven memory increase...


Ciramella, EJ wrote:

> Ok after toying around with these options, now I get the following error:
> 
> Error occurred during initialization of VM
> Incompatible initial and maximum heap sizes specified
> 
> I've reset things to default where I could, but I'm still not getting
> anywhere.  
> 
> Any suggestions?
> 

How about some detailed information on what you're actually doing and 
what the results are? If you say you've "toyed around with these 
options" then we're all going to be guessing pretty much. It's a pretty 
straightforward JDK issue of setting the parameters correctly but it's 
up to you to say what platform you're running on and what values you 
have for the heap sizes.

Why don't you add a line to the script just before java is called and 
echo the value of MAVEN_OPTS?

Luke.

-- 
  Luke Taylor.  Monkey Machine Ltd.
  PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit taskdef

2003-09-22 Thread dion
Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 02:12:13 PM:

[snip]
>at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>... 15 more
> Caused by: java.lang.NoClassDefFoundError: junit/framework/TestListener
>at java.lang.Class.getDeclaredConstructors0(Native Method)
>at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
>at java.lang.Class.getDeclaredConstructors(Class.java:1152)
>at org.apache.tools.ant.AntClassLoader.
> initializeClass(AntClassLoader.java:484)
>at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:231)
>... 19 more

Your junit jar is not on the "root" class loader. You need to set this in 
your dependency/property element.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: test errors

2003-09-22 Thread Nathan Coast
ah, ahem, yes, err

that'll be where the errors go :)

free beer next time you're in Hong Kong.

[EMAIL PROTECTED] wrote:

What's in the test report file?

Are you using maven.junit.usefile ??

Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 12:55:15 PM:


Hi,

I'm getting this message when I attempt to execute some tests.  How can 
I find out what the error is?  I've tried -X but no extra info.  Are 
there some jvm args I need to pass to junit?

test:test:
[junit] dir attribute ignored if running in the same VM
[junit] Running 
java.com.oneport.bom.logistics.equipment.EquipmentTest

[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] [ERROR] TEST 
java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED

When I check the maven.log I see this stack.  could this have something 
to do with it?  No idea what this stack is about, any ideas?

cheers
Nathan
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
D:\dev\op\op\logistics>maven junitejb:test -X
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\oputil\jars\oputil-1.0.jar;D:\java\apache\maven-cvsbuild\repository\weblogic\jars\weblogic-8.1.jar;D:\java\apache\maven-cvsbuild\repository\junit\jars\junit-3.8.1.jar;D:\java\apache\maven-cvsbuild\repository\junitejb\jars\junitejb-1.0.jar
[available] [VERBOSE] Found: src\java
[available] [VERBOSE] Found: src\junitejb\java
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\maven\jars\maven-1.0-beta-10.jar;D:\java\apache\maven-cvsbuild\repository\commons-io\jars\commons-io-20030203.000550.jar;D:\java\apache\maven-cvsbuild\repository\commons-net\jars\commons-net-1.0.0.jar;D:\java\apache\maven-cvsbuild\repository\commons-httpclient\jars\commons-httpclient-2.0-beta1.jar;D:\java\apache\maven-cvsbuild\repository\commons-lang\jars\commons-lang-1.0.1.jar;D:\java\apache\maven-cvsbuild\repository\jsch\jars\jsch-0.1.5.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-velocity-20030303.205659.jar;D:\java\apache\maven-cvsbuild\repository\velocity\jars\velocity-1.4-dev.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\dom4j\jars\dom4j-1.4.jar;D:\java\apache\maven-cvsbuild\repository\xml-apis\jars\xml-apis-1.0.b2.jar;D:\java\apache\maven-cvsbuild\repository\maven\jars\maven.jar;D:\java\apache\maven-cvsbuild\repository\isorelax\jars\isorelax-20030108.jar;D:\java\apache\maven-cvsbuild\repository\xercesjarv\jars\xercesjarv-20020712-DG.jar;D:\java\apache\maven-cvsbuild\repository\xerces\jars\xerces-2.4.0.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\ant\jars\ant-1.5.3-1.jar;D:\java\apache\maven-cvsbuild\repository\dom4j\jars\dom4j-1.4.jar;D:\java\apache\maven-cvsbuild\repository\commons-grant\jars\commons-grant-1.0-beta-4.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-20030902.160215.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-jsl-20030211.143151.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-log-20030211.142821.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-velocity-20030303.205659.jar;D:\java\apache\maven-cvsbuild\repository\commons-jelly\jars\commons-jelly-tags-xml-20030211.142705.jar;D:\java\apache\maven-cvsbuild\repository\commons-logging\jars\commons-logging-1.0.3.jar;D:\java\apache\maven-cvsbuild\repository\maven\jars\maven-1.0-beta-10.jar;D:\java\apache\maven-cvsbuild\repository\velocity\jars\velocity-1.4-dev.jar;D:\java\apache\mave
n-cvsbuild\repository\velocity-dvsl\jars\velocity-dvsl-0.45.jar;D:\java\apache\maven-cvsbuild\repository\xml-apis\jars\xml-apis-1.0.b2.jar
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
[DEBUG] Adding reference: maven.dependency.classpath -> 
D:\java\apache\maven-cvsbuild\repository\weblogic\jars\weblogic-8.1.jar;D:\java\apache\maven-cvsbuild\repository\junit\jars\junit-3.8.1.jar;D:\java\apache\maven-cvsbuild\repository\ant\jars\ant-optional-1.5.3-1.jar;D:\java\apache\maven-cvsbuild\repository\ant\jars\ant-1.5.3-1.jar
[available] [VERBOSE] Unable to find src\java to set property sourcesPresent
[available] [VERBOSE] Unable to find src\test to set property unitTestSourcesPresent
[DEBUG] Adding reference: maven-classpath ->
[DEBUG] Adding reference: maven.compile.src.set ->
[DEBUG] Adding reference: maven.test.compile.src.set ->
junitejb:test:
[echo] ant classpath D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-optional-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\junit\jars\junit-3.8.1.jar
[taskdef] [DEBUG] Class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask loaded from parent loader

BUILD FAILED
File.. file:/D:/java/apache/maven-cvsb

Re: JUnit taskdef

2003-09-22 Thread dion
What are the classloading bits of maven -X ?

Worst comes to worst, give us a test plugin we can use to help test it.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 01:04:34 PM:

> thanks Dion, getting closer but still no cigar
> 
> dependencies
> 
>  
> weblogic
> weblogic
>8.1
>  
>  
>junit
>junit
>3.8.1
>  
>  
> ant
> ant-optional
> 1.5.3-1
>  
>  
> ant
> ant
> 1.5.3-1
>  
> 
> 
> 
> this is the jelly script
> 
> value="${plugin.getDependencyPath('ant:ant-optional')};${plugin.
> 
getDependencyPath('ant:ant')};${plugin.getDependencyPath('junit:junit')}"/>
>
>  name="junit"
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
>  classpath="${junit.cp}"/>
> 
> the output is:
> **
> 
> junitejb:test:
>  [echo] ant classpath 
> D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-optional-1.5.
> 3-1.jar;D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-1.5.
> 
3-1.jar;D:\java\apache\maven-cvsbuild/repository\junit\jars\junit-3.8.1.jar
> 
> BUILD FAILED
> File.. 
> file:/D:/java/apache/maven-cvsbuild/plugins/maven-junitejb-plugin-1.0/
> Element... taskdef
> Line.. 238
> Column 34
> taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
> cannot be found
> ***
> 
> I've checked the paths and they all seem correct,
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> > Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 10:47:49 AM:
> > 
> > 
> >> > Show us your POM.
> >>
> > 
> > [snip]
> > 
> >>   
> >>
> >> 
> >>   weblogic
> >>   8.1
> >> 
> >> 
> >>   junit
> >>   3.8.1
> >> 
> >> 
> >>ant
> >>ant-optional
> >>1.5.3-1
> >> 
> >>
> >>   
> >>
> > [snip]
> > 
> >>**
> >>from plugin.jelly
> >>
> >>   
> >>
> >>   
> > 
> >>>> name="junit" 
> >>classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
> >> classpath="${plugin.getDependencyPath('ant')}"/>
> > 
> > 
> > Aren't you going to need ant, ant-optional and junit on this 
classpath?
> > 
> > plugin.getDependencyPath('ant') doesn't refer to any of your 
dependencies.
> > 
> > Try:
> > 
> > plugin.getDependencyPath('ant:ant-optional') for the optional jar.
> > 
> > 
> >>the echo gives "" as the value for the dependency path.  Interestingly 

> >>enough, when I hard code the path to the junit-optional jar, I get the 

> >>same error taskdef class org.apache...JUnitTask cannot be found
> > 
> > 
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:  http://blogs.codehaus.org/people/dion/
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: test errors

2003-09-22 Thread dion
What's in the test report file?

Are you using maven.junit.usefile ??

Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 12:55:15 PM:

> Hi,
> 
> I'm getting this message when I attempt to execute some tests.  How can 
> I find out what the error is?  I've tried -X but no extra info.  Are 
> there some jvm args I need to pass to junit?
> 
> test:test:
>  [junit] dir attribute ignored if running in the same VM
>  [junit] Running 
java.com.oneport.bom.logistics.equipment.EquipmentTest
>  [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>  [junit] [ERROR] TEST 
> java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED
> 
> When I check the maven.log I see this stack.  could this have something 
> to do with it?  No idea what this stack is about, any ideas?
> 
> cheers
> Nathan
> 
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



war:init compiles twice...

2003-09-22 Thread matt
Before I raise a bug report, has anyone else had problems with the war 
goal, or am I doing something wrong?  It seems to me that when war:init 
calls attainGoal for java:compile, followed by test:test, the source 
gets compiled twice (as test:test has java:compile as a prereq).

Is there any way to say "please run this goal, but only if it's not 
already been run in this session"?

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: test errors

2003-09-22 Thread Nathan Coast
just noticed the 'java.' before the classname. could be the problem, 
I'll see where that's coming from

Nathan Coast wrote:

Hi,

I'm getting this message when I attempt to execute some tests.  How can 
I find out what the error is?  I've tried -X but no extra info.  Are 
there some jvm args I need to pass to junit?

test:test:
[junit] dir attribute ignored if running in the same VM
[junit] Running java.com.oneport.bom.logistics.equipment.EquipmentTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] [ERROR] TEST 
java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED

When I check the maven.log I see this stack.  could this have something 
to do with it?  No idea what this stack is about, any ideas?

cheers
Nathan
2003-09-23 10:46:56,327 WARN 
org.apache.commons.jelly.expression.jexl.JexlExpression - Caught 
exception evaluating: [EMAIL PROTECTED] 
Reason: java.lang.NumberFormatException: For input string: "excludes"
java.lang.NumberFormatException: For input string: "excludes"
at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 

at java.lang.Integer.parseInt(Integer.java:426)
at java.lang.Integer.valueOf(Integer.java:532)
at 
org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
at 
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177) 

at 
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104) 

at 
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
at 
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
at 
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
at 
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115) 

at 
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168) 

at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106) 

at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:146) 

at 
org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:127)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:271)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:267)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:113)
at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:140)
at 
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:757)
at 
org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.java:631) 

at 
org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java:606) 

at 
org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:706)
at 
org.apache.maven.plugin.PluginManager.loadPlugins(PluginManager.java:789)
at 
org.apache.maven.plugin.PluginManager.prepForCallbacks(PluginManager.java:574) 

at 
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:545)
at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:435)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
at org.apache.maven.cli.App.doMain(App.java:543)
at org.apache.maven.cli.App.main(App.java:1109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
thanks Dion, getting closer but still no cigar

dependencies


   weblogic
   weblogic
  8.1


  junit
  junit
  3.8.1


   ant
   ant-optional
   1.5.3-1


   ant
   ant
   1.5.3-1



this is the jelly script

  
  
  
name="junit"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="${junit.cp}"/>

the output is:
**
junitejb:test:
[echo] ant classpath 
D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-optional-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\ant\jars\ant-1.5.3-1.jar;D:\java\apache\maven-cvsbuild/repository\junit\jars\junit-3.8.1.jar

BUILD FAILED
File.. 
file:/D:/java/apache/maven-cvsbuild/plugins/maven-junitejb-plugin-1.0/
Element... taskdef
Line.. 238
Column 34
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
cannot be found
***

I've checked the paths and they all seem correct,

[EMAIL PROTECTED] wrote:

Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 10:47:49 AM:


> Show us your POM.

[snip]

  


  weblogic
  8.1


  junit
  3.8.1


   ant
   ant-optional
   1.5.3-1

  

[snip]

**
from plugin.jelly
  

  

  
name="junit" 
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="${plugin.getDependencyPath('ant')}"/>


Aren't you going to need ant, ant-optional and junit on this classpath?

plugin.getDependencyPath('ant') doesn't refer to any of your dependencies.

Try:

plugin.getDependencyPath('ant:ant-optional') for the optional jar.


the echo gives "" as the value for the dependency path.  Interestingly 
enough, when I hard code the path to the junit-optional jar, I get the 
same error taskdef class org.apache...JUnitTask cannot be found


--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


test errors

2003-09-22 Thread Nathan Coast
Hi,

I'm getting this message when I attempt to execute some tests.  How can 
I find out what the error is?  I've tried -X but no extra info.  Are 
there some jvm args I need to pass to junit?

test:test:
[junit] dir attribute ignored if running in the same VM
[junit] Running java.com.oneport.bom.logistics.equipment.EquipmentTest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] [ERROR] TEST 
java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED

When I check the maven.log I see this stack.  could this have something 
to do with it?  No idea what this stack is about, any ideas?

cheers
Nathan
2003-09-23 10:46:56,327 WARN 
org.apache.commons.jelly.expression.jexl.JexlExpression - Caught 
exception evaluating: [EMAIL PROTECTED] 
Reason: java.lang.NumberFormatException: For input string: "excludes"
java.lang.NumberFormatException: For input string: "excludes"
	at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:426)
	at java.lang.Integer.valueOf(Integer.java:532)
	at org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
	at 
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177)
	at 
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104)
	at 
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
	at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
	at 
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115)
	at 
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168)
	at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106)
	at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:146)
	at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:127)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:271)
	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:267)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:113)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:140)
	at org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:757)
	at 
org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.java:631)
	at 
org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java:606)
	at org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:706)
	at 
org.apache.maven.plugin.PluginManager.loadPlugins(PluginManager.java:789)
	at 
org.apache.maven.plugin.PluginManager.prepForCallbacks(PluginManager.java:574)
	at 
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:545)
	at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:435)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
	at org.apache.maven.cli.App.doMain(App.java:543)
	at org.apache.maven.cli.App.main(App.java:1109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.werken.forehead.Forehead.run(Forehead.java:543)
	at com.werken.forehead.Forehead.main(Forehead.java:573)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread dion
Nathan Coast <[EMAIL PROTECTED]> wrote on 23/09/2003 10:47:49 AM:

>  > Show us your POM.
> 
[snip]
>
> 
>  
>weblogic
>8.1
>  
>  
>junit
>3.8.1
>  
>  
> ant
> ant-optional
> 1.5.3-1
>  
> 
>
> 
[snip]
> **
> from plugin.jelly
> 
>
> 
>
> 
>  name="junit" 
> classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
>  classpath="${plugin.getDependencyPath('ant')}"/>

Aren't you going to need ant, ant-optional and junit on this classpath?

plugin.getDependencyPath('ant') doesn't refer to any of your dependencies.

Try:

plugin.getDependencyPath('ant:ant-optional') for the optional jar.

> the echo gives "" as the value for the dependency path.  Interestingly 
> enough, when I hard code the path to the junit-optional jar, I get the 
> same error taskdef class org.apache...JUnitTask cannot be found

--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
Show us your POM.


  3
  maven-junitejb-plugin
  maven-junitejb-plugin
  1.0
  
  OnePort
  
  2001
  org.apache.maven
  

  Java Project Management Tools

  

  http://maven.apache.org/
  
http://nagoya.apache.org/scarab/servlet/scarab/
  
  jakarta.apache.org
  
/www/maven.apache.org/
  
  
/www/jakarta.apache.org/builds/jakarta-turbine-maven/
  
  


  
  

  1.0
  1.0
  HEAD

  
  

  


  Nathan Coast
  nathan
  [EMAIL PROTECTED]
  

  
  


  weblogic
  8.1


  junit
  3.8.1


   ant
   ant-optional
   1.5.3-1

  

  


src/java
src/test


  
**/*Test.java
  




  


  plugin.jelly
  plugin.properties
  project.properties
  project.xml

  



  

**
from plugin.jelly
  

  

  
the echo gives "" as the value for the dependency path.  Interestingly
enough, when I hard code the path to the junit-optional jar, I get the
same error taskdef class org.apache...JUnitTask cannot be found
thanks
Nathan
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Nathan Coast <[EMAIL PROTECTED]> wrote on 22/09/2003 09:21:40 PM:

Hi,

I have a plugin that contains a taskdef for the ant JUnit task.  I
copied the code from the test plugin but I get this error.
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found.
Any ideas how I'd make the ant optional tasks availabble to my plugin?

cheers
Nathan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
> Show us your POM.



  3
  maven-junitejb-plugin
  maven-junitejb-plugin
  1.0
  
  OnePort
  
  2001
  org.apache.maven
  

  Java Project Management Tools

  

  http://maven.apache.org/
  
http://nagoya.apache.org/scarab/servlet/scarab/
  
  jakarta.apache.org
  
/www/maven.apache.org/
  
  
/www/jakarta.apache.org/builds/jakarta-turbine-maven/
  
  


  
  

  1.0
  1.0
  HEAD

  
  

  


  Nathan Coast
  nathan
  [EMAIL PROTECTED]
  

  
  


  weblogic
  8.1


  junit
  3.8.1


   ant
   ant-optional
   1.5.3-1

  

  


src/java
src/test


  
**/*Test.java
  




  


  plugin.jelly
  plugin.properties
  project.properties
  project.xml

  



  

**
from plugin.jelly
  

  

  
name="junit" 
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpath="${plugin.getDependencyPath('ant')}"/>

the echo gives "" as the value for the dependency path.  Interestingly 
enough, when I hard code the path to the junit-optional jar, I get the 
same error taskdef class org.apache...JUnitTask cannot be found

thanks
Nathan
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/
Nathan Coast <[EMAIL PROTECTED]> wrote on 22/09/2003 09:21:40 PM:

> Hi,
>
> I have a plugin that contains a taskdef for the ant JUnit task.  I
> copied the code from the test plugin but I get this error.
>
> taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> cannot be found.
>
> Any ideas how I'd make the ant optional tasks availabble to my plugin?
>
> cheers
> Nathan
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Code Formatting Plugin ???

2003-09-22 Thread Nelson Arapé
See the Jalopy plugin

On Monday 22 September 2003 08:27, Bateman, Patrick eMEDIA wrote:
> Has anyone out there use a code formatting and if so is there any
> integration with Maven??
>
> Thanks
>
> Pat
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom.resources question

2003-09-22 Thread dion
AFAIK, yes. 

It's the usual, if it's absolute use as is. If it's not, make it absolute 
by using basedir.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Jason van Zyl <[EMAIL PROTECTED]> wrote on 23/09/2003 09:18:34 AM:

> On Mon, 2003-09-22 at 18:36, [EMAIL PROTECTED] wrote:
> > These are all fixed in CVS.
> > 
> > With the next release, the  will be relative to the 
project.xml 
> > file.
> 
> If ${basedir} is present will it still be honoured?
> 
> > Are you using CVS HEAD?
> > --
> > dIon Gillard, Multitask Consulting
> > Blog:  http://blogs.codehaus.org/people/dion/
> > 
> > 
> > Laird Nelson <[EMAIL PROTECTED]> wrote on 23/09/2003 
03:51:34 
> > AM:
> > 
> > > Laird Nelson wrote:
> > > 
> > > > So I tried to absolutize this path, like this:
> > > >
> > > >${maven.src.dir}/src/java/foo/bar
> > > >
> > > > ...which didn't work, and then like this:
> > > >
> > > >${pom.sourceDirectory}/foo/bar
> > > >
> > > > ...which didn't work either.  Ideas? 
> > > 
> > > I can get it to work with 
> > > ${basedir}/src/java/foo/bar.  Is that the 
> > > recommended way?
> > > 
> > > Laird
> > > 
> > > 
> > > 
-
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> -- 
> jvz.
> 
> Jason van Zyl
> [EMAIL PROTECTED]
> http://tambora.zenplex.org
> 
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
> 
>   -- Jacques Ellul, The Technological Society
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom.resources question

2003-09-22 Thread Jason van Zyl
On Mon, 2003-09-22 at 18:36, [EMAIL PROTECTED] wrote:
> These are all fixed in CVS.
> 
> With the next release, the  will be relative to the project.xml 
> file.

If ${basedir} is present will it still be honoured?

> Are you using CVS HEAD?
> --
> dIon Gillard, Multitask Consulting
> Blog:  http://blogs.codehaus.org/people/dion/
> 
> 
> Laird Nelson <[EMAIL PROTECTED]> wrote on 23/09/2003 03:51:34 
> AM:
> 
> > Laird Nelson wrote:
> > 
> > > So I tried to absolutize this path, like this:
> > >
> > >${maven.src.dir}/src/java/foo/bar
> > >
> > > ...which didn't work, and then like this:
> > >
> > >${pom.sourceDirectory}/foo/bar
> > >
> > > ...which didn't work either.  Ideas? 
> > 
> > I can get it to work with 
> > ${basedir}/src/java/foo/bar.  Is that the 
> > recommended way?
> > 
> > Laird
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom.resources question

2003-09-22 Thread dion
These are all fixed in CVS.

With the next release, the  will be relative to the project.xml 
file.

Are you using CVS HEAD?
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Laird Nelson <[EMAIL PROTECTED]> wrote on 23/09/2003 03:51:34 
AM:

> Laird Nelson wrote:
> 
> > So I tried to absolutize this path, like this:
> >
> >${maven.src.dir}/src/java/foo/bar
> >
> > ...which didn't work, and then like this:
> >
> >${pom.sourceDirectory}/foo/bar
> >
> > ...which didn't work either.  Ideas? 
> 
> I can get it to work with 
> ${basedir}/src/java/foo/bar.  Is that the 
> recommended way?
> 
> Laird
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to turn off XML valdiation using Maven, Jelly ant:xslt task?

2003-09-22 Thread Matt MacDonald
Hi,

I have a XML document from our COTS portal tool that contains a DOCTYPE 
declaration that looks like the following:



Notice the URI: 'jar://resources/psdp.dtd'

When I try to use the ant:xslt task to apply a stylesheet to this XML 
document I get the following error:

Fatal Error! java.net.MalformedURLException: no !/ in spec Cause: 
java.net.MalformedURLException: no !/ in spec

I know the URI in the doctype is not a valid Java URL so how do I set 
the XML parser in Maven, Jelly, Ant to be non-validating?

Or does anyone have another suggestion? I'd really like to use the xslt 
task if at all possible.

-thanks
-matt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: pom.resources question

2003-09-22 Thread Andy Jefferson
On Monday 22 Sep 2003 18:51, Laird Nelson wrote:
> Laird Nelson wrote:
> > So I tried to absolutize this path, like this:
> >
> >${maven.src.dir}/src/java/foo/bar
> > ...which didn't work, and then like this:
> >
> >${pom.sourceDirectory}/foo/bar
> > ...which didn't work either.  Ideas?
>
> I can get it to work with
> ${basedir}/src/java/foo/bar.  Is that the
> recommended way?

Not sure if there is a "recommended" way, but thats what I've used. Its got to 
be down to when the various variables are initialised, and AFAIK basedir is 
available *always*.

-- 
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom.resources question

2003-09-22 Thread Laird Nelson
Laird Nelson wrote:

So I tried to absolutize this path, like this:

   ${maven.src.dir}/src/java/foo/bar

...which didn't work, and then like this:

   ${pom.sourceDirectory}/foo/bar

...which didn't work either.  Ideas? 
I can get it to work with 
${basedir}/src/java/foo/bar.  Is that the 
recommended way?

Laird

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


pom.resources question

2003-09-22 Thread Laird Nelson
I'm trying to figure out the syntax to use in the POM for the 
 element.

Specifically, I use maven -f project.xml a lot, and the  
reference is not being resolved properly.

Originally, I had something like this:


 
   src/java/foo/bar
   ...
...but if I run maven -f project.xml from somewhere deep inside my 
project, that relative path is now relative to my current directory, not 
the directory containing project.xml.

So I tried to absolutize this path, like this:

   ${maven.src.dir}/src/java/foo/bar

...which didn't work, and then like this:

   ${pom.sourceDirectory}/foo/bar

...which didn't work either.  Ideas?

Laird

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: maven xdoclet

2003-09-22 Thread Harri Lehtimaki
Hi Toby,

Yes, I noticed that. I guess I should learn to read. I already got a bit
further, but now I'm getting:
  java.lang.NullPointerException

Still having fun, anyway

- Original Message - 
From: "Rademacher Tobias" <[EMAIL PROTECTED]>
To: "'Maven Users List'" <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 4:12 PM
Subject: AW: maven xdoclet


> Hi Harri,
>
>
> > I'm just trying to port my project to Maven, and I think I'm
> > going to love
> > Maven as soon as get it working. But now I must be missing
> > somethng because
> > I get the following error message:
> > 11:41:  No goal [xdoclet:webdoclet]
> >
> > What am I doing wrong?
>
> I guess you either missed to install the xdoclet plugin in plugins
directory
> or some of the cache files are corrupted.
>
> Bye
> Toby
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: maven xdoclet

2003-09-22 Thread Rademacher Tobias
Hi Harri,


> I'm just trying to port my project to Maven, and I think I'm 
> going to love
> Maven as soon as get it working. But now I must be missing 
> somethng because
> I get the following error message:
> 11:41:  No goal [xdoclet:webdoclet]
> 
> What am I doing wrong?

I guess you either missed to install the xdoclet plugin in plugins directory
or some of the cache files are corrupted.

Bye
Toby


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven xdoclet

2003-09-22 Thread Harri Lehtimaki
Hi,
I'm just trying to port my project to Maven, and I think I'm going to love
Maven as soon as get it working. But now I must be missing somethng because
I get the following error message:
11:41:  No goal [xdoclet:webdoclet]

What am I doing wrong?

Best regards,
Harri

P.S. Many thanks to Andy. Your WebShop has helped me a lot. I owe you a
beer.

- Original Message - 
From: "Darren Hartford" <[EMAIL PROTECTED]>
To: "Maven Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 3:45 PM
Subject: RE: maven xdoclet


Just putting my two cents - I am using the xdoclet plugin now, and I think
it's great.  My projects are all built using maven, no ant scripts. Just
need to look for the appropiate use of ejbdoclet and webdoclet tags within
maven; which is for the most part the same property-value pairs as in ant.

As for struts-config, try this within webdoclet:
---code---

---end code---

Of course, need to adjust for your environment, but this works for me.

-D

-Original Message-
From: Colin Sampaleanu [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 12:19 PM
To: Maven Users List
Subject: Re: maven xdoclet


The maven xdoclet plugin is huge because it is actually generated (as
part of the xdoclet build).

I personally find it generally useless. For anything more than the
simpler cases, it is easier and cleaner to have 'ant-style' xdoclet
definitions in maven.xml exactly as you would have used in an ant build
project. Having to use flat properties in build.properties can get a lot
more verbose and error prone than a clean hierarchical xml definition in
maven.xml.  On top of that, there were some bugs (upper vs. lowercase
property names, which don't matter in xml files but do matter for
properties), and some properties which were wrong. I believe most of
them are fixed by now in xdoclet CVS but at a minimum you would have to
rebuild xdoclet 1.2post-beta3.

You can search the archives for this mailing list for some messages from
me showing how you would use xdoclet in maven.xml.



khote wrote:

>I'm insufficiently familiar with xdoclet, I'm looking for a "hook" to get
>myself into it.
>
>in fact I know maven better than I know ant ... have become somewhat
>familiar with the jelly scripting from looking at the plugin.jelly in the
>plugins.  The xdoclet plugin is huge compared to all the others, approx
>11,000 lines of code.
>
>I was hoping that a good way to do it would be to use webdoclet to help me
>generate a struts-config, this would show me how to set things up in
>maven.xml and build/project.properties, which preGoal and/or postGoal
events
>I should program to, when and where, that kind of thing.
>
>I'm using ant copy-filters comfortably in building a war subproject whose
>artifact is a dependency in an ear subproject, it appears to me that
xdoclet
>in this frame of mind is a similar thing, only a great deal smarter.  I
have
>jmx working for me comfortably, getting this WAR deployed, scm, scp, cvs ..
>all that stuff.
>
>What should I put in an Action I'm writing, for example, to have webdoclet
>write information to the struts-config?  How do I set this up in maven.xml?
>Are there any webdoclet or other *doclet processes which can help me with
>struts tiles?
>
>I'm convinced that I want to use xdoclet when I start implementing the
"uber
>project" with ejbs and jboss and jmx and all that ... deployment xmls up
the
>wazoo so to speak.
>
>- Original Message - 
>From: "tek1" <[EMAIL PROTECTED]>
>To: "Maven Users List" <[EMAIL PROTECTED]>
>Sent: Sunday, September 21, 2003 1:28 AM
>Subject: Re: maven xdoclet
>
>
>
>
>>Did you look at this yet?
>>
>>http://xdoclet.sourceforge.net/maven-plugin.html
>>
>>If you're familiar with the basics of XDoclet and Maven, the above offers
>>
>>
>a
>
>
>>good explanation of integrating the two.
>>
>>After reading and trying the above, let us know if you have any questions.
>>
>>
>>
>>
>>At 22:44 03/09/20 -0700, you wrote:
>>
>>
>>>Looking for online tutorials covering maven and xdoclet, webdoclet, that
>>>kind of thing.
>>>
>>>Anybody know of any?
>>>
>>>K
>>>
>>>
>>>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Code Formatting Plugin ???

2003-09-22 Thread Dominik Dahlem
The Jalopy plugin does that for you. You have to create a jalopy
configuration file to format your code. Have a look at
http://jalopy.sourceforge.net/ to find information on how to configure
jalopy.  Jalopy provides a swing configuration wizard which is quite
handy. However, there is a little bug with JavaDoc for fields. Make sure
you set the JavaDoc for a field, because the default value is not valid.
The maven-jalopy-plugin requires the setting to the jalopy configuration
file with maven.jalopy.style. Otherwise the default one is used.

Dominik


On Mon, 2003-09-22 at 13:27, Bateman, Patrick eMEDIA wrote:
> Has anyone out there use a code formatting and if so is there any
> integration with Maven??
> 
> Thanks
> 
> Pat
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager. 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: maven xdoclet

2003-09-22 Thread Darren Hartford
Just putting my two cents - I am using the xdoclet plugin now, and I think it's great. 
 My projects are all built using maven, no ant scripts. Just need to look for the 
appropiate use of ejbdoclet and webdoclet tags within maven; which is for the most 
part the same property-value pairs as in ant.

As for struts-config, try this within webdoclet:
---code---

---end code---

Of course, need to adjust for your environment, but this works for me.

-D

-Original Message-
From: Colin Sampaleanu [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 21, 2003 12:19 PM
To: Maven Users List
Subject: Re: maven xdoclet


The maven xdoclet plugin is huge because it is actually generated (as 
part of the xdoclet build).

I personally find it generally useless. For anything more than the 
simpler cases, it is easier and cleaner to have 'ant-style' xdoclet 
definitions in maven.xml exactly as you would have used in an ant build 
project. Having to use flat properties in build.properties can get a lot 
more verbose and error prone than a clean hierarchical xml definition in 
maven.xml.  On top of that, there were some bugs (upper vs. lowercase 
property names, which don't matter in xml files but do matter for 
properties), and some properties which were wrong. I believe most of 
them are fixed by now in xdoclet CVS but at a minimum you would have to 
rebuild xdoclet 1.2post-beta3.

You can search the archives for this mailing list for some messages from 
me showing how you would use xdoclet in maven.xml.



khote wrote:

>I'm insufficiently familiar with xdoclet, I'm looking for a "hook" to get
>myself into it.
>
>in fact I know maven better than I know ant ... have become somewhat
>familiar with the jelly scripting from looking at the plugin.jelly in the
>plugins.  The xdoclet plugin is huge compared to all the others, approx
>11,000 lines of code.
>
>I was hoping that a good way to do it would be to use webdoclet to help me
>generate a struts-config, this would show me how to set things up in
>maven.xml and build/project.properties, which preGoal and/or postGoal events
>I should program to, when and where, that kind of thing.
>
>I'm using ant copy-filters comfortably in building a war subproject whose
>artifact is a dependency in an ear subproject, it appears to me that xdoclet
>in this frame of mind is a similar thing, only a great deal smarter.  I have
>jmx working for me comfortably, getting this WAR deployed, scm, scp, cvs ..
>all that stuff.
>
>What should I put in an Action I'm writing, for example, to have webdoclet
>write information to the struts-config?  How do I set this up in maven.xml?
>Are there any webdoclet or other *doclet processes which can help me with
>struts tiles?
>
>I'm convinced that I want to use xdoclet when I start implementing the "uber
>project" with ejbs and jboss and jmx and all that ... deployment xmls up the
>wazoo so to speak.
>
>- Original Message - 
>From: "tek1" <[EMAIL PROTECTED]>
>To: "Maven Users List" <[EMAIL PROTECTED]>
>Sent: Sunday, September 21, 2003 1:28 AM
>Subject: Re: maven xdoclet
>
>
>  
>
>>Did you look at this yet?
>>
>>http://xdoclet.sourceforge.net/maven-plugin.html
>>
>>If you're familiar with the basics of XDoclet and Maven, the above offers
>>
>>
>a
>  
>
>>good explanation of integrating the two.
>>
>>After reading and trying the above, let us know if you have any questions.
>>
>>
>>
>>
>>At 22:44 03/09/20 -0700, you wrote:
>>
>>
>>>Looking for online tutorials covering maven and xdoclet, webdoclet, that
>>>kind of thing.
>>>
>>>Anybody know of any?
>>>
>>>K
>>>
>>>  
>>>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit taskdef

2003-09-22 Thread dion
> cheers,
> 
> I've tried adding this to the plugin's project.xml
> 
>  
> ant-optional
> ant
> 1.5.3-1
>  
> 
> and this to the plugin.jelly
> 
>  classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
> classpath="${plugin.getDependencyPath('ant-optional')}" />
> 
> but it still doesn't work :(
I'd say you need Ant-optional as well as Junit to run that task as well as 
some other jars.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Nathan Coast <[EMAIL PROTECTED]> wrote on 22/09/2003 09:43:33 PM:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit taskdef

2003-09-22 Thread dion
Show us your POM.
--
dIon Gillard, Multitask Consulting
Blog:  http://blogs.codehaus.org/people/dion/


Nathan Coast <[EMAIL PROTECTED]> wrote on 22/09/2003 09:21:40 PM:

> Hi,
> 
> I have a plugin that contains a taskdef for the ant JUnit task.  I 
> copied the code from the test plugin but I get this error.
> 
> taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
> cannot be found.
> 
> Any ideas how I'd make the ant optional tasks availabble to my plugin?
> 
> cheers
> Nathan
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Code Formatting Plugin ???

2003-09-22 Thread Tomasz Pik
Bateman, Patrick eMEDIA wrote:

Has anyone out there use a code formatting and if so is there any
integration with Maven??
Maybe this:
http://maven.apache.org/reference/plugins/jalopy/ ?
I didn't use it but I know it exists.
Regards,
Tomek
Thanks

Pat




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Code Formatting Plugin ???

2003-09-22 Thread Bateman, Patrick eMEDIA
Has anyone out there use a code formatting and if so is there any
integration with Maven??

Thanks

Pat
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven on win32 -> doesn`t work

2003-09-22 Thread Peter Veentjer
Andy Jefferson wrote:

On Saturday 09 Aug 2003 08:38, Peter Veentjer wrote:
 

I have tried to install maven on my windows xp machine, but the beta 8,
9 en 10 all don`t work because all kinds of dependencies could not be
solved (antlr and ant eg). Could you please put a good version online so
I can proceed tranforming all my ant projects to maven projects?
   

All versions of Maven mentioned work. When you run Maven it tries to download 
jars of packages it needs to run and it is clearly coming back with an error. 
Maybe you are behind a firewall ? 

If you perhaps post the error message you would get help in fixing it rather 
than just assuming that Maven "doesn't work".

 

The message at work:

Directory XXX.maven.repository doesn`t exist. Try to create it 
(translation from dutch). In the documentation a

install_repo.bat is mentioned, but it is not there in the bin direcrtory. 

I have internet at work.

The message at home (where I don`t have internet) is about not being 
able to resolve dependencies for antlr en ant (and jelly tags and a few 
others). I have been fiddeling around for a few hours to copy the jars 
that were required (ant eg), but I could not solve all the dependencies. 
On the site is mentioned that everything that is required is in the 
distribution of maven, so I assumed I don`t need maven (ps I use maven 
with the -o option (building offline)).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
I've tried this too, which also doesn't work


   ant-optional
   ant
   1.5.3-1

Nathan Coast wrote:

cheers,

I've tried adding this to the plugin's project.xml


   ant-optional
   ant
   1.5.3-1

and this to the plugin.jelly


but it still doesn't work :(

Andy Jefferson wrote:

On Monday 22 Sep 2003 12:21, Nathan Coast wrote:

Hi,

I have a plugin that contains a taskdef for the ant JUnit task.  I
copied the code from the test plugin but I get this error.
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found.
Any ideas how I'd make the ant optional tasks availabble to my plugin?


Put "ant-optional" in the project.xml of your plugin, and then add 

to your CLASSPATH in the plugin.jelly



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Nathan Coast
cheers,

I've tried adding this to the plugin's project.xml


   ant-optional
   ant
   1.5.3-1

and this to the plugin.jelly


but it still doesn't work :(

Andy Jefferson wrote:
On Monday 22 Sep 2003 12:21, Nathan Coast wrote:

Hi,

I have a plugin that contains a taskdef for the ant JUnit task.  I
copied the code from the test plugin but I get this error.
taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
cannot be found.
Any ideas how I'd make the ant optional tasks availabble to my plugin?


Put "ant-optional" in the project.xml of your plugin, and then add 

to your CLASSPATH in the plugin.jelly



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JUnit taskdef

2003-09-22 Thread Andy Jefferson
On Monday 22 Sep 2003 12:21, Nathan Coast wrote:
> Hi,
>
> I have a plugin that contains a taskdef for the ant JUnit task.  I
> copied the code from the test plugin but I get this error.
>
> taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
> cannot be found.
>
> Any ideas how I'd make the ant optional tasks availabble to my plugin?

Put "ant-optional" in the project.xml of your plugin, and then add 

to your CLASSPATH in the plugin.jelly

-- 
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JUnit taskdef

2003-09-22 Thread Nathan Coast
Hi,

I have a plugin that contains a taskdef for the ant JUnit task.  I 
copied the code from the test plugin but I get this error.

taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask 
cannot be found.

Any ideas how I'd make the ant optional tasks availabble to my plugin?

cheers
Nathan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: maven on win32 -> doesn`t work

2003-09-22 Thread Andy Jefferson
On Saturday 09 Aug 2003 08:38, Peter Veentjer wrote:
> I have tried to install maven on my windows xp machine, but the beta 8,
> 9 en 10 all don`t work because all kinds of dependencies could not be
> solved (antlr and ant eg). Could you please put a good version online so
> I can proceed tranforming all my ant projects to maven projects?

All versions of Maven mentioned work. When you run Maven it tries to download 
jars of packages it needs to run and it is clearly coming back with an error. 
Maybe you are behind a firewall ? 

If you perhaps post the error message you would get help in fixing it rather 
than just assuming that Maven "doesn't work".

-- 
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: maven on win32 -> doesn`t work

2003-09-22 Thread Rademacher Tobias
Hi Peter,

> I have tried to install maven on my windows xp machine, but 
> the beta 8, 
> 9 en 10 all don`t work because all kinds of dependencies could not be 
> solved (antlr and ant eg). Could you please put a good 
> version online so 
> I can proceed tranforming all my ant projects to maven projects?

I have Win XP at home and had no problems with beta-9 and beta-8.
What's your problem? If you are behind a firewall have you configured the
proxy?

Bye
Toby

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven on win32 -> doesn`t work

2003-09-22 Thread Peter Veentjer
I have tried to install maven on my windows xp machine, but the beta 8, 
9 en 10 all don`t work because all kinds of dependencies could not be 
solved (antlr and ant eg). Could you please put a good version online so 
I can proceed tranforming all my ant projects to maven projects?

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]