What steps will reproduce the problem?
1. Followed instructions from: http://code.google.com/p/jxsl/
Ran the maven command:
mvn archetype:generate -DarchetypeGroupId=com.servicelibre
-DarchetypeArtifactId=xspec-test -DarchetypeVersion=0.1.11
-DarchetypeCatalog=http://jxsl.googlecode.com/svn/trunk/archetypes
2. Receive the error:
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on
project standalone-pom: The desired archetype does not exist
(com.servicelibre:xspec-test:0.1.11) -> [Help 1]
3. Change the -DarchetypeVersion to: 0.1.10 and then it works.
4. Followed the instructions to install the saxon 9.3.0.2j to local the
repository
5. Ran the command: mvn test
6. The tests did not seem to run
7. Added sure-fire plugin and JUnit dependency to the pom.xml
8. Added the method: public void testThis() to
com.servicelibre.XspecJUnitTest.java:
public void testThis(){
System.out.println("~~~~~~~~@@@@@@@@@Running testThis()");
File aFile = new File("xspec/tutorial/escape-for-regex-success.xspec");
XspecJUnitTest aTest = new XspecJUnitTest(aFile);
}
9. Run the command: mvn test
10. Get the error:
Running com.servicelibre.XspecJUnitTest
org.apache.maven.surefire.booter.SurefireExecutionException: Could not
initialize class
com.servicelibre.jxsl.scenario.test.xspec.XspecScenarioJUnitTest; nested
exception is java.lang.NoClassDefFoundError: Could not initialize class
com.servicelibre.jxsl.scenario.test.xspec.XspecScenarioJUnitTest
java.lang.NoClassDefFoundError: Could not initialize class
com.servicelibre.jxsl.scenario.test.xspec.XspecScenarioJUnitTest
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
What is the expected output? What do you see instead?
The tests in xspec/tutorial/escape-for-regex-success.xspec to run
What version of the product are you using? On what operating system?
I want to use 0.1.11, but maven reported that version 0.1.11 does not exist, so
I used 0.1.10 instead.
Please provide any additional information below.
It seems like the instructions on:
http://code.google.com/p/jxsl/
just do not work. How do I invoke the xspec tests within XspecJUnitTest.
Since the code is in src/test/java shouldn't the project list the sure-fire
plugin and depend on JUnit? If you have an update set of steps that work,
please provide them, thanks.
Original issue reported on code.google.com by thu....@gmail.com on 22 Feb 2012 at 7:36
Original issue reported on code.google.com by
thu....@gmail.com
on 22 Feb 2012 at 7:36Attachments: