maybe org.glassfish.hk2:hk2-maven-plugin:1.6.18 is enough according to
Romain's patch on GLASSFISH-17285.
Thanks
--Tang
Tang Yong wrote:
> Hi Sahoo,
>
> Today, I updated fighterfish trunk and switched JDK 7.
> While building fighterfish using JDK 7, there is a fatal
> problem(seeing attachment(buildingerror_jdk7) in details) as following,
>
> "[INFO] --- hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) @
> osgi-javaee-base ---
> ...
> WARNING: Error injecting: com.sun.enterprise.module.maven.HK2CompileMojo
> java.lang.NoClassDefFoundError:
> com/sun/mirror/apt/AnnotationProcessorFactory
> ... "
>
> I investigated the error and searched JIRA[1],
> [1]: http://java.net/jira/browse/GLASSFISH-17329
>
> Then, I made a modification on fighterfish/module/parent-pom/pom.xml and
> replaced com.sun.enterprise:hk2-maven-plugin:1.1.0 with
> org.glassfish.hk2:hk2-maven-plugin:1.6.19, and re-built fighterfish
> sucessfully.
>
> So, although you need not switch to JDK 1.7, I suggest that team can
> confirm the issue.
>
> BTW: the attachment(pom.xml) is my modification of parent-pom/pom.xml.
>
> Thanks
> --Tang
>
>
>
> ------------------------------------------------------------------------
>
> D:\1214\fighterfish\module>mvn -DskipTests=true clean install
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:module-parent-pom:pom:1.0.5-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.glassfish.fighterfish:modules-build-aggregator instead of net.java:jvnet-parent, please verify your project structure @ line 36, column 10
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 212, column 33
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-javaee-base:hk2-jar:1.0.6-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.glassfish.fighterfish:modules-build-aggregator instead of org.glassfish.fighterfish:module-parent-pom, please verify your project structure @ line 46, column 13
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-http:hk2-jar:1.0.7-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-web-container:hk2-jar:1.0.6-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-ejb-container:hk2-jar:1.0.4-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-jdbc:hk2-jar:1.0.2-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-ee-resources:hk2-jar:1.0.2-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-jpa:hk2-jar:1.0.3-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-jpa-extension:hk2-jar:1.0.3-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-jta:hk2-jar:1.0.2-SNAPSHOT
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-cdi-api:jar:1.0.1-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.glassfish.fighterfish:modules-build-aggregator instead of org.glassfish.fighterfish:module-parent-pom, please verify your project structure @ line 46, column 13
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.glassfish.fighterfish:module-parent-pom:1.0.4, D:\gf\gflocalrepo\org\glassfish\fighterfish\module-parent-pom\1.0.4\module-parent-pom-1.0.4.pom, line 212, column 33
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:osgi-cdi:jar:1.0.4-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.glassfish.fighterfish:module-parent-pom:1.0.4, D:\gf\gflocalrepo\org\glassfish\fighterfish\module-parent-pom\1.0.4\module-parent-pom-1.0.4.pom, line 212, column 33
> [WARNING] The expression ${artifactId} is deprecated. Please use ${project.artifactId} instead.
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model for org.glassfish.fighterfish:modules-build-aggregator:pom:1.0.0-SNAPSHOT
> [WARNING] 'parent.relativePath' points at org.glassfish.fighterfish:build-aggregator instead of org.glassfish:pom, please verify your project structure @ line 51, column 13
> [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.glassfish:pom:8, D:\gf\gflocalrepo\org\glassfish\pom\8\pom-8.pom, line 102, column 21
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
> [WARNING]
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Parent POM for all FighterFish Modules
> [INFO] Base module for providing support for OSGi in Java EE applications
> [INFO] OSGi HTTP Service Implementation for GlassFish Web Container
> [INFO] GlassFish Web Container (rfc #66) for OSGi Enabled Web Applications
> [INFO] GlassFish EJB Container for OSGi Enabled EJB Applications
> [INFO] GlassFish JDBC Support (rfc #122) for OSGi Bundles
> [INFO] GlassFish Resources support for OSGi Bundles
> [INFO] GlassFish JPA Support (rfc #143) for OSGi Bundles
> [INFO] Support for JPA in Java SE mode usage from OSGi Bundles
> [INFO] OSGi/JTA implementation in GlassFish
> [INFO] Public API of GlassFish OSGi/CDI Extension - This is typically used for compilation purpose only
> [INFO] GlassFish CDI Support for OSGi Bundles
> [INFO] Build aggregator for various FighterFish modules
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Parent POM for all FighterFish Modules 1.0.5-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ module-parent-pom ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ module-parent-pom ---
> [INFO]
> [INFO] --- maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ module-parent-pom ---
> [WARNING] Ignoring project type pom - supportedProjectTypes = [hk2-jar, bundle]
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ module-parent-pom ---
> [INFO] Installing D:\1214\fighterfish\module\parent-pom\pom.xml to D:\gf\gflocalrepo\org\glassfish\fighterfish\module-parent-pom\1.0.5-SNAPSHOT\module-parent-pom-1.0.5-SNAPSHOT.pom
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Base module for providing support for OSGi in Java EE applications 1.0.6-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ osgi-javaee-base ---
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ osgi-javaee-base ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ osgi-javaee-base ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory D:\1214\fighterfish\module\osgi-javaee-base\src\main\resources
> [INFO]
> [INFO] --- hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) @ osgi-javaee-base ---
> 12 17, 2012 7:01:07 午後 org.sonatype.guice.bean.reflect.Logs$JULSink warn
> WARNING: Error injecting: com.sun.enterprise.module.maven.HK2CompileMojo
> java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
> at java.lang.Class.getDeclaredConstructors(Class.java:1853)
> at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245)
> at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:98)
> at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:629)
> at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:831)
> at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:758)
> at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:255)
> at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:204)
> at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:954)
> at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:987)
> at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:950)
> at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1000)
> at org.sonatype.guice.bean.reflect.AbstractDeferredClass.get(AbstractDeferredClass.java:45)
> at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:84)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:52)
> at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
> at org.sonatype.guice.plexus.lifecycles.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:138)
> at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:108)
> at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
> at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
> at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
> at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
> at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
> at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
> at com.google.inject.Scopes$1$1.get(Scopes.java:59)
> at org.sonatype.guice.bean.locators.LazyBeanEntry.getValue(LazyBeanEntry.java:83)
> at org.sonatype.guice.plexus.locators.LazyPlexusBean.getValue(LazyPlexusBean.java:49)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
> at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
> at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:455)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:92)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> 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:84)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: java.lang.ClassNotFoundException: com.sun.mirror.apt.AnnotationProcessorFactory
> at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
> at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
> ... 54 more
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Parent POM for all FighterFish Modules ............ SUCCESS [0.578s]
> [INFO] Base module for providing support for OSGi in Java EE applications FAILURE [0.500s]
> [INFO] OSGi HTTP Service Implementation for GlassFish Web Container SKIPPED
> [INFO] GlassFish Web Container (rfc #66) for OSGi Enabled Web Applications SKIPPED
> [INFO] GlassFish EJB Container for OSGi Enabled EJB Applications SKIPPED
> [INFO] GlassFish JDBC Support (rfc #122) for OSGi Bundles SKIPPED
> [INFO] GlassFish Resources support for OSGi Bundles ...... SKIPPED
> [INFO] GlassFish JPA Support (rfc #143) for OSGi Bundles . SKIPPED
> [INFO] Support for JPA in Java SE mode usage from OSGi Bundles SKIPPED
> [INFO] OSGi/JTA implementation in GlassFish .............. SKIPPED
> [INFO] Public API of GlassFish OSGi/CDI Extension - This is typically used for compilation purpose only SKIPPED
> [INFO] GlassFish CDI Support for OSGi Bundles ............ SKIPPED
> [INFO] Build aggregator for various FighterFish modules .. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1.875s
> [INFO] Finished at: Mon Dec 17 19:01:07 JST 2012
> [INFO] Final Memory: 8M/20M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal com.sun.enterprise:hk2-maven-plugin:1.1.0:hk2-compile (default-hk2-compile) on project osgi-javaee-base: Execution default-hk2-compile of goal com.sun.enterprise:hk2-maven-plugin:1.1.0:hk2-compile failed: A required class was missing while executing com.sun.enterprise:hk2-maven-plugin:1.1.0:hk2-compile: com/sun/mirror/apt/AnnotationProcessorFactor
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>com.sun.enterprise:hk2-maven-plugin:1.1.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/D:/gf/gflocalrepo/com/sun/enterprise/hk2-maven-plugin/1.1.0/hk2-maven-plugin-1.1.0.jar
> [ERROR] urls[1] = file:/D:/gf/gflocalrepo/com/sun/enterprise/hk2-maven/1.1.0/hk2-maven-1.1.0.jar
> [ERROR] urls[2] = file:/D:/gf/gflocalrepo/com/sun/enterprise/hk2-core/1.1.0/hk2-core-1.1.0.jar
> [ERROR] urls[3] = file:/D:/gf/gflocalrepo/org/glassfish/hk2/class-model/1.1.0/class-model-1.1.0.jar
> [ERROR] urls[4] = file:/D:/gf/gflocalrepo/org/apache/maven/maven-archiver/2.0.4/maven-archiver-2.0.4.jar
> [ERROR] urls[5] = file:/D:/gf/gflocalrepo/org/codehaus/plexus/plexus-archiver/1.0-alpha-4/plexus-archiver-1.0-alpha-4.jar
> [ERROR] urls[6] = file:/D:/gf/gflocalrepo/org/osgi/osgi_R4_core/1.0/osgi_R4_core-1.0.jar
> [ERROR] urls[7] = file:/D:/gf/gflocalrepo/com/sun/enterprise/hk2-dependency-verifier/1.1.0/hk2-dependency-verifier-1.1.0.jar
> [ERROR] urls[8] = file:/D:/gf/gflocalrepo/com/sun/enterprise/osgi-adapter/1.1.0/osgi-adapter-1.1.0.jar
> [ERROR] urls[9] = file:/D:/gf/gflocalrepo/org/apache/bcel/bcel/5.2/bcel-5.2.jar
> [ERROR] urls[10] = file:/D:/gf/gflocalrepo/jakarta-regexp/jakarta-regexp/1.4/jakarta-regexp-1.4.jar
> [ERROR] urls[11] = file:/D:/gf/gflocalrepo/com/sun/enterprise/test-harness/1.1.0/test-harness-1.1.0.jar
> [ERROR] urls[12] = file:/D:/gf/gflocalrepo/junit/junit/4.3.1/junit-4.3.1.jar
> [ERROR] urls[13] = file:/D:/gf/gflocalrepo/ant/ant/1.6.5/ant-1.6.5.jar
> [ERROR] urls[14] = file:/D:/gf/gflocalrepo/com/sun/istack/istack-commons-test/1.0/istack-commons-test-1.0.jar
> [ERROR] urls[15] = file:/D:/gf/gflocalrepo/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar
> [ERROR] urls[16] = file:/D:/gf/gflocalrepo/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
> [ERROR] urls[17] = file:/D:/gf/gflocalrepo/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
> [ERROR] urls[18] = file:/D:/gf/gflocalrepo/com/sun/enterprise/config-generator/1.1.0/config-generator-1.1.0.jar
> [ERROR] urls[19] = file:/D:/gf/gflocalrepo/com/sun/enterprise/config/1.1.0/config-1.1.0.jar
> [ERROR] urls[20] = file:/D:/gf/gflocalrepo/org/jvnet/tiger-types/1.2/tiger-types-1.2.jar
> [ERROR] urls[21] = file:/D:/gf/gflocalrepo/org/glassfish/hk2/external/bean-validator/1.1.0/bean-validator-1.1.0.jar
> [ERROR] urls[22] = file:/D:/gf/gflocalrepo/com/googlecode/jtype/jtype/0.1.0/jtype-0.1.0.jar
> [ERROR] urls[23] = file:/D:/gf/gflocalrepo/com/sun/xml/bind/jaxb-xjc/2.1.3/jaxb-xjc-2.1.3.jar
> [ERROR] urls[24] = file:/D:/gf/gflocalrepo/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1.3.jar
> [ERROR] urls[25] = file:/D:/gf/gflocalrepo/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar
> [ERROR] urls[26] = file:/D:/gf/gflocalrepo/javax/activation/activation/1.1/activation-1.1.jar
> [ERROR] urls[27] = file:/D:/gf/gflocalrepo/com/sun/xml/stream/sjsxp/1.0/sjsxp-1.0.jar
> [ERROR] urls[28] = file:/D:/gf/gflocalrepo/javax/xml/stream/stax-api/1.0/stax-api-1.0.jar
> [ERROR] urls[29] = file:/D:/gf/gflocalrepo/com/sun/enterprise/auto-depends-plugin/1.1.0/auto-depends-plugin-1.1.0.jar
> [ERROR] urls[30] = file:/D:/gf/gflocalrepo/com/sun/enterprise/auto-depends/1.1.0/auto-depends-1.1.0.jar
> [ERROR] urls[31] = file:/D:/gf/gflocalrepo/org/glassfish/hk2/external/asm-all-repackaged/1.1.0/asm-all-repackaged-1.1.0.jar
> [ERROR] urls[32] = file:/D:/gf/gflocalrepo/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar
> [ERROR] urls[33] = file:/D:/gf/gflocalrepo/org/codehaus/plexus/plexus-compiler-api/1.5.3/plexus-compiler-api-1.5.3.jar
> [ERROR] urls[34] = file:/D:/gf/gflocalrepo/org/codehaus/plexus/plexus-compiler-manager/1.5.3/plexus-compiler-manager-1.5.3.jar
> [ERROR] urls[35] = file:/D:/gf/gflocalrepo/org/codehaus/plexus/plexus-compiler-javac/1.5.3/plexus-compiler-javac-1.5.3.jar
> [ERROR] urls[36] = file:/D:/gf/gflocalrepo/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
> [ERROR] urls[37] = file:/D:/gf/gflocalrepo/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
> [ERROR] urls[38] = file:/D:/gf/gflocalrepo/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar
> [ERROR] urls[39] = file:/D:/gf/gflocalrepo/org/apache/maven/shared/maven-osgi/0.2.0/maven-osgi-0.2.0.jar
> [ERROR] urls[40] = file:/D:/gf/gflocalrepo/biz/aQute/bndlib/0.0.203/bndlib-0.0.203.jar
> [ERROR] Number of foreign imports: 1
> [ERROR] import: Entry[import from realm ClassRealm[project>org.glassfish.fighterfish:module-parent-pom:1.0.5-SNAPSHOT, parent: 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 :osgi-javaee-base
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
> Copyright (c) 2011-2012 Oracle and/or its affiliates. All rights reserved.
> The contents of this file are subject to the terms of either the
> GNU General Public License Version 2 only ("GPL") or
> the Common Development and Distribution License("CDDL")
> (collectively, the "License"). You may not use this file except in compliance
> with the License. You can obtain a copy of the License at
> https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
> or packager/legal/LICENSE.txt. See the License for the specific language
> governing permissions and limitations under the License. When distributing
> the software, include this License Header Notice in each file and include
> the License file at packager/legal/LICENSE.txt. GPL Classpath Exception:
> Oracle designates this particular file as subject to the "Classpath" exception
> as provided by Oracle in the GPL Version 2 section of the License file that
> accompanied this code. Modifications: If applicable, add the following below
> the License Header, with the fields enclosed by brackets [] replaced by your
> own identifying information: "Portions Copyright [year] [name of copyright
> owner]" Contributor(s): If you wish your version of this file to be governed
> by only the CDDL or only the GPL Version 2, indicate your decision by adding
> "[Contributor] elects to include this software in this distribution under
> the [CDDL or GPL Version 2] license." If you don't indicate a single choice
> of license, a recipient has the option to distribute your version of this
> file under either the CDDL, the GPL Version 2 or to extend the choice of
> license to its licensees as provided above. However, if you add GPL Version
> 2 code and therefore, elected the GPL Version 2 license, then the option
> applies only if the new code is made subject to such option by the copyright
> holder. -->
>
> <!-- A parent project inheritted by all FighterFish modules. This project
> is set up such that this pom can be released standalone. -->
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>net.java</groupId>
> <artifactId>jvnet-parent</artifactId>
> <version>3</version>
> </parent>
>
> <groupId>org.glassfish.fighterfish</groupId>
> <artifactId>module-parent-pom</artifactId>
> <version>1.0.5-SNAPSHOT</version>
> <packaging>pom</packaging>
> <name>Parent POM for all FighterFish Modules</name>
>
> <organization>
> <name>GlassFish Community</name>
> <url>http://glassfish.org</url>
> </organization>
> <licenses>
> <license>
> <name>CDDL + GPLv2 with classpath exception</name>
> <url>https://glassfish.dev.java.net/nonav/public/CDDL+GPL.html</url>
> <distribution>repo</distribution>
> <comments>A business-friendly OSS license</comments>
> </license>
> </licenses>
> <issueManagement>
> <system>jira</system>
> <url>http://java.net/jira/browse/glassfish</url>
> </issueManagement>
>
> <scm>
> <connection>scm:svn:https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/module/parent-pom</connection>
> <developerConnection>scm:svn:https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/module/parent-pom</developerConnection>
> <url>https://svn.java.net/svn/glassfish~svn/trunk/fighterfish/module/parent-pom
> </url>
> </scm>
>
> <developers>
> <developer>
> <id>sahoo</id>
> <name>Sahoo Sanjeeb</name>
> <url>http://www.java.net/blogs/ss141213/</url>
> <organization>Oracle Corporation</organization>
> <roles>
> <role>lead</role>
> </roles>
> </developer>
> </developers>
>
>
> <dependencyManagement>
> <dependencies>
> <dependency>
> <groupId>com.sun.enterprise</groupId>
> <artifactId>hk2-core</artifactId>
> <version>${hk2.version}</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.hk2</groupId>
> <artifactId>osgi-resource-locator</artifactId>
> <version>1.0.1</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.persistence</groupId>
> <artifactId>org.eclipse.persistence.jpa</artifactId>
> <version>${eclipselink.version}</version>
> </dependency>
> <dependency>
> <groupId>org.eclipse.persistence</groupId>
> <artifactId>javax.persistence</artifactId>
> <version>${javax-persistence-api.version}</version>
> </dependency>
> <dependency>
> <groupId>com.sun.faces</groupId>
> <artifactId>jsf-impl</artifactId>
> <version>${mojarra.version}</version>
> </dependency>
> <dependency>
> <groupId>com.sun.faces</groupId>
> <artifactId>jsf-api</artifactId>
> <version>${mojarra.version}</version>
> </dependency>
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>org.osgi.compendium</artifactId>
> <version>4.2.0</version>
> <!-- This jar should never be part of runtime. -->
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>org.osgi.core</artifactId>
> <version>4.2.0</version>
> <!-- This jar should never be part of runtime. -->
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.osgi</groupId>
> <artifactId>org.osgi.enterprise</artifactId>
> <version>4.2.0</version>
> <!-- This jar should never be part of runtime. -->
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.glassfish.common</groupId>
> <artifactId>glassfish-api</artifactId>
> <version>${glassfish.version}</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.common</groupId>
> <artifactId>internal-api</artifactId>
> <version>${glassfish.version}</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.deployment</groupId>
> <artifactId>deployment-common</artifactId>
> <version>${glassfish.version}</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.web</groupId>
> <artifactId>web-glue</artifactId>
> <version>${glassfish.version}</version>
> </dependency>
> <dependency>
> <groupId>org.glassfish.deployment</groupId>
> <artifactId>dol</artifactId>
> <version>${glassfish.version}</version>
> </dependency>
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-web-api</artifactId>
> <version>6.0</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.glassfish</groupId>
> <artifactId>javax.jms</artifactId>
> <version>${glassfish.version}</version>
> <scope>provided</scope>
> </dependency>
> <dependency>
> <groupId>org.glassfish</groupId>
> <artifactId>javax.transaction</artifactId>
> <version>${glassfish.version}</version>
> <scope>provided</scope>
> </dependency>
>
> </dependencies>
> </dependencyManagement>
> <build>
> <finalName>${artifactId}</finalName>
> <pluginManagement>
> <plugins>
> <!--Tang Yong Modify
> <plugin>
> <groupId>com.sun.enterprise</groupId>
> <artifactId>hk2-maven-plugin</artifactId>
> <version>${hk2.version}</version>
> </plugin>
> -->
> <plugin>
> <groupId>org.glassfish.hk2</groupId>
> <artifactId>hk2-maven-plugin</artifactId>
> <version>${hk2.plugin.version}</version>
> </plugin>
>
> <plugin>
> <groupId>com.sun.enterprise</groupId>
> <artifactId>osgiversion-maven-plugin</artifactId>
> <version>${hk2.version}</version>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>2.0.1</version>
> </plugin>
>
> </plugins>
> </pluginManagement>
> <plugins>
> <!--
> Needed for those artifacts that don't use hk2-jar packaging.
> e.g., osgi-cdi-api, osgi-cdi.
> -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> <!-- Configure maven-bundle-plugin to generate OSGi manifest. Please note:
> we use the manifest goal only and not the bundle goal. The bundle goal can
> lead to very surprising results if the package names are not correctly specified.
> So, we use the jar plugin to generate the jar. -->
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <configuration>
> <!-- By default, we don't export anything. -->
> <Export-Package />
> <!-- Since, we are in a top level pom and we we don't want it to be
> active for plain jar type artifacts, enable the plugin for hk2-jar and bundle
> packaging type only, -->
> <supportedProjectTypes>
> <supportedProjectType>hk2-jar</supportedProjectType>
> <supportedProjectType>bundle</supportedProjectType>
> </supportedProjectTypes>
> <instructions>
> <!-- Read all the configuration from osgi.bundle file, if it exists.
> See Felix-699 to find out why we use ${basedir}. -->
> <_include>-${basedir}/osgi.bundle</_include>
> </instructions>
> </configuration>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>process-classes</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <!--Tang Yong Modify
> <groupId>com.sun.enterprise</groupId>
> -->
> <groupId>org.glassfish.hk2</groupId>
> <artifactId>hk2-maven-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <archive>
> <!-- Use the manifest.mf produced by maven-bundle-plugin:manifest -->
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF
> </manifestFile>
> </archive>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-release-plugin</artifactId>
> <configuration>
> <mavenExecutorId>forked-path</mavenExecutorId>
> <useReleaseProfile>false</useReleaseProfile>
> <arguments>${release.arguments}</arguments>
> </configuration>
> </plugin>
> </plugins>
>
> </build>
> <properties>
> <glassfish.version>3.1-b41</glassfish.version>
> <hk2.version>1.1.0</hk2.version>
> <!-- Tang Yong Added-->
> <hk2.plugin.version>1.6.19</hk2.plugin.version>
>
> <eclipselink.version>2.2.0</eclipselink.version>
> <mojarra.version>2.1.0-b11</mojarra.version>
> <javax-persistence-api.version>2.0.3</javax-persistence-api.version>
> </properties>
> <repositories>
> <!--
> This is where some additional GlassFish specific dependencies exist. Although we don't
> use any of the artifacts from this repo directly, some of our dependencies depend on eclipselink and netbeans
> artifacts which come from these repositories. Unless this is added, build will fail to locate those transtive
> dependencies. Earlier we were able to work around this by just adding the public glassfish nexus repo, but
> since that's no longer available, we are having to add all these repos in our list of repos.
> -->
> <repository>
> <id>eclipselink.repository</id>
> <name>Eclipse Maven Repository</name>
> <url>http://download.eclipse.org/rt/eclipselink/maven.repo/</url>
> <releases>
> <enabled>true</enabled>
> </releases>
> <snapshots>
> <enabled>false</enabled>
> <updatePolicy>never</updatePolicy>
> </snapshots>
> </repository>
> <repository>
> <id>netbeans.repository</id>
> <name>NetBeans Maven Repository</name>
> <releases>
> <enabled>true</enabled>
> </releases>
> <snapshots>
> <enabled>false</enabled>
> <updatePolicy>never</updatePolicy>
> </snapshots>
> <url>http://dev.nightlabs.org/maven-repository/repo/</url>
> <layout>default</layout>
> </repository>
>
> </repositories>
>
> </project>
>