[ http://jira.codehaus.org/browse/MAVEN-1125?page=all ]
Andy Jefferson updated MAVEN-1125:
----------------------------------
Attachment: maven-console-test.jar
Attached jar attempts to reproduce this.
To run with Ant
You need jpox-1.1.0.jar, jdo2-api-2.0.jar, hsqldb-1.8.0.4.jar, log4j-1.2.8.jar
in your maven local repo, and set the maven local repo location in build.xml
Type "ant clean compile run", and it runs fine, prompting for input and
returning it.
To run with Maven (1.0.2)
Type "maven clean jar run"
Gives java.lang.NoClassDefFoundError: org/w3c/dom/Document
(xml-apis, xml-resolver, xercesImpl are listed as dependencies)
Either there's something I can add to maven.xml/project.xml to get this to
work, or something is incorrect in Maven. Maybe there's something I've got
wrong in maven.xml ?
> ant:java fork issues
> --------------------
>
> Key: MAVEN-1125
> URL: http://jira.codehaus.org/browse/MAVEN-1125
> Project: Maven
> Issue Type: Bug
> Affects Versions: 1.0-rc2
> Environment: Linux, JDK1.4.2
> Reporter: Andy Jefferson
> Attachments: maven-console-test.jar
>
>
> I have a Java app that I want to invoke via Maven. The Java app uses stdin
> and stdout.
> If I invoke using ant:java using "fork=true" then stdin doesn not respond
> correctly. That is, the app prompts, but the user can type to their hearts
> content and nothing reaches the app.
> If I invoke using ant:java using "fork=false" then I get strange XML related
> errors about unresolved references org/w3c/dom/Node, org/w3c/dom/Document
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira