dev@glassfish.java.net

Re: Problem building v3_prelude_release branch

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 29 Oct 2008 13:46:10 -0700

You can try 2.0.7, but 2.0.9 should be fine.

-marina

Kin-man Chung wrote:
> I did what you suggested, but no luck: same error.
>
> I am using mvn 2.0.9. Maybe I should try using other versions?
>
> -Kin-man
>
> On 10/29/08 10:41, Jane Young wrote:
>
>> Hi Kin-man,
>>
>> I don't know why your build is failing. It could be related to the
>> previous build failure and workspace is not clean-up.
>> I just checked-out and built gfv3-prelude with no issue.
>> Can you try cleaning your workspace "mvn -Dmaven.repo.local=repo
>> clean", remove the contents in the repository (rm -rf repo/*) and try
>> building again.
>>
>> Thanks,
>> Jane
>>
>>
>> Kin-man Chung wrote:
>>
>>> Thanks. This info might be in the previous email, but I wonder why
>>> the build instruction don't have it.
>>>
>>> Now I ran into another build problem
>>>
>>> %mvn -Prelease-phase1 -Dmaven.repo.local=repo install | tee log
>>> [INFO] Scanning for projects...
>>> [INFO] Reactor build order:
>>> [INFO] GlassFish Parent Project
>>> [INFO] GlassFish Build Utilities
>>> [INFO] GlassFish v3 Maven2 plugin
>>> [INFO] Maven extension for building GlassFish
>>> WAGON_VERSION: 1.0-beta-2
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building GlassFish Parent Project
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>>> [WARNING] Ignoring project type pom - supportedProjectTypes =
>>> [hk2-jar, bundle]
>>> [INFO] [site:attach-descriptor]
>>> [INFO] Preparing source:jar
>>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
>>> invocation.
>>> [INFO] No goals needed for project - skipping
>>> [INFO] [source:jar {execution: attach-sources}]
>>> [INFO] [install:install]
>>> [INFO] Installing /export/work/v3p/pom.xml to
>>> repo/org/glassfish/glassfish-parent/3.0-Prelude-SNAPSHOT/glassfish-parent-3.0-Prelude-SNAPSHOT.pom
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building GlassFish Build Utilities
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>>> [WARNING] Ignoring project type pom - supportedProjectTypes =
>>> [hk2-jar, bundle]
>>> [INFO] [site:attach-descriptor]
>>> [INFO] Preparing source:jar
>>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
>>> invocation.
>>> [INFO] No goals needed for project - skipping
>>> [INFO] [source:jar {execution: attach-sources}]
>>> [INFO] [install:install]
>>> [INFO] Installing /export/work/v3p/build/pom.xml to
>>> repo/org/glassfish/build/build/3.0-Prelude-SNAPSHOT/build-3.0-Prelude-SNAPSHOT.pom
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building GlassFish v3 Maven2 plugin
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [plugin:descriptor]
>>> [WARNING]
>>>
>>> Goal prefix is specified as: 'gf'. Maven currently expects it to be
>>> 'glassfish'.
>>> [INFO] Using 2 extractors.
>>> [INFO] Applying extractor for language: java
>>> [INFO] Extractor for language: java found 6 mojo descriptors.
>>> [INFO] Applying extractor for language: bsh
>>> [INFO] Extractor for language: bsh found 0 mojo descriptors.
>>> [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] [bundle:manifest {execution: bundle-manifest}]
>>> [WARNING] Ignoring project type maven-plugin - supportedProjectTypes
>>> = [hk2-jar, bundle]
>>> [INFO] [resources:testResources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:testCompile]
>>> [INFO] Nothing to compile - all classes are up to date
>>> [INFO] [surefire:test]
>>> [INFO] Surefire report directory:
>>> /export/work/v3p/build/maven-glassfish-plugin/target/surefire-reports
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] junit/framework/TestCase; nested exception is
>>> java.lang.NoClassDefFoundError: junit/framework/TestCase
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 5 seconds
>>> [INFO] Finished at: Wed Oct 29 09:47:42 PDT 2008
>>> [INFO] Final Memory: 21M/126M
>>>
>>>
>>> On 10/28/08 17:28, Jane Young wrote:
>>>
>>>> Did you try "'mvn -Prelease-phase1 install'" ?
>>>>
>>>> Kin-man Chung wrote:
>>>>
>>>>> I checked out a fresh copy of v3_prelude_release branch, but ran into
>>>>> the following problem. Anyone knows why and how to fix? Thanks.
>>>>>
>>>>> -Kin-man
>>>>>
>>>>> Downloading:
>>>>> ...
>>>>> https://maven2-repository.dev.java.net/nonav/repository/org/glassfish/build/maven-glassfish-extension/3.0-Prelude-SNAPSHOT/maven-glassfish-extension-3.0-Prelude-SNAPSHOT.jar
>>>>>
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> [INFO] Failed to resolve artifact.
>>>>>
>>>>> Missing:
>>>>> ----------
>>>>> 1)
>>>>> org.glassfish.build:maven-glassfish-extension:jar:3.0-Prelude-SNAPSHOT
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>