Uploaded image for project: 'Dev - Nexus'
  1. Dev - Nexus
  2. NEXUS-4516

Cannot build Nexus with Diablo JDK 6 (non-Oracle JDKs)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.2.2
    • Fix Version/s: None
    • Component/s: Build
    • Labels:
      None
    • Environment:

      Description

      I am not able to build Nexus which a non-Oracle JDK because Nexus and Enunciate use internal Sun APIs.

      this is the error message:

      Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs (default) on project nexus-rest-api: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs: com/sun/mirror/apt/AnnotationProcessorFactory
      

      In detail:

      [INFO] --- maven-enunciate-plugin:1.20-SONATYPE-r919:docs (default) @ nexus-rest-api ---
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Nexus : Runtime Platform .......................... SUCCESS [1.596s]
      [INFO] Nexus : Parent .................................... SUCCESS [1.976s]
      [INFO] Nexus ............................................. SUCCESS [0.248s]
      [INFO] Nexus : Utilities ................................. SUCCESS [1.077s]
      [INFO] Nexus : Test ...................................... SUCCESS [0.702s]
      [INFO] Nexus : Test : Common ............................. SUCCESS [1.235s]
      [INFO] Nexus : API ....................................... SUCCESS [3.626s]
      [INFO] Nexus : Plugins ................................... SUCCESS [0.744s]
      [INFO] Nexus : Plugins : Plugin API ...................... SUCCESS [0.313s]
      [INFO] Nexus : Configuration ............................. SUCCESS [13.589s]
      [INFO] Nexus : Plugins : Manager ......................... SUCCESS [0.332s]
      [INFO] Nexus : Logging Extras ............................ SUCCESS [1.898s]
      [INFO] Nexus : OSS Edition ............................... SUCCESS [0.319s]
      [INFO] Nexus : Proxy ..................................... SUCCESS [6.078s]
      [INFO] Nexus : Application ............................... SUCCESS [8.666s]
      [INFO] Nexus : Web Utils ................................. SUCCESS [0.327s]
      [INFO] Nexus : Core Rest API ............................. FAILURE [4.038s]
      [INFO] Nexus : Plugins : Plugin Test API ................. SKIPPED
      [INFO] Nexus : Distros ................................... SUCCESS [0.749s]
      [INFO] Nexus : Distros : Distribution Archives ........... SUCCESS [0.219s]
      [INFO] Nexus : Distros : Distribution Archives : Core CAR  SUCCESS [1.691s]
      [INFO] Nexus : Core Plugins .............................. SUCCESS [0.750s]
      [INFO] Nexus : Core Plugins : Indexer Lucene ............. SKIPPED
      [INFO] Nexus : Core Plugins : LVO Plugin ................. SKIPPED
      [INFO] Nexus : Core Plugins : Plugin Console ............. SKIPPED
      [INFO] Nexus : Core Plugins : Core Documentation ......... SKIPPED
      [INFO] Nexus : Core Plugins : OSS LDAP ................... SUCCESS [0.222s]
      [INFO] Nexus : Core Plugins : OSS LDAP : Common .......... SUCCESS [6.647s]
      [INFO] Nexus : Core Plugins : OSS LDAP : LDAP Plugin ..... SKIPPED
      [INFO] Nexus : Core Plugins : Capabilities ............... SKIPPED
      [INFO] Nexus : Core Plugins : Remote Repository Browsing . SKIPPED
      [INFO] Nexus : Core Plugins : Maven Archetype Catalog .... SKIPPED
      [INFO] Nexus : Clients ................................... SUCCESS [0.736s]
      [INFO] Nexus : Clients : Java REST ....................... SKIPPED
      [INFO] Nexus : Test Harness .............................. SUCCESS [0.745s]
      [INFO] Nexus : Test Harness : Helper Plugin .............. SKIPPED
      [INFO] Nexus : Test Harness : Test Harness Launcher ...... SKIPPED
      [INFO] Nexus : Core Plugins : Groovy Console ............. SKIPPED
      [INFO] Nexus : Web Application frontend (WAR and ITAR) ... SKIPPED
      [INFO] Nexus : Distros : Distribution Archives : IoC ITAR  SUCCESS [1.822s]
      [INFO] Nexus : Distros : Nexus OSS Bundle ................ SKIPPED
      [INFO] Nexus : Mock Application Frontend ................. SKIPPED
      [INFO] Nexus : Migration Tools ........................... SUCCESS [0.751s]
      [INFO] Nexus : Migration Tools : Repository Conversion ... SUCCESS [2.683s]
      [INFO] Nexus : Migration Tools : Maven Metadata Rebuild .. SUCCESS [7.052s]
      [INFO] Nexus : Core Plugins : OSS LDAP : Plugin ITs ...... SKIPPED
      [INFO] Nexus : Clients : Lightweight REST ................ SUCCESS [0.228s]
      [INFO] Nexus : Clients : Lightweight REST : Common ....... SUCCESS [1.515s]
      [INFO] Nexus : Clients : Lightweight REST : ITs .......... SUCCESS [0.600s]
      [INFO] Nexus : Clients : Lightweight REST : Staging/BP ... SUCCESS [1.019s]
      [INFO] Nexus : Clients : Lightweight REST : M2 Settings .. SUCCESS [1.005s]
      [INFO] Nexus : Clients : Lightweight REST : Core ......... SUCCESS [1.013s]
      [INFO] Nexus : Stories ................................... SUCCESS [1.072s]
      [INFO] Nexus : Test Harness : Core ITs ................... SKIPPED
      [INFO] Nexus : Aggregator ................................ SUCCESS [0.266s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 43.637s (Wall Clock)
      [INFO] Finished at: Tue Aug 30 13:04:49 CEST 2011
      [INFO] Final Memory: 42M/124M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs (default) on project nexus-rest-api: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs failed: A required class was missing while executing org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919:docs: com/sun/mirror/apt/AnnotationProcessorFactory
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.codehaus.enunciate:maven-enunciate-plugin:1.20-SONATYPE-r919
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/maven-enunciate-plugin/1.20-SONATYPE-r919/maven-enunciate-plugin-1.20-SONATYPE-r919.jar
      [ERROR] urls[1] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-docs/1.20/enunciate-docs-1.20.jar
      [ERROR] urls[2] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/maven-enunciate-slim-plugin/1.20-SONATYPE-r919/maven-enunciate-slim-plugin-1.20-SONATYPE-r919.jar
      [ERROR] urls[3] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/plugins/maven-install-plugin/2.3/maven-install-plugin-2.3.jar
      [ERROR] urls[4] = file:/net/home/osipovmi/.m2/repository/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
      [ERROR] urls[5] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/plugins/maven-deploy-plugin/2.3/maven-deploy-plugin-2.3.jar
      [ERROR] urls[6] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.0-beta-1/enforcer-api-1.0-beta-1.jar
      [ERROR] urls[7] = file:/net/home/osipovmi/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
      [ERROR] urls[8] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar
      [ERROR] urls[9] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
      [ERROR] urls[10] = file:/net/home/osipovmi/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
      [ERROR] urls[11] = file:/net/home/osipovmi/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
      [ERROR] urls[12] = file:/net/home/osipovmi/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
      [ERROR] urls[13] = file:/net/home/osipovmi/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.6/plexus-interpolation-1.6.jar
      [ERROR] urls[14] = file:/net/home/osipovmi/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
      [ERROR] urls[15] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-core/1.20/enunciate-core-1.20.jar
      [ERROR] urls[16] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-core-rt/1.20/enunciate-core-rt-1.20.jar
      [ERROR] urls[17] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-core-annotations/1.20/enunciate-core-annotations-1.20.jar
      [ERROR] urls[18] = file:/net/home/osipovmi/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
      [ERROR] urls[19] = file:/net/home/osipovmi/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar
      [ERROR] urls[20] = file:/net/home/osipovmi/.m2/repository/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar
      [ERROR] urls[21] = file:/net/home/osipovmi/.m2/repository/net/sf/apt-jelly/apt-jelly-freemarker/2.9/apt-jelly-freemarker-2.9.jar
      [ERROR] urls[22] = file:/net/home/osipovmi/.m2/repository/net/sf/apt-jelly/apt-jelly-core/2.9/apt-jelly-core-2.9.jar
      [ERROR] urls[23] = file:/net/home/osipovmi/.m2/repository/org/freemarker/freemarker/2.3.14/freemarker-2.3.14.jar
      [ERROR] urls[24] = file:/net/home/osipovmi/.m2/repository/commons-digester/commons-digester/1.7/commons-digester-1.7.jar
      [ERROR] urls[25] = file:/net/home/osipovmi/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
      [ERROR] urls[26] = file:/net/home/osipovmi/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
      [ERROR] urls[27] = file:/net/home/osipovmi/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.5.2/jackson-mapper-asl-1.5.2.jar
      [ERROR] urls[28] = file:/net/home/osipovmi/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.5.2/jackson-core-asl-1.5.2.jar
      [ERROR] urls[29] = file:/net/home/osipovmi/.m2/repository/org/jdom/jdom/1.1/jdom-1.1.jar
      [ERROR] urls[30] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-top/1.20/enunciate-top-1.20.jar
      [ERROR] urls[31] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-support/1.20/enunciate-jaxws-support-1.20.jar
      [ERROR] urls[32] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-ri/1.20/enunciate-jaxws-ri-1.20.jar
      [ERROR] urls[33] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-jersey/1.20/enunciate-jersey-1.20.jar
      [ERROR] urls[34] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-jersey-rt/1.20/enunciate-jersey-rt-1.20.jar
      [ERROR] urls[35] = file:/net/home/osipovmi/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.5.2/jackson-jaxrs-1.5.2.jar
      [ERROR] urls[36] = file:/net/home/osipovmi/.m2/repository/org/codehaus/jackson/jackson-xc/1.5.2/jackson-xc-1.5.2.jar
      [ERROR] urls[37] = file:/net/home/osipovmi/.m2/repository/com/sun/jersey/jersey-server/1.2/jersey-server-1.2.jar
      [ERROR] urls[38] = file:/net/home/osipovmi/.m2/repository/com/sun/jersey/jersey-core/1.2/jersey-core-1.2.jar
      [ERROR] urls[39] = file:/net/home/osipovmi/.m2/repository/asm/asm/3.1/asm-3.1.jar
      [ERROR] urls[40] = file:/net/home/osipovmi/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
      [ERROR] urls[41] = file:/net/home/osipovmi/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.11/jaxb-impl-2.1.11.jar
      [ERROR] urls[42] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-xml/1.20/enunciate-xml-1.20.jar
      [ERROR] urls[43] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-jaxws-client/1.20/enunciate-jaxws-client-1.20.jar
      [ERROR] urls[44] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-c/1.20/enunciate-c-1.20.jar
      [ERROR] urls[45] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-obj-c/1.20/enunciate-obj-c-1.20.jar
      [ERROR] urls[46] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-csharp/1.20/enunciate-csharp-1.20.jar
      [ERROR] urls[47] = file:/net/home/osipovmi/.m2/repository/org/codehaus/enunciate/enunciate-ruby/1.20/enunciate-ruby-1.20.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR]
      [ERROR] -----------------------------------------------------: com.sun.mirror.apt.AnnotationProcessorFactory
      [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.
      [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/PluginContainerException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR]   mvn <goals> -rf :nexus-rest-api
      

      I started digging and found this question on stackoverflow. Moreover, another thread directly on the enunciate-user mailinglist with build problems on MacOS X and OpenJDK.

      There seems to be a separate JAR for the APT mirror api. Maybe it could be included in a profile.

        Attachments

        1. clean.log
          80 kB
        2. install.log
          221 kB
        3. quick.log
          124 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              michael-o Michael Osipov
              Last Updated By:
              Rich Seddon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: