Maven 1

touchstone test with external entities in maven.xml fails

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1-beta-1
  • Fix Version/s: 1.1-beta-1
  • Component/s: core
  • Labels:
    None
  • Environment:
    Maven 1.1, Win XP SP2,
    java version "1.4.2_05"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
    Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
  • Number of attachments :
    0

Description

As mentioned in this thread (http://marc.theaimsgroup.com/?t=111699802000001&r=1&w=2) the maven 1.1 bootstrap fails because of a test failure in touchstone with external entities in maven.xml

The log :

D:\Work\Dev\apache-maven-1.1\core\trunk\src\test\touchstone-build>maven -e test-entity-goal
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. @pom.currentVersion@

DEPRECATED: the default goal should be specified in the <build> section of project.xml instead of maven.xml
Tentative de tÚlÚchargement de maven-model-3.0.0-SNAPSHOT.jar.
Tentative de tÚlÚchargement de touchstone-SNAPSHOT.jar.
Tentative de tÚlÚchargement de test-SNAPSHOT.war.
Tentative de tÚlÚchargement de maven-model-3.0.0-SNAPSHOT.jar.
Tentative de tÚlÚchargement de commons-jelly-tags-xml-1.1-SNAPSHOT.jar.
Tentative de tÚlÚchargement de maven-model-3.0.0-SNAPSHOT.jar.
DEPRECATED: the default goal should be specified in the <build> section of project.xml instead of maven.xml

LA CONSTRUCTION A ╚CHOU╚
org.apache.maven.MavenException: Error reading plugin script
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:169)
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177)
at org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:524)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:596)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.jelly.tags.maven.MavenTag.doTag(MavenTag.java:82)
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.java:78)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(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.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.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:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
— Nested Exception —
java.net.MalformedURLException: no protocol: entity/entity.xml
at java.net.URL.<init>(URL.java:537)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java:92)
at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3327)
at org.apache.crimson.parser.Parser2.externalParsedEntity(Parser2.java:3013)
at org.apache.crimson.parser.Parser2.expandEntityInContent(Parser2.java:2739)
at org.apache.crimson.parser.Parser2.maybeReferenceInContent(Parser2.java:2606)
at org.apache.crimson.parser.Parser2.content(Parser2.java:2017)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1691)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:667)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:157)
at org.apache.maven.plugin.JellyScriptHousing.parse(JellyScriptHousing.java:177)
at org.apache.maven.plugin.PluginManager.readMavenXml(PluginManager.java:524)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:596)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.jelly.tags.maven.MavenTag.doTag(MavenTag.java:82)
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.java:78)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(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.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.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:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Fichier... D:\Work\Dev\apache-maven-1.1\core\trunk\src\test\touchstone-build\maven.xml
╚lement... maven:maven
Ligne..... 838
Colonne... -1
Error reading plugin script
Temps total : 10 secondes
Fini le : vendredi 27 mai 2005 00:48:55 CEST

Activity

Hide
Brett Porter added a comment -

this is a bug in JDK 1.4's XML parser (crimson) - so removed the test. We won't support entities in maven.xml under JDK 1.4 (added a note to the backwards-compatibility.xml page).

Show
Brett Porter added a comment - this is a bug in JDK 1.4's XML parser (crimson) - so removed the test. We won't support entities in maven.xml under JDK 1.4 (added a note to the backwards-compatibility.xml page).

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: