I just reproduced your problem: the maven.test.compile.src.set variable is not initialized if there are no test sources present in your project. So I suppose there are no tests in some of your subprojects. This is certainly a bug in the test plugin but given the current state of m1.1 it's not really worth filing a bug report.

There is a workaround anyway: just avoid calling the test:compile goal on any projects that have no tests. You can test for that with

<j:if test="${unitTestSourcesPresent == 'true'}">
</j:if>

HTH,
-Lukas


[EMAIL PROTECTED] wrote:
Lukas,

Thanks for replying. I've attached the whole maven.xml. We also have
separate maven.xml for each of subprojects. Also, the problem with your suggestion is that if I add
<maven:addPath id="maven.test.compile.src.set"
refid="your_test_sources"/>

it'll fail with the same error as it requires maven.test.compile.src.set
to be already present. Do I need to declare an empty
maven.test.compile.src.set set somehow?

Alexey Yudichev.

-----Original Message-----
From: Lukas Theussl [mailto:[EMAIL PROTECTED] Sent: 31 July 2008 17:51
To: Maven Users List
Subject: Re: maven-test-plugin-1.8.2/plugin.jelly:46:72:
<maven:addPath>: cannot find the path to add to specified by 'id':
maven.test.compile.src.set



You are using a custom goal in maven.xml, so we'd need to see what's in there to be able to help you. The maven.test.compile.src.set property [1] holds the directory of test sources so you probably need something
like

<maven:addPath id="maven.test.compile.src.set"
refid="your_test_sources"/>

HTH,
-Lukas


[1] http://maven.apache.org/maven-1.x/plugins/test/properties.html



[EMAIL PROTECTED] wrote:

I am getting the following internal exception in maven test plugin

1.8.2

working inside maven 1.1. Where is this property
(maven.test.compile.src.set) supposed to be set initially?



Errors stack :



Unable to obtain goal [all:rebuildWithoutTest]


File...... file:/C:/p4/tcw/TCW_S_Dev/fo_tcw_fip/TCW/maven.xml


Element... m:reactor


Line...... 24


Column.... 45


Unable to obtain goal [tcw:buildWithoutTest]


cannot find the path to add to specified by 'id':

maven.test.compile.src.set



File......

file:/c:/temp/.maven/cache/maven-test-plugin-1.8.2/plugin.jelly



Element... maven:addPath


Line...... 46


Column.... 72




Exception stack traces :

org.apache.maven.werkz.UnattainableGoalException: Unable to obtain

goal

[all:rebuildWithoutTest]

       at org.apache.maven.werkz.Goal.fire(Goal.java:698)

       at org.apache.maven.werkz.Goal.attain(Goal.java:623)

       at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:526)

       at org.apache.maven.werkz.Goal.attain(Goal.java:621)

       at


org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:712

)

       at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)

       at org.apache.maven.cli.App.doMain(App.java:307)

       at org.apache.maven.cli.App.main(App.java:217)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       at


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav

a:39)

       at


sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor

Impl.java:25)

       at java.lang.reflect.Method.invoke(Method.java:585)

       at com.werken.forehead.Forehead.run(Forehead.java:551)

       at com.werken.forehead.Forehead.main(Forehead.java:581)

Caused by: org.apache.commons.jelly.JellyTagException:
file:/C:/p4/tcw/TCW_S_Dev/fo_tcw_fip/TCW/maven.xml:24:45: <m:reactor>
Reactor subproje

ct failure occurred

       at


org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:380)

       at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)

       at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j

ava:83)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc

tion(MavenGoalTag.java:116)

       at org.apache.maven.werkz.Goal.fire(Goal.java:691)

       at org.apache.maven.werkz.Goal.attain(Goal.java:623)

       at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:209)

       at


org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGo

alTag.java:115)

       at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)

       at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j

ava:83)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc

tion(MavenGoalTag.java:116)

       at org.apache.maven.werkz.Goal.fire(Goal.java:691)

       ... 13 more

Caused by: org.apache.maven.werkz.UnattainableGoalException: Unable to
obtain goal [tcw:buildWithoutTest]

       at org.apache.maven.werkz.Goal.fire(Goal.java:698)

       at org.apache.maven.werkz.Goal.attain(Goal.java:623)

       at


org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:712

)

       at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:265)

       at


org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.java:370)

       ... 26 more

Caused by: org.apache.commons.jelly.JellyTagException:
file:/c:/temp/.maven/cache/maven-test-plugin-1.8.2/plugin.jelly:46:72:
<maven:addPath>

cannot find the path to add to specified by 'id':
maven.test.compile.src.set

       at
org.apache.maven.jelly.tags.maven.AddPathTag.doTag(AddPathTag.java:67)

       at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)

       at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j

ava:83)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc

tion(MavenGoalTag.java:116)

       at org.apache.maven.werkz.Goal.fire(Goal.java:691)

       at org.apache.maven.werkz.Goal.attain(Goal.java:623)

       at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:209)

       at


org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGo

alTag.java:115)

       at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)

       at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j

ava:83)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc

tion(MavenGoalTag.java:116)

       at org.apache.maven.werkz.Goal.fire(Goal.java:691)

       at org.apache.maven.werkz.Goal.attain(Goal.java:623)

       at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:209)

       at


org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGo

alTag.java:115)

       at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)

       at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j

ava:83)

       at


org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc

tion(MavenGoalTag.java:116)

       at org.apache.maven.werkz.Goal.fire(Goal.java:691)

       ... 30 more



Alexey Yudichev.


_______________________________________________

This e-mail may contain information that is confidential, privileged

or otherwise protected from disclosure. If you are not an intended
recipient of this e-mail, do not duplicate or redistribute it by any
means. Please delete it and any attachments and notify the sender that
you have received it in error. Unless specifically indicated, this
e-mail is not an offer to buy or sell or a solicitation to buy or sell
any securities, investment products or other financial product or
service, an official confirmation of any transaction, or an official
statement of Barclays. Any views or opinions presented are solely those
of the author and do not necessarily represent those of Barclays. This
e-mail is subject to terms available at the following link:
www.barcap.com/emaildisclaimer. By messaging with Barclays you consent
to the foregoing.  Barclays Capital is the investment banking division
of Barclays Bank PLC, a company registered in England (number 1026167)
with its registered off
ice at 1 Churchill Place, London, E14 5HP.  This email may relate to or
be sent from other members of the Barclays Group.

_______________________________________________



---------------------------------------------------------------------
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]

Reply via email to