This is probably something I am going wrong, however, I'm trying to build GF-4 / trunk on Mac OS X 10.8.1 w/Oracle JDK 1.7.0_07 and Maven 3.0.3 following the instructions here [1] and getting the following errors (theres more of these but I truncated it). Thoughts would be appreciated.
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ security-services ---
[INFO] Installing /Users/noah/Development/sandbox/glassfish/main/nucleus/security/services/target/security-services.jar to /Users/noah/.m2/repository/org/glassfish/main/security/security-services/4.0-SNAPSHOT/security-services-4.0-SNAPSHOT.jar
[INFO] Installing /Users/noah/Development/sandbox/glassfish/main/nucleus/security/services/pom.xml to /Users/noah/.m2/repository/org/glassfish/main/security/security-services/4.0-SNAPSHOT/security-services-4.0-SNAPSHOT.pom
[INFO] Installing /Users/noah/Development/sandbox/glassfish/main/nucleus/security/services/target/security-services-sources.jar to /Users/noah/.m2/repository/org/glassfish/main/security/security-services/4.0-SNAPSHOT/security-services-4.0-SNAPSHOT-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building admin-util 4.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- glassfishbuild-maven-plugin:3.2.3:echo (echo) @ admin-util ---
[INFO] ------------------------------------------------------------------------
[INFO] Building in /Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-maven) @ admin-util ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (enforce-versions) @ admin-util ---
[INFO]
[INFO] --- osgiversion-maven-plugin:2.1.28:compute-osgi-version (compute-osgi-version) @ admin-util ---
[INFO]
[INFO] --- maven-dependency-plugin:2.4:build-classpath (default) @ admin-util ---
[INFO]
[INFO] --- config-generator:2.1.28:generateInjectors (default) @ admin-util ---
warning: The apt tool and its associated API are planned to be
removed in the next major JDK release. These features have been
superseded by javac and the standardized annotation processing API,
javax.annotation.processing and javax.lang.model. Users are
recommended to migrate to the annotation processing features of
javac; see the javac man page for more information.
warning: Annotation types without processors: org.jvnet.hk2.annotations.Service,org.glassfish.hk2.api.PerLookup,org.glassfish.api.I18n,org.glassfish.api.admin.ExecuteOn,org.glassfish.config.support.TargetType,org.glassfish.api.admin.RestParam,org.glassfish.api.admin.RestEndpoint,org.glassfish.api.admin.RestEndpoints,org.glassfish.api.Param,javax.inject.Inject,javax.inject.Named,org.jvnet.hk2.annotations.Contract,java.lang.Override,javax.ws.rs.ext.Provider,javax.ws.rs.Consumes,javax.ws.rs.Produces,javax.inject.Singleton,org.glassfish.logging.annotation.LoggerInfo,org.glassfish.logging.annotation.LogMessagesResourceBundle,org.jvnet.hk2.annotations.ContractsProvided,org.jvnet.hk2.annotations.Optional,org.glassfish.hk2.runlevel.RunLevel,Scoped,Inject,org.glassfish.api.admin.CommandLock
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 warning
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ admin-util ---
[INFO] Source directory: /Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util/target/generated-sources/hk2-config-generator/src/main/java added.
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ admin-util ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ admin-util ---
[INFO] Compiling 100 source files to /Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util/src/main/java/org/glassfish/admin/cli/resources/ResourceUtil.java:[46,32] error: cannot find symbol
[ERROR] symbol: class Inject
location: package org.jvnet.hk2.annotations
/Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util/src/main/java/org/glassfish/admin/cli/resources/ResourceFactory.java:[46,32] error: cannot find symbol
[ERROR] symbol: class Inject
location: package org.jvnet.hk2.annotations
/Users/noah/Development/sandbox/glassfish/main/nucleus/admin/util/src/main/java/org/glassfish/admin/cli/resources/ResourceFactory.java:[47,32] error: cannot find symbol
[ERROR] symbol: class Scoped
location: package org.jvnet.hk2.annotations
Thanks,
-Noah
[1] -
https://wikis.oracle.com/display/GlassFish/FullBuildInstructions