Hello. I'm attempting to add a Maven plugin to a small compiler project:
https://github.com/io7m/jpra However, given the following trivial pom.xml: https://github.com/io7m/jpra/blob/develop/io7m-jpra-maven-plugin/pom.xml ... and the following no-op unit test: https://github.com/io7m/jpra/blob/develop/io7m-jpra-maven-plugin/src/test/java/com/io7m/jpra/tests/maven/JPRACodeGeneratorMojoTest.java I get the following as soon as I try to run the test: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.014 sec <<< FAILURE! - in com.io7m.jpra.tests.maven.JPRACodeGeneratorMojoTest testSomething(com.io7m.jpra.tests.maven.JPRACodeGeneratorMojoTest) Time elapsed: 0.009 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/maven/execution/MavenExecutionRequest at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.io7m.jpra.tests.maven.JPRACodeGeneratorMojoTest.<init>(JPRACodeGeneratorMojoTest.java:29) This occurs when running mvn from the command line, and also when trying to run the tests directly from an IDE. A search online doesn't show anyone else having this problem. Is this a bug? What have I done incorrectly? Apache Maven 3.3.3 (NON-CANONICAL_2015-07-27T12:38:38_root;2015-07-27T09:38:38+00:00) Maven home: /opt/maven Java version: 1.8.0_65, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-openjdk/jre Default locale:en_GB, platform encoding: UTF-8 OS name: "linux", version: "4.2.2-1-arch", arch: "amd64", family: "unix" M --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org