dev@glassfish.java.net

Re: v3 build failure?

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Tue, 05 Feb 2008 15:08:19 -0800

Thanks, Anissa.

With these steps I could get past that original error. Hope it runs
successfully till the end.
Nandini

Anissa Lam wrote:
> I checked out the hk2 source and compile it
> svn co https://svn.dev.java.net/svn/hk2/trunk/hk2
> cd hk2; mvn install
>
> Then go to the <v3>/api directory and do 'mvn install'.
> Then i can go back to <v3> and was able to run 'mvn install'
> sucessfully.
>
> thanks
> Anissa
>
> Hong Zhang wrote:
>> Hi, Anissa
>> I tried to update the workspace and then built, and I still got the
>> same compilation error. Can you share the exact steps you did the
>> build? Thanks!
>>
>> - Hong
>>
>>
>> Anissa Lam wrote:
>>
>>>
>>> I was seeing the same error. Kohsuke helped me to change the
>>> repository for getting the required jars. It is working for me
>>> now. The change is in the top level pom.xml and checked in. I
>>> believe he will change it back once the download server is
>>> functional again.
>>> If you update the workspace, you should get the change.
>>>
>>>
>>> Index: pom.xml
>>> ===================================================================
>>> --- pom.xml (revision 17873)
>>> +++ pom.xml (revision 17874)
>>> @@ -206,7 +206,8 @@
>>> <id>java-dev-repository</id>
>>> <name>Maven 1.x java.dev Snapshot Repository</name>
>>> <layout>legacy</layout>
>>> - <url>http://download.java.net/maven/1</url>
>>> + <!-- url>http://download.java.net/maven/1</url -->
>>> +
>>> <url>https://maven-repository.dev.java.net/nonav/repository</url>
>>> </repository>
>>> <repository>
>>> <id>repo1.maven.org</id>
>>> @@ -216,7 +217,8 @@
>>> <repository>
>>> <id>maven2.java.net</id>
>>> <name>Java.net Repository for Maven 2</name>
>>> - <url>http://download.java.net/maven/2</url>
>>> + <!-- url>http://download.java.net/maven/2</url -->
>>> +
>>> <url>https://maven2-repository.dev.java.net/nonav/repository</url>
>>> </repository>
>>> </repositories>
>>> <pluginRepositories>
>>>
>>> thanks
>>> Anissa
>>>
>>>
>>>
>>> Shing Wai Chan wrote:
>>>
>>>> I can build this morning.
>>>> But now, I cannot build in my Win with the following:
>>>> [INFO] [compiler:compile]
>>>> [INFO] Compiling 12 source files to
>>>> C:\gfv3\src\v3\build\maven-glassfish-plugin\
>>>> target\classes
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [ERROR] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] Compilation failure
>>>>
>>>> C:\gfv3\src\v3\build\maven-glassfish-plugin\src\main\java\com\sun\enterprise\bui
>>>>
>>>> ld\RunMojo.java:[4,45] package
>>>> com.sun.enterprise.module.common_impl does not ex
>>>> ist
>>>>
>>>> C:\gfv3\src\v3\build\maven-glassfish-plugin\src\main\java\com\sun\enterprise\bui
>>>>
>>>> ld\DistributionAssemblyMojo.java:[4,45] package
>>>> com.sun.enterprise.module.common
>>>> _impl does not exist
>>>>
>>>> C:\gfv3\src\v3\build\maven-glassfish-plugin\src\main\java\com\sun\enterprise\bui
>>>>
>>>> ld\AbstractGlassfishMojo.java:[9,45] package
>>>> com.sun.enterprise.module.common_im
>>>> pl does not exist
>>>>
>>>> C:\gfv3\src\v3\build\maven-glassfish-plugin\src\main\java\com\sun\enterprise\bui
>>>>
>>>> ld\AbstractGlassfishMojo.java:[37,12] cannot find symbol
>>>> symbol : class Jar
>>>>
>>>> Amy Roh wrote:
>>>>
>>>>> I still haven't been able to build v3 this week. Do we have any
>>>>> estimated resolution time?
>>>>>
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] Failed to resolve artifact.
>>>>>
>>>>> Missing:
>>>>> ----------
>>>>> 1) com.sun.xml.ws:jaxws-rt:jar:2.1.3
>>>>>
>>>>> Try downloading the file manually from the project website.
>>>>>
>>>>> Then, install it using the command:
>>>>> mvn install:install-file -DgroupId=com.sun.xml.ws
>>>>> -DartifactId=jaxws-rt \
>>>>> -Dversion=2.1.3 -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.xml.ws
>>>>> -DartifactId=jaxws-rt \
>>>>> -Dversion=2.1.3 -Dpackaging=jar -Dfile=/path/to/file \
>>>>> -Durl=[url] -DrepositoryId=[id]
>>>>>
>>>>> Path to dependency:
>>>>> 1)
>>>>> org.glassfish.core.security:core-security:hk2-jar:10.0-SNAPSHOT
>>>>> 2) com.sun.xml.ws:jaxws-rt:jar:2.1.3
>>>>>
>>>>> 2) javax.security.auth.message:jmac:jar:1.0
>>>>>
>>>>> Try downloading the file manually from the project website.
>>>>>
>>>>> Then, install it using the command:
>>>>> mvn install:install-file
>>>>> -DgroupId=javax.security.auth.message -DartifactI
>>>>> d=jmac \
>>>>> -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
>>>>> Alternatively, if you host your own repository you can deploy the
>>>>> file there:
>>>>> mvn deploy:deploy-file -DgroupId=javax.security.auth.message
>>>>> -DartifactId=jm
>>>>> ac \
>>>>> -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file \
>>>>> -Durl=[url] -DrepositoryId=[id]
>>>>>
>>>>> Path to dependency:
>>>>> 1)
>>>>> org.glassfish.core.security:core-security:hk2-jar:10.0-SNAPSHOT
>>>>> 2) javax.security.auth.message:jmac:jar:1.0
>>>>>
>>>>> ----------
>>>>> 2 required artifacts are missing.
>>>>>
>>>>>
>>>>> Hong Zhang wrote:
>>>>>
>>>>>> When I tried just now, I got this compilation error instead (I
>>>>>> seem to be able to download the jars). I don't know if it's still
>>>>>> related to the download.java.net outage or this is something else.
>>>>>>
>>>>>> [INFO] [compiler:compile]
>>>>>> [INFO] Compiling 12 source files to
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/target/classes
>>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [ERROR] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Compilation failure
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/RunMojo.java:[4,45]
>>>>>> package com.sun.enterprise.module.common_impl does not exist
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/DistributionAssemblyMojo.java:[4,45]
>>>>>> package com.sun.enterprise.module.common_impl does not exist
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/AbstractGlassfishMojo.java:[9,45]
>>>>>> package com.sun.enterprise.module.common_impl does not exist
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/AbstractGlassfishMojo.java:[37,12]
>>>>>> cannot find symbol
>>>>>> symbol : class Jar
>>>>>> location: class com.sun.enterprise.build.AbstractGlassfishMojo
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/AbstractGlassfishMojo.java:[37,22]
>>>>>> cannot find symbol
>>>>>> symbol : variable Jar
>>>>>> location: class com.sun.enterprise.build.AbstractGlassfishMojo
>>>>>>
>>>>>> /home/hzhang/files/workspaces/v3/build/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build/RunMojo.java:[218,28]
>>>>>> cannot find symbol
>>>>>> symbol : variable AbstractFactory
>>>>>> location: class com.sun.enterprise.build.RunMojo
>>>>>>
>>>>>>
>>>>>> Kohsuke Kawaguchi wrote:
>>>>>>
>>>>>>> Kohsuke Kawaguchi wrote:
>>>>>>>
>>>>>>>> OMG, the entire download.java.net server is gone!! It's not
>>>>>>>> serving anything anywhere in its path.
>>>>>>>>
>>>>>>>> I'm contacting java.net admins. Will let you know how it goes.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> This appears to be related to GCN #154593, which is still in
>>>>>>> progress.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Hong Zhang wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>> I checked out a fresh workspace this morning and I got this
>>>>>>>>> failure while doing "mvn -U install". Anyone has any idea? I
>>>>>>>>> have tried to clean up my ~/.m2/repository, but that did not
>>>>>>>>> help.
>>>>>>>>>
>>>>>>>>> INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> [INFO] Failed to resolve artifact.
>>>>>>>>>
>>>>>>>>> Missing:
>>>>>>>>> ----------
>>>>>>>>> 1) org.glassfish.build:maven-glassfish-extension:jar:1.0-SNAPSHOT
>>>>>>>>>
>>>>>>>>> Try downloading the file manually from the project website.
>>>>>>>>>
>>>>>>>>> Then, install it using the command:
>>>>>>>>> mvn install:install-file -DgroupId=org.glassfish.build
>>>>>>>>> -DartifactId=maven-glassfish-extension \
>>>>>>>>> -Dversion=1.0-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=org.glassfish.build
>>>>>>>>> -DartifactId=maven-glassfish-extension \
>>>>>>>>> -Dversion=1.0-SNAPSHOT -Dpackaging=jar
>>>>>>>>> -Dfile=/path/to/file \
>>>>>>>>> -Durl=[url] -DrepositoryId=[id]
>>>>>>>>>
>>>>>>>>> Path to dependency:
>>>>>>>>> 1) org.glassfish:glassfish-parent:pom:10.0-SNAPSHOT
>>>>>>>>> 2)
>>>>>>>>> org.glassfish.build:maven-glassfish-extension:jar:1.0-SNAPSHOT
>>>>>>>>>
>>>>>>>>> ----------
>>>>>>>>> 1 required artifact is missing.
>>>>>>>>>
>>>>>>>>> for artifact:
>>>>>>>>> org.glassfish:glassfish-parent:pom:10.0-SNAPSHOT
>>>>>>>>>
>>>>>>>>> from the specified remote repositories:
>>>>>>>>> central (http://repo1.maven.org/maven2),
>>>>>>>>> maven2.java.net (http://download.java.net/maven/2),
>>>>>>>>> repo1.maven.org (http://repo1.maven.org/maven2),
>>>>>>>>> java-dev-repository (http://download.java.net/maven/1),
>>>>>>>>> glassfish-repository
>>>>>>>>> (http://download.java.net/maven/glassfish),
>>>>>>>>> java.net (http://download.java.net/maven/1)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> - Hong
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>