users@glassfish.java.net

Re: Glassfish v3 build failed

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Mon, 14 Dec 2009 05:09:35 -0800

xuqingkang2 wrote:
> Hi:
> I failed to rebuild Glassfish v3 according to
> http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions.
> My maven is2.1.0 and my JDK is 1.6.0_10.
> When i "mvn -U install",build process break off due to following error*.
> any idea will be appreciated.
> BTW,I had a look at "v3\packager\glassfish-gui\build.xml" from line 41,
> Should iuse the "excludeArtifactsTransitively".
> ----
> <resolveAll todir="target/stage/${install.dir.name}/glassfish/modules"
> stripVersion="true">
> <graphRef refid="all-modules"/>
> <!--excludeArtifactsTransitively>
> <artifact groupID="com.sun.woodstock.dependlibs"
> artifactId="dataprovider" />
> <artifact groupID="com.sun.woodstock" artifactId="webui-jsf" />
> <artifact groupID="com.sun.woodstock" artifactId="webui-jsf-suntheme" />
> </excludeArtifactsTransitively-->
> </resolveAll>
> -------
Your build is failing because you have modified the build.xml file.
Why are you doing this? I'd advice you to not modify anything in the
packager module. Since modifying the packager module may cause unwanted
artifacts or even duplicate ones with different versions in the
GlassFish distribution.

Thanks,
Jane

> *error message
> ----------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Glassfish Admin GUI Package
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] snapshot org.glassfish.packager:glassfish-jdbc:3.1-SNAPSHOT:
> checking fo
> updates from glassfish-repo-archive
> [INFO] snapshot
> org.glassfish.admingui:console-updatecenter-plugin:3.1-SNAPSHOT
> checking for updates from glassfish-repo-archive
> [INFO] snapshot
> org.glassfish.admingui:console-community-branding-plugin:3.1-SN
> PSHOT: checking for updates from glassfish-repo-archive
> [INFO] [enforcer:enforce {execution: enforce-versions}]
> [INFO] [osgiversion:compute-osgi-version {execution:
> compute-osgi-version}]
> [INFO] [clean:clean {execution: auto-clean}]
> [INFO] Deleting file set:
> E:\NetResource\JavaEE\glassfish\v3\packager\glassfish
> gui\target (included: [**], excluded: [! ])
> [INFO] [resources:resources]
> [WARNING] Using platform encoding (GBK actually) to copy filtered
> resources, i.
> . build is platform dependent!
> [INFO] Copying 1 resource
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> [WARNING] Ignoring project type distribution-base-zip -
> supportedProjectTypes =
> [hk2-jar, bundle]
> [INFO] [hk2:hk2-test-compile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [antrun-extended:run]
> [INFO] Executing tasks
>
> create.package:
> Failed to parse dependencies of com.sun.woodstock:webui-jsf:null.
> trail=[org.gl
> ssfish.packager:glassfish-gui:3.1-SNAPSHOT--(compile)-->org.glassfish.admingui:
> onsole-community-branding-plugin:3.1-SNAPSHOT,
> org.glassfish.admingui:console-c
> mmunity-branding-plugin:3.1-SNAPSHOT--(provided)-->com.sun.woodstock:webui-jsf-
> untheme:4.0.2.3,
> com.sun.woodstock:webui-jsf-suntheme:4.0.2.3--(compile)-->com.
> un.woodstock:webui-jsf:4.0.2.3]
> Downloading:
> http://maven.glassfish.org/content/groups/glassfish/javax/servlet/
> sp/jstl/jstl/1.1/jstl-1.1.pom
> [INFO] Unable to find resource 'javax.servlet.jsp.jstl:jstl:pom:1.1'
> in reposit
> ry glassfish-repo-archive
> (http://maven.glassfish.org/content/groups/glassfish)
> Downloading:
> http://repo1.maven.org/maven2/javax/servlet/jsp/jstl/jstl/1.1/jstl
> <http://repo1.maven.org/maven2/javax/servlet/jsp/jstl/jstl%21%0A%20/1.1/jstl>
> 1.1.pom
> [INFO] Unable to find resource 'javax.servlet.jsp.jstl:jstl:pom:1.1'
> in reposit
> ry central (http://repo1.maven.org/maven2)
> Overriding previous definition of reference to all-modules
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: The following error occurred
> while ex
> cuting this line:
> E:\NetResource\JavaEE\glassfish\v3\packager\glassfish-gui\build.xml:41:
> org.apa
> he.maven.project.ProjectBuildingException: Failed to parse
> dependencies of com.
> un.woodstock:webui-jsf:null.
> trail=[org.glassfish.packager:glassfish-gui:3.1-SN
> PSHOT--(compile)-->org.glassfish.admingui:console-community-branding-plugin:3.1
> SNAPSHOT, org.glassfish.admin!
> gui:console-community-branding-plugin:3.1-SNAPSHOT
> -(provided)--> ;com.sun.woodstock:webui-jsf-suntheme:4.0.2.3,
> com.sun.woodstock:w
> bui-jsf-suntheme:4.0.2.3--(compile)-->com.sun.woodstock:webui-jsf:4.0.2.3]
> for
> roject com.sun.woodstock:webui-jsf:null
>
> Not a v4.0.0 POM. for project commons-collections:commons-collections
> at C:\Doc
> ments and
> Settings\Administrator\.m2\repository\commons-collections\commons-col
> ections\2.1\commons-collections-2.1.pom
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 15 minutes 18 seconds
> [INFO] Finished at: Sun Dec 13 15:25:18 CST 2009
> [INFO] Final Memory: 161M/288M
> [INFO]
> ------------------------------------------------------------------------
> E:\NetResource\JavaEE\glassfish\v3>
>
>
>
>