IGZnestorpina/apiary-java-language-template-test — pull request #1 by abtris (2014-11-23 20:26:20+00:00)
Title: Abtris/post test

I try make POST example and have these type of errors?

```
mvn clean compile exec:java -Dexec.mainClass="test"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building test 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ test ---
[INFO] Deleting /Users/abtris/Sites/apiary-java-language-template-test/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ test ---
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/abtris/Sites/apiary-java-language-template-test/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/abtris/Sites/apiary-java-language-template-test/target/classes
[INFO]
[INFO] --- exec-maven-plugin:1.3.2:java (default-cli) @ test ---
[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.UnsupportedClassVersionError: org/glassfish/jersey/jackson/internal/JacksonAutoDiscoverable : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:402)
at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:397)
at java.security.AccessController.doPrivileged(Native Method)
at org.glassfish.jersey.internal.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:575)
at org.glassfish.jersey.internal.ServiceFinder.toClassArray(ServiceFinder.java:416)
at org.glassfish.jersey.internal.ServiceFinderBinder.configure(ServiceFinderBinder.java:90)
at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:171)
at org.glassfish.hk2.utilities.binding.AbstractBinder.install(AbstractBinder.java:329)
at org.glassfish.jersey.client.ClientBinder.configure(ClientBinder.java:116)
at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:171)
at org.glassfish.jersey.internal.inject.Injections.bind(Injections.java:154)
at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:144)
at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:133)
at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:384)
at org.glassfish.jersey.client.ClientConfig$State.access$000(ClientConfig.java:86)
at org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:118)
at org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:115)
at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:322)
at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:721)
at org.glassfish.jersey.client.ClientRequest.getConfiguration(ClientRequest.java:284)
at org.glassfish.jersey.client.JerseyInvocation.validateHttpMethodAndEntity(JerseyInvocation.java:125)
at org.glassfish.jersey.client.JerseyInvocation.(JerseyInvocation.java:98)
at org.glassfish.jersey.client.JerseyInvocation.(JerseyInvocation.java:91)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)
at test.main(test.java:12)
... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.458 s
[INFO] Finished at: 2014-11-23T21:24:20+01:00
[INFO] Final Memory: 14M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on project test: An exception occured while executing the Java class. null: InvocationTargetException: org/glassfish/jersey/jackson/internal/JacksonAutoDiscoverable : Unsupported major.minor version 51.0 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
```

Any help?