"mvn exec:java" as described in Ch 4, "Maven: The Definitive Guide", fails for
me with error message shown below
-----------------------------------------------------------------------------------------------------------------
Key: MEXEC-71
URL: http://jira.codehaus.org/browse/MEXEC-71
Project: Maven 2.x Exec Plugin
Issue Type: Bug
Components: exec
Environment: Windows NT, MS-DOS
Reporter: Robert Kruck
Priority: Minor
Attachments: pom.xml_CAN_INSTALL, pom.xml_COPIED
1) I was using the expanded simple-weather pom.xml that was downloaded with the
other "Maven: The Definitive Guide", Ch4 example files.
2) I find that I get a successful "simple-weather" mvn install, with
simple-weather in the state it is in as of page 47, if I delete the <parent>
... </parent> section of the provided pom.xml that I uploaded along with this
Issue.
3) With the <parent> ... </parent> section deleted I can do "mvn install" but
now get a complaint about a missing class when running the command
mvn exec:java -Dexec.mainClass=org.sonatype.mavenbook.weather.Main
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An exception occured while executing the Java class.
org.sonatype.mavenbook.weather.Main
Caused by: java.lang.ClassNotFoundException: org.sonatype.mavenbook.weather.Main
My current pom.xml file is attached (includes CAN_INSTALL in its name).
The Maven book's CH4 pom.xml, which I downloaded from www.sonatype.org, is also
attached. This pom.xml can neither "mvn install" nor "mvn exec:java"
Does anyone have a pom.xml that can be used to do mvn exec:java
-Dexec.mainClass=org.sonatype.mavenbook.weather.Main for the "Maven: The
Definitive Guide" Chapter 4 example "simple-weather" ?
My java version is: java version "1.6.0_17"
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email