[hibernate-dev] [Validator] Build problems!?

Gunnar Morling gunnar at hibernate.org
Tue Apr 21 05:16:33 EDT 2015


Ah, you may be running into this issue:
https://jira.codehaus.org/browse/MCOMPILER-236 ("Compilation error due to
MCOMPILER-157 in deploy phase").

Setting useIncrementalCompilation=false is named as a work-around there.
Either that or using the annotation-plugin as I described probably both
should do the trick.

2015-04-21 11:12 GMT+02:00 Sanne Grinovero <sanne at hibernate.org>:

> Interesting, an exception in the compiler?!
> I'll try it too, but could you try a more up to date JDK?
>
> On 21 April 2015 at 09:41, Hardy Ferentschik <hardy at hibernate.org> wrote:
> > Hi,
> >
> > I seem to have a odd build problem and wondering whether someone could
> verify the problem
> > or in any ways enlighten me regarding what's going on.
> >
> > I can build the Validator master branch w/o problem ('mvn clean
> install'), but a 'mvn deploy' (SNAPSHOT deploy)
> > fails (output below). The funny thing is that the failure seems to occur
> during the main
> > compilation task which seems odd, since the classes compile fine when
> using the 'install' target.
> > It might be related to the fact that a 'deploy' enables different
> profiles/settings, but a start
> > would be to figure out whether others have the same problem.
> >
> > -- Hardy
> >
> > P.S.: The Cloudbees HV-5.2-SNAPSHOT-DEPLOY job recently also fails
> erratically. It might be the same problem.
> >
> >>>>>
> > mvn deploy
> > [INFO] Scanning for projects...
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Reactor Build Order:
> > [INFO]
> > [INFO] Hibernate Validator Aggregator
> > [INFO] Hibernate Validator Test Utils
> > [INFO] Hibernate Validator Engine
> > [INFO] Hibernate Validator Engine JDK 1.8 Tests
> > [INFO] Hibernate Validator Portable Extension
> > [INFO] Hibernate Validator TCK Runner
> > [INFO] Hibernate Validator Wildfly Integration Tests
> > [INFO] Hibernate Validator Annotation Processor
> > [INFO] Hibernate Validator Performance Tests
> > [INFO] Hibernate Validator OSGi Modules
> > [INFO] Hibernate Validator Karaf Features
> > [INFO] Hibernate Validator OSGi integration test
> > [INFO] Hibernate Validator Manual
> > [INFO] Hibernate Validator Distribution
> > [INFO]
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Building Hibernate Validator Aggregator 5.2.0-SNAPSHOT
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-java) @
> hibernate-validator-parent ---
> > [INFO]
> > [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> hibernate-validator-parent ---
> > [INFO] Installing
> /Users/hardy/work/hibernate/git/beanvalidation/validator/pom.xml to
> /Users/hardy/tmp/m2/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/hibernate-validator-parent-5.2.0-SNAPSHOT.pom
> > [INFO]
> > [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @
> hibernate-validator-parent ---
> > Downloading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/maven-metadata.xml
> > Downloaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/maven-metadata.xml
> (620 B at 0.3 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/hibernate-validator-parent-5.2.0-20150421.083018-230.pom
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/hibernate-validator-parent-5.2.0-20150421.083018-230.pom
> (33 KB at 8.2 KB/sec)
> > Downloading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/maven-metadata.xml
> > Downloaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/maven-metadata.xml
> (839 B at 0.9 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/maven-metadata.xml
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/5.2.0-SNAPSHOT/maven-metadata.xml
> (620 B at 0.3 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/maven-metadata.xml
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-parent/maven-metadata.xml
> (839 B at 0.5 KB/sec)
> > [INFO]
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Building Hibernate Validator Test Utils 5.2.0-SNAPSHOT
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-java) @
> hibernate-validator-test-utils ---
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> hibernate-validator-test-utils ---
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] skip non existing resourceDirectory
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/src/main/resources
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
> hibernate-validator-test-utils ---
> > [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 11 source files to
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/target/classes
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.6:testResources
> (default-testResources) @ hibernate-validator-test-utils ---
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] skip non existing resourceDirectory
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/src/test/resources
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
> hibernate-validator-test-utils ---
> > [INFO] No sources to compile
> > [INFO]
> > [INFO] --- maven-surefire-plugin:2.15:test (default-test) @
> hibernate-validator-test-utils ---
> > [INFO] No tests to run.
> > [INFO]
> > [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @
> hibernate-validator-test-utils ---
> > [INFO] Building jar:
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/target/hibernate-validator-test-utils-5.2.0-SNAPSHOT.jar
> > [INFO]
> > [INFO] --- maven-checkstyle-plugin:2.14:checkstyle (check-style) @
> hibernate-validator-test-utils ---
> > [INFO] Starting audit...
> > Audit done.
> > [WARNING] Unable to locate Source XRef to link to - DISABLED
> > [INFO]
> > [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> hibernate-validator-test-utils ---
> > [INFO] Installing
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/target/hibernate-validator-test-utils-5.2.0-SNAPSHOT.jar
> to
> /Users/hardy/tmp/m2/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-SNAPSHOT.jar
> > [INFO] Installing
> /Users/hardy/work/hibernate/git/beanvalidation/validator/test-utils/pom.xml
> to
> /Users/hardy/tmp/m2/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-SNAPSHOT.pom
> > [INFO]
> > [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @
> hibernate-validator-test-utils ---
> > Downloading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/maven-metadata.xml
> > Downloaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/maven-metadata.xml
> (1007 B at 1.1 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-20150421.083030-5.jar
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-20150421.083030-5.jar
> (27 KB at 13.9 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-20150421.083030-5.pom
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/hibernate-validator-test-utils-5.2.0-20150421.083030-5.pom
> (2 KB at 1.4 KB/sec)
> > Downloading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/maven-metadata.xml
> > Downloaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/maven-metadata.xml
> (303 B at 0.3 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/maven-metadata.xml
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/5.2.0-SNAPSHOT/maven-metadata.xml
> (1007 B at 0.8 KB/sec)
> > Uploading:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/maven-metadata.xml
> > Uploaded:
> https://repository.jboss.org/nexus/content/repositories/snapshots/org/hibernate/hibernate-validator-test-utils/maven-metadata.xml
> (303 B at 0.2 KB/sec)
> > [INFO]
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Building Hibernate Validator Engine 5.2.0-SNAPSHOT
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO]
> > [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-java) @
> hibernate-validator ---
> > [INFO]
> > [INFO] --- jaxb2-maven-plugin:1.3.1:xjc (default) @ hibernate-validator
> ---
> > [INFO] No changes detected in schema or binding files, skipping source
> generation.
> > [INFO]
> > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
> hibernate-validator ---
> > [INFO] Using 'UTF-8' encoding to copy filtered resources.
> > [INFO] Copying 13 resources
> > [INFO] Copying 4 resources to META-INF
> > [INFO]
> > [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @
> hibernate-validator ---
> > [INFO] Changes detected - recompiling the module!
> > [INFO] Compiling 367 source files to
> /Users/hardy/work/hibernate/git/beanvalidation/validator/engine/target/classes
> > An exception has occurred in the compiler (1.8.0_25). Please file a bug
> at the Java Developer Connection (http://java.sun.com/webapps/bugreport)
> after checking the Bug Parade for duplicates. Include your program and the
> following diagnostic in your report.  Thank you.
> > java.lang.IllegalStateException: endPosTable already set
> >         at
> com.sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.java:136)
> >         at com.sun.tools.javac.util.Log.setEndPosTable(Log.java:350)
> >         at
> com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:667)
> >         at
> com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
> >         at
> com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:892)
> >         at
> com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921)
> >         at
> com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187)
> >         at
> com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
> >         at
> com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
> >         at com.sun.tools.javac.main.Main.compile(Main.java:523)
> >         at
> com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
> >         at
> com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
> >         at
> org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
> >         at
> org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
> >         at
> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:823)
> >         at
> org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
> >         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> >         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> >         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> >         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> >         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> >         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
> >         at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> >         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
> >         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
> >         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> >         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >         at java.lang.reflect.Method.invoke(Method.java:483)
> >         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> >         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> >         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> >         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR] An unknown compilation problem occurred
> > [INFO] 1 error
> > [INFO] -------------------------------------------------------------
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Reactor Summary:
> > [INFO]
> > [INFO] Hibernate Validator Aggregator ..................... SUCCESS [
> 11.399 s]
> > [INFO] Hibernate Validator Test Utils ..................... SUCCESS [
> 10.637 s]
> > [INFO] Hibernate Validator Engine ......................... FAILURE [
> 1.835 s]
> > [INFO] Hibernate Validator Engine JDK 1.8 Tests ........... SKIPPED
> > [INFO] Hibernate Validator Portable Extension ............. SKIPPED
> > [INFO] Hibernate Validator TCK Runner ..................... SKIPPED
> > [INFO] Hibernate Validator Wildfly Integration Tests ...... SKIPPED
> > [INFO] Hibernate Validator Annotation Processor ........... SKIPPED
> > [INFO] Hibernate Validator Performance Tests .............. SKIPPED
> > [INFO] Hibernate Validator OSGi Modules ................... SKIPPED
> > [INFO] Hibernate Validator Karaf Features ................. SKIPPED
> > [INFO] Hibernate Validator OSGi integration test .......... SKIPPED
> > [INFO] Hibernate Validator Manual ......................... SKIPPED
> > [INFO] Hibernate Validator Distribution ................... SKIPPED
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 24.389 s
> > [INFO] Finished at: 2015-04-21T10:30:39+02:00
> > [INFO] Final Memory: 34M/374M
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
> (default-compile) on project hibernate-validator: Compilation failure
> > [ERROR] An unknown compilation problem occurred
> > [ERROR] -> [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.
> >
> >
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list