You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Oliphant, Erich (Contr) (Mission Systems)" <Er...@ngc.com> on 2006/02/21 20:16:42 UTC
1.0 vs 1.1 beta problem in java-plugin-1.5
Hi,
I needed to upgrade to maven 1.1 in order to get a more recent ant. I
am running into peculiar problem when I run the war goal. I get the
following error in 1.1 beta 2 but not 1.0.2:
--
plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no
longer present
Cache invalidated due to out of date plugins
[echo] target/dts_poc
[echo] target/dts_poc
Tag library requested that is not present: 'caller' in plugin:
'maven-war-plugin-1.6.1'
build:start:
war:init:
war:war-resources:
[copy] Copying 1 file to
/appdata/cruisecontrol/checkout/dts_poc_agitate/tar
get/dts_poc/WEB-INF
java:prepare-filesystem:
java:compile:
[echo] Compiling to target/classes
BUILD FAILED
File...... /root/.maven/cache/maven-java-plugin-1.5/plugin.jelly
Element... maven:copy-resources
Line...... 164
Column.... 38
java.lang.NullPointerException
Total time : 8 seconds
Finished at : Tuesday, February 21, 2006 1:53:44 PM EST
--
With the -e option here's the relevant stack trace:
BUILD FAILED
java.lang.NullPointerException
at java.io.File.<init>(File.java:194)
at
org.apache.maven.jelly.tags.maven.CopyResources.doTag(CopyResources.java
:97)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j
ava:78)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
mAction(MavenGoalTag.java:109)
at org.apache.maven.werkz.Goal.fire(Goal.java:656)
at org.apache.maven.werkz.Goal.attain(Goal.java:592)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
at org.apache.maven.werkz.Goal.attain(Goal.java:590)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693
)
at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:511)
at org.apache.maven.cli.App.main(App.java:1258)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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)
File...... /root/.maven/cache/maven-java-plugin-1.5/plugin.jelly
--
I looked at the plugin source and added a the following echo statement
before the "copy-resources" call:
<ant:echo message="pbr: ${pom.build.resources} mbd:${maven.build.dest}"
/>
<maven:copy-resources
resources="${pom.build.resources}"
todir="${maven.build.dest}"/>
The output from 1.0.2:
java:jar-resources:
[echo] pbr: [[dir =
/appdata/cruisecontrol/checkout/dts_poc_agitate]] mbd:target/classes
The output from 1.1 beta 2:java:jar-resources:
java:jar-resources:
[echo] pbr: [org.apache.maven.project.Resource@1be4777]
mbd:target/classes
The difference of course is the toString'ed Resource object vs a String
that represents a path.
Any ideas ?
Is this a bug ?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: 1.0 vs 1.1 beta problem in java-plugin-1.5
Posted by Arnaud HERITIER <ah...@gmail.com>.
It's perhaps related to http://jira.codehaus.org/browse/MAVEN-1708
Can you try this snapshot :
http://people.apache.org/~aheritier/maven/1.X/snapshots/
It includes a fix for this issue
Arnaud
On 2/21/06, Oliphant, Erich (Contr) (Mission Systems) <
Erich.Oliphant@ngc.com> wrote:
>
> Hi,
> I needed to upgrade to maven 1.1 in order to get a more recent ant. I
> am running into peculiar problem when I run the war goal. I get the
> following error in 1.1 beta 2 but not 1.0.2:
> --
>
> plugin maven-cruisecontrol-plugin-1.6 is cached (dynatag dep) but no
> longer present
> Cache invalidated due to out of date plugins
> [echo] target/dts_poc
> [echo] target/dts_poc
> Tag library requested that is not present: 'caller' in plugin:
> 'maven-war-plugin-1.6.1'
> build:start:
>
> war:init:
>
> war:war-resources:
> [copy] Copying 1 file to
> /appdata/cruisecontrol/checkout/dts_poc_agitate/tar
> get/dts_poc/WEB-INF
>
> java:prepare-filesystem:
>
> java:compile:
> [echo] Compiling to target/classes
>
> BUILD FAILED
> File...... /root/.maven/cache/maven-java-plugin-1.5/plugin.jelly
> Element... maven:copy-resources
> Line...... 164
> Column.... 38
> java.lang.NullPointerException
> Total time : 8 seconds
> Finished at : Tuesday, February 21, 2006 1:53:44 PM EST
> --
>
> With the -e option here's the relevant stack trace:
> BUILD FAILED
> java.lang.NullPointerException
> at java.io.File.<init>(File.java:194)
> at
> org.apache.maven.jelly.tags.maven.CopyResources.doTag(CopyResources.java
> :97)
> at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
> at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> at
> org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
> at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
> at
> org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
> at
> org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j
> ava:78)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor
> mAction(MavenGoalTag.java:109)
> at org.apache.maven.werkz.Goal.fire(Goal.java:656)
> at org.apache.maven.werkz.Goal.attain(Goal.java:592)
> at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
> at org.apache.maven.werkz.Goal.attain(Goal.java:590)
> at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
> at org.apache.maven.werkz.Goal.attain(Goal.java:590)
> at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
> at org.apache.maven.werkz.Goal.attain(Goal.java:590)
> at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
> at org.apache.maven.werkz.Goal.attain(Goal.java:590)
> at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505)
> at org.apache.maven.werkz.Goal.attain(Goal.java:590)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693
> )
> at
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
> at org.apache.maven.cli.App.doMain(App.java:511)
> at org.apache.maven.cli.App.main(App.java:1258)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.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)
> File...... /root/.maven/cache/maven-java-plugin-1.5/plugin.jelly
>
> --
>
> I looked at the plugin source and added a the following echo statement
> before the "copy-resources" call:
> <ant:echo message="pbr: ${pom.build.resources} mbd:${maven.build.dest}"
> />
> <maven:copy-resources
> resources="${pom.build.resources}"
> todir="${maven.build.dest}"/>
>
> The output from 1.0.2:
> java:jar-resources:
> [echo] pbr: [[dir =
> /appdata/cruisecontrol/checkout/dts_poc_agitate]] mbd:target/classes
>
> The output from 1.1 beta 2:java:jar-resources:
> java:jar-resources:
> [echo] pbr: [org.apache.maven.project.Resource@1be4777]
> mbd:target/classes
>
> The difference of course is the toString'ed Resource object vs a String
> that represents a path.
>
> Any ideas ?
>
> Is this a bug ?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>