java - Openshift with lombok issue -


i create new application template of openshift wildfly 8, , works fine.

after add lombok:1.16.4 library, maven in server doesn't compile, in local machine works fine.

when run mvn -e -popenshift -dskiptests -x compile in openshift machine, says me:

[debug] command line options: [debug] -d /var/lib/openshift/id/app-root/runtime/repo/target/classes -classpath /var/lib/openshift/id/app-root/runtime/repo/target/classes:/var/lib/openshift/id/.m2/repository/javax/javaee-api/7.0/javaee-api-7.0.jar:/var/lib/openshift/id/.m2/repository/com/sun/mail/javax.mail/1.5.0/javax.mail-1.5.0.jar:/var/lib/openshift/id/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/var/lib/openshift/id/.m2/repository/org/projectlombok/lombok/1.16.4/lombok-1.16.4.jar:/var/lib/openshift/id/.m2/repository/org/torpedoquery/org.torpedoquery/1.7.0/org.torpedoquery-1.7.0.jar:/var/lib/openshift/id/.m2/repository/org/javassist/javassist/3.18.0-ga/javassist-3.18.0-ga.jar:/var/lib/openshift/id/.m2/repository/org/eclipse/persistence/javax.persistence/2.0.0/javax.persistence-2.0.0.jar:/var/lib/openshift/id/.m2/repository/org/objenesis/objenesis/1.3/objenesis-1.3.jar:/var/lib/openshift/id/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/var/lib/openshift/id/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/var/lib/openshift/id/.m2/repository/org/apache/commons/commons-lang3/3.0/commons-lang3-3.0.jar: -sourcepath /var/lib/openshift/id/app-root/runtime/repo/src/main/java: all_my_classes -s /var/lib/openshift/id/app-root/runtime/repo/target/generated-sources/annotations -g -nowarn -target 1.8 -source 1.8 -encoding utf-8 

and compilation error, problem is, when run

javac $all_arguments_from_maven_debug_info (from -d)  

it works fine, , post javac manually compilation mvn compile report no problems (until clean executed, or file changed).

i check variables in environment , don't see wrong, differences:

  • mvn: local (3.2.3) remote (3.0.4)
  • os: local (amd64) remote (i386)
  • os.version: local (3.16) remote (2.6)
  • both using openjdk
  • aether: local (org.eclipse.aether) remote (org.sonatype.aether)

also, if remove lombok part in classpath when run javac command, same error maven.

what can difference between environment make maven openshift ignore lombok?

here link 2 compilations (with debug output)

the problem related maven-compiler-plugin, latest version works everywhere, add pom:

<build>     <pluginmanagement>         <plugins>             <plugin>                 <groupid>org.apache.maven.plugins</groupid>                 <artifactid>maven-compiler-plugin</artifactid>                 <version>3.3</version>                 <configuration>                     <compilerversion>1.8</compilerversion>                     <source>1.8</source>                     <target>1.8</target>                 </configuration>             </plugin>         </plugins>     </pluginmanagement> </build> 

the version of plugin in default configuration in openshift old (2.3) , don't work lombok.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -