Francis,
We have recently updated handling of our eclipse dependencies. This will
probably fix your problem.
Can you try your build using our snapshot version 1.2.4-SNAPSHOT. The
instructions on using our snapshot are here:
http://jibx.sourceforge.net/maven-jibx-plugin/snapshots.html
Good Luck!
Don
> Message: 2
> Date: Mon, 26 Mar 2012 08:12:38 -0700
> From: Francis Lalonde <fralalo...@expedia.com>
> Subject: [jibx-users] JiBX vs Lombok clash in Eclipse w/Maven
> To: "jibx-users@lists.sourceforge.net"
> <jibx-users@lists.sourceforge.net>
> Message-ID:
> <
> 6bafc263f335ba4a8c0e251f91ff11c604a9ae8...@chc-ccr01.sea.corp.expecn.com>
>
> Content-Type: text/plain; charset="us-ascii"
>
> I have a problem with a project that uses both JiBX and Lombok (
> http://projectlombok.org/) Eclipse extension. The problem shows up when
> building within Eclipse (using the Maven m2e jibx plugin).
>
> Running Maven at the command line works fine - code gets generated,
> compiled and packaged.
>
> Lombok supplements the java compiler to generate methods from annotations
> at compile-time. It is very nice - one of these things you can't live
> without once you start using them.
>
> I will file a bug report but I am posting this first here so that it can
> be discussed.
>
> I had to revert to JiBX 1.2.2 to get this stack trace as v1.2.3 was
> eschewing most of it :
>
> Execution gencode of goal org.jibx:maven-jibx-plugin:1.2.2:schema-codegen
> failed: An API incompatibility was encountered while executing
> org.jibx:maven-jibx-plugin:1.2.2:schema-codegen: java.lang.LinkageError:
> loader constraint violation: when resolving method
> "lombok.eclipse.TransformEclipseAST.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V"
> the class loader (instance of
> org/codehaus/plexus/classworlds/realm/ClassRealm) of the current class,
> org/eclipse/jdt/internal/compiler/parser/Parser, and the class loader
> (instance of <bootloader>) for resolved class,
> lombok/eclipse/TransformEclipseAST, have different Class objects for the
> type
> ransformEclipseAST.transform_swapped(Lorg/eclipse/jdt/internal/compiler/ast/CompilationUnitDeclaration;Lorg/eclipse/jdt/internal/compiler/parser/Parser;)V
> used in the signature
> -----------------------------------------------------
> realm = plugin>org.jibx:maven-jibx-plugin:1.2.2
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> urls[0] =
> file:/D:/Dev/.m2/repository/org/jibx/maven-jibx-plugin/1.2.2/maven-jibx-plugin-1.2.2.jar
> urls[1] =
> file:/D:/Dev/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
> urls[2] = file:/D:/Dev/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> urls[3] =
> file:/D:/Dev/.m2/repository/org/jibx/jibx-tools/1.2.2/jibx-tools-1.2.2.jar
> urls[4] =
> file:/D:/Dev/.m2/repository/org/jibx/jibx-schema/1.2.2/jibx-schema-1.2.2.jar
> urls[5] = file:/D:/Dev/.m2/repository/bcel/bcel/5.1/bcel-5.1.jar
> urls[6] = file:/D:/Dev/.m2/repository/regexp/regexp/1.2/regexp-1.2.jar
> urls[7] =
> file:/D:/Dev/.m2/repository/org/jibx/jibx-bind/1.2.2/jibx-bind-1.2.2.jar
> urls[8] =
> file:/D:/Dev/.m2/repository/org/jibx/jibx-extras/1.2.2/jibx-extras-1.2.2.jar
> urls[9] =
> file:/D:/Dev/.m2/repository/org/jibx/jibx-run/1.2.2/jibx-run-1.2.2.jar
> urls[10] =
> file:/D:/Dev/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.1.jar
> urls[11] =
> file:/D:/Dev/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
> urls[12] = file:/D:/Dev/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> urls[13] = file:/D:/Dev/.m2/repository/xpp3/xpp3/1.1.3.3/xpp3-1.1.3.3.jar
> urls[14] =
> file:/D:/Dev/.m2/repository/commons-io/commons-io/1.1/commons-io-1.1.jar
> urls[15] =
> file:/D:/Dev/.m2/repository/org/eclipse/jdt/core/3.3.0-v_771/core-3.3.0-v_771.jar
> urls[16] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar
> urls[17] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/expressions/3.3.0-v20070606-0010/expressions-3.3.0-v20070606-0010.jar
> urls[18] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/runtime/3.3.100-v20070530/runtime-3.3.100-v20070530.jar
> urls[19] =
> file:/D:/Dev/.m2/repository/org/eclipse/osgi/3.4.3.R34x_v20081215-1030/osgi-3.4.3.R34x_v20081215-1030.jar
> urls[20] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/jobs/3.3.0-v20070423/jobs-3.3.0-v20070423.jar
> urls[21] =
> file:/D:/Dev/.m2/repository/org/eclipse/equinox/registry/3.3.0-v20070522/registry-3.3.0-v20070522.jar
> urls[22] =
> file:/D:/Dev/.m2/repository/org/eclipse/equinox/preferences/3.2.100-v20070522/preferences-3.2.100-v20070522.jar
> urls[23] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/contenttype/3.2.100-v20070319/contenttype-3.2.100-v20070319.jar
> urls[24] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/filesystem/1.1.0-v20070606/filesystem-1.1.0-v20070606.jar
> urls[25] =
> file:/D:/Dev/.m2/repository/org/eclipse/text/3.3.0-v20070606-0010/text-3.3.0-v20070606-0010.jar
> urls[26] =
> file:/D:/Dev/.m2/repository/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar
> urls[27] =
> file:/D:/Dev/.m2/repository/org/eclipse/equinox/common/3.3.0-v20070426/common-3.3.0-v20070426.jar
> urls[28] = file:/D:/Dev/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar
> urls[29] = file:/D:/Dev/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
> urls[30] =
> file:/D:/Dev/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
> Number of foreign imports: 1
> import: Entry[import from realm ClassRealm[maven.api, parent: null]]
>
> -----------------------------------------------------
> (org.jibx:maven-jibx-plugin:1.2.2:schema-codegen:gencode:generate-sources)
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users