users@glassfish.java.net

Re: how to build hk2

From: Sahoo <sahoo_at_sun.com>
Date: Tue, 07 Oct 2008 12:52:14 +0530

You may have experienced an intermittent failure by the maven repo. The
missing artifact is indeed available at:
http://download.java.net/maven/glassfish/com/sun/enterprise/tiger-types-osgi/0.3.33-SNAPSHOT/

So, retry the operation. I should also mention that you should invoke
install phase not compile phase, otherwise no jars would be produced.

glassfish_at_javadesktop.org wrote:
> I am trying to build hk2 after checking it out.
>
> $ svn info
> Path: .
> URL: https://hk2.dev.java.net/svn/hk2/trunk/hk2
> Repository Root: https://hk2.dev.java.net/svn/hk2
> Repository UUID: 7a3fc280-a62a-0410-b7d8-ada792bf7f64
> Revision: 882
> Node Kind: directory
> Schedule: normal
> Last Changed Author: ss141213
> Last Changed Rev: 882
> Last Changed Date: 2008-10-06 13:54:40 +0900 (Mon, 06 Oct 2008)
>
> $ mvn compile
> [INFO] Scanning for projects...
>
> [INFO] Reactor build order:
>
> [INFO] Modules Subsystem
>
> [INFO] Inversion of Control / Autodependency mechanism
>
> [INFO] Inhabitants' index generator
>
> [INFO] org.jvnet.tiger-types repackaged as module
>
> [INFO] HK2 configuration module
>
> [INFO] HK2 core module
>
> [INFO] HK2 configuration reader generator module
>
> [INFO] StAX API and Woodstox OSGi repackaging
>
> [INFO] OSGi repackaging of HK2 dependencies
>
> [INFO] Module system maven support
>
> [INFO] HK2 OSGi Adapter
>
> [INFO] Static Analyser for verifying module dependency
>
> [INFO] HK2 test harness
>
> [INFO] Maven Plugin for hk2
>
> [INFO] HK2 module of HK2 itself
>
> [INFO] Autodepends tests
>
> [INFO] HK2 test1
>
> [INFO] HK2 test2
>
> [INFO] HK2 config test
>
> WAGON_VERSION: 1.0-beta-2
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] Building Modules Subsystem
>
> [INFO] task-segment: [compile]
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] No goals needed for project - skipping
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] Building Inversion of Control / Autodependency mechanism
>
> [INFO] task-segment: [compile]
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:compile]
>
> [INFO] Compiling 3 source files to D:\ee5\javanet\v3\hk2\hk2\auto-depends\target\classes
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] Building Inhabitants' index generator
>
> [INFO] task-segment: [compile]
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:compile]
>
> [INFO] Nothing to compile - all classes are up to date
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] Building org.jvnet.tiger-types repackaged as module
>
> [INFO] task-segment: [compile]
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [compiler:compile]
>
> [INFO] No sources to compile
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] Building HK2 configuration module
>
> [INFO] task-segment: [compile]
>
> [INFO] ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> Downloading: https://maven2-repository.dev.java.net/repository/com/sun/enterprise/tiger-types-osgi/0.3.33-SNAPSHOT/tiger-types-osgi-0.3.33-SNAPSHOT.jar
>
> Downloading: https://maven-repository.dev.java.net/repository/com.sun.enterprise/jars/tiger-types-osgi-0.3.33-SNAPSHOT.jar
>
> [INFO] ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO] ------------------------------------------------------------------------
>
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) com.sun.enterprise:tiger-types-osgi:jar:0.3.33-SNAPSHOT
>
>
>
> Try downloading the file manually from the project website.
>
>
>
> Then, install it using the command:
>
> mvn install:install-file -DgroupId=com.sun.enterprise -DartifactId=tiger-types-osgi \
> -Dversion=0.3.33-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.sun.enterprise -DartifactId=tiger-types-osgi \
> -Dversion=0.3.33-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file \
> -Durl=[url] -DrepositoryId=[id]
>
>
>
> Path to dependency:
>
> 1) com.sun.enterprise:config:jar:0.3.33-SNAPSHOT
>
> 2) com.sun.enterprise:tiger-types-osgi:jar:0.3.33-SNAPSHOT
>
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>
> com.sun.enterprise:config:jar:0.3.33-SNAPSHOT
>
>
> from the specified remote repositories:
>
> maven-repository.dev.java.net (https://maven-repository.dev.java.net/repository),
> maven2-repository.dev.java.net (https://maven2-repository.dev.java.net/repository),
> central (http://repo1.maven.org/maven2)
>
>
>
>
> [INFO] ------------------------------------------------------------------------
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO] ------------------------------------------------------------------------
>
> [INFO] Total time: 6 seconds
>
> [INFO] Finished at: Tue Oct 07 14:22:59 JST 2008
>
> [INFO] Final Memory: 9M/16M
>
> [INFO] ------------------------------------------------------------------------
> [Message sent by forum member 'wasedaxiao' (wasedaxiao)]
>
> http://forums.java.net/jive/thread.jspa?messageID=303651
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>