On Sun, Oct 23, 2011 at 11:51 PM, dodtsair <mpower...@dodtsair.com> wrote:
> This is the failure during a java 7 run. Looks like it is using sun
> specific classes?
If it were actually Sun-specific classes, then why would OpenJDK work?
> Is this a known problem? I suppose the fix is to fall back to java
> 1.6 until java 7 is supported.
I don't think many people are developing with Java 7 yet. Only
recently, Java 6 was made a requirement and that is evidenced with
m-hpi-p changes to rely on Java 6's APT instead of pre-Java 6 com.sun
compiler tricks.
> mvn -cpu hpi:create -DgroupId=org.sample -DartifactId=sample
> org.jvnet.hudson.maven.plugins.hpi.AptCompiler
> java.lang.NoClassDefFoundError: com/sun/mirror/apt/
> AnnotationProcessorFactory
So, check which version of m-hpi-p is being created with the
archetype, and ensure it is something like 1.22 or better.
-Jesse
--
There are 10 types of people in this world, those
that can read binary and those that can not.