dev@glassfish.java.net

Re: v3 build failure - missing artifact

From: Jane Young <Jane.Young_at_Sun.COM>
Date: Mon, 02 Nov 2009 18:03:27 -0800

The pom.xml in v3/tests/embedded/wrapper does not reference any
repositories and it's an independent pom that does not inherit from a
parent pom. The reason why it works for me is because I have a local
build so the artifacts in v3 workspace are installed in my local Maven
repository. You do not have a local build of v3 and you're trying to
build v3/tests/embedded/wrapper/pom.xml which has a dependency on
glassfish-api. Since the pom.xml does not have reference to the remote
GlassFish maven repo (Nexus) and the artifact does not exist in local
Maven repository thus your build failed.

I added the repositories element and it should work now. Please update
the workspace and build again.

Jane



Homer Yau wrote:
> Hi Jane,
>
> Yes, this is what I need.
> Do you do it manually? If manually, please let me know how to do it.
>
> What is the requirement dependence I am missing?
>
> I will try with "mvn -U install" to see if it make any difference.
>
> Thanks,
> Homer
>
> Jane Young wrote:
>> Are you trying to build the embedded wrapper jar as discussed in
>> another thread?
>> I followed Siraj's instructions and was able to build successfully:
>> 1. cd v3/tests/embedded/wrapper
>> 2. mvn install
>> 3. verify target/test-wrapper-3.0-SNAPSHOT.jar is successfully created.
>>
>>
>>
>> Homer Yau wrote:
>>> Hi Jane,
>>>
>>> I just did another build on 2009-11-02_17-21-56. It still missing
>>> some dependence.
>>> I will email you offline and see what I am missing here.
>>> I guess I am still missing glassfish-api or something else.
>>>
>>>
>>> Thanks,
>>> Homer
>>> <==channel started=[HUDSON REMOTING CAPACITY]===
>>>> ���Executing Maven: -B -f
>>>> /export/hudson/workspace/Embedded_wrapper/wrapper/pom.xml install
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Building Embedded GlassFish Wrapper
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] [resources:resources]
>>> [WARNING] Using platform encoding (ISO8859-1 actually) to copy
>>> filtered resources, i.e. build is platform dependent!
>>> [INFO] skip non existing resourceDirectory
>>> /export/hudson/workspace/Embedded_wrapper/wrapper/src/main/resources
>>> [HUDSON] Archiving
>>> /export/hudson/workspace/Embedded_wrapper/wrapper/pom.xml to
>>> /export/hudson/server/jobs/Embedded_wrapper/modules/org.glassfish.test$test-wrapper/builds/2009-11-02_17-21-56/archive/org.glassfish.test/test-wrapper/3.0-SNAPSHOT/pom.xml
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Failed to resolve artifact.
>>>
>>> Missing:
>>> ----------
>>> 1) org.glassfish.common:glassfish-api:jar:3.0-SNAPSHOT
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command: mvn install:install-file
>>> -DgroupId=org.glassfish.common -DartifactId=glassfish-api
>>> -Dversion=3.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.common -DartifactId=glassfish-api
>>> -Dversion=3.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
>>> -Durl=[url] -DrepositoryId=[id]
>>>
>>> Path to dependency: 1)
>>> org.glassfish.test:test-wrapper:jar:3.0-SNAPSHOT
>>> 2) org.glassfish.common:glassfish-api:jar:3.0-SNAPSHOT
>>>
>>> ----------
>>> 1 required artifact is missing.
>>>
>>> for artifact: org.glassfish.test:test-wrapper:jar:3.0-SNAPSHOT
>>>
>>> from the specified remote repositories:
>>> central (http://repo1.maven.org/maven2)
>>>
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Total time: 4 seconds
>>> [INFO] Finished at: Mon Nov 02 17:21:56 PST 2009
>>> [INFO] Final Memory: 9M/222M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>>> Thanks,
>>> Homer
>>>
>>>
>>> Jane Young wrote:
>>>> Homer,
>>>>
>>>> I've been building throughout the day and have no issues with
>>>> missing artifact.
>>>> Hudson continuous and dev jobs are also building fine:
>>>> http://hudson.glassfish.org/job/gf-trunk-build-continuous/
>>>> http://hudson.glassfish.org/job/gf-trunk-build-dev/
>>>>
>>>> Please update your workspace and rebuild again.
>>>>
>>>> Thanks,
>>>> Jane
>>>>
>>>>
>>>> Homer Yau wrote:
>>>>> Hi Jane and Hong,
>>>>>
>>>>> I saw the same issue.
>>>>> Please confirm and let us know whether the latest check-in fix
>>>>> resolve the build issue.
>>>>>
>>>>> I am have problem to build too.
>>>>>
>>>>> Thanks,
>>>>> Homer
>>>>>
>>>>> Hong Zhang wrote:
>>>>>> Hi, Jane
>>>>>>
>>>>>>> Are you still seeing this issue?
>>>>>>
>>>>>> Siraj checked in some change to remove maven-plugin from pom.xml,
>>>>>> and that seems to fix my problem.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> - Hong
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hong Zhang wrote:
>>>>>>>
>>>>>>>> Anyone see this? I started to get this from yesterday. I used
>>>>>>>> mvn -U clean install.
>>>>>>>>
>>>>>>>>
>>>>>>>> Downloading:
>>>>>>>> http://download.java.net/maven/2/org/glassfish/extras/glassfish-embedded-all/3.0-SNAPSHOT/glassfish-embedded-all-3.0-SNAPSHOT.jar
>>>>>>>>
>>>>>>>> [INFO]
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>> [INFO]
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> [INFO] Failed to resolve artifact.
>>>>>>>>
>>>>>>>> Missing:
>>>>>>>> ----------
>>>>>>>> 1) org.glassfish.extras:glassfish-embedded-all:jar:3.0-SNAPSHOT
>>>>>>>>
>>>>>>>> Try downloading the file manually from the project website.
>>>>>>>>
>>>>>>>> Then, install it using the command:
>>>>>>>> mvn install:install-file -DgroupId=org.glassfish.extras
>>>>>>>> -DartifactId=glassfish-embedded-all -Dversion=3.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.extras
>>>>>>>> -DartifactId=glassfish-embedded-all -Dversion=3.0-SNAPSHOT
>>>>>>>> -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
>>>>>>>> -DrepositoryId=[id]
>>>>>>>>
>>>>>>>> Path to dependency:
>>>>>>>> 1)
>>>>>>>> org.glassfish:maven-embedded-glassfish-plugin:maven-plugin:3.0-SNAPSHOT
>>>>>>>>
>>>>>>>> 2) org.glassfish.extras:glassfish-embedded-all:jar:3.0-SNAPSHOT
>>>>>>>>
>>>>>>>> ----------
>>>>>>>> 1 required artifact is missing.
>>>>>>>>
>>>>>>>> for artifact:
>>>>>>>> org.glassfish:maven-embedded-glassfish-plugin:maven-plugin:3.0-SNAPSHOT
>>>>>>>>
>>>>>>>>
>>>>>>>> from the specified remote repositories:
>>>>>>>> glassfish-internal (http://maven.sfbay/mirrors/glassfish/),
>>>>>>>> java.net (http://download.java.net/maven/1),
>>>>>>>> central (http://repo1.maven.org/maven2),
>>>>>>>> java.net2 (http://download.java.net/maven/2)
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO]
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> [INFO] For more information, run Maven with the -e switch
>>>>>>>> [INFO]
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> [INFO] Total time: 16 minutes 20 seconds
>>>>>>>> [INFO] Finished at: Mon Nov 02 09:17:23 EST 2009
>>>>>>>> [INFO] Final Memory: 219M/383M
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> 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
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>