dev@glassfish.java.net

Re: I get error when I want to build the source code of v3 after my last update

From: Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 14 Jan 2009 10:47:05 +0530

Yes, it still happens occasionally because:
1. We have many many different projects outside v3 workspace.
2. A lot of projects are not owned by any RE and not all the project
owners are familiar with maven, so they end up commiting the crime of
updating a non-SNAPSHOT artifact again and again.

I totally agree it is a P1 S1 bug. It's just taking time to identify all
the projects and move them to RE environment.

Thanks,
Sahoo

Craig L Russell wrote:
> My gosh. Are there still non-SNAPSHOT Glassfish artifacts that change
> their content without changing release numbers?
>
> To me, that's a P1 S1 bug.
>
> Craig
>
> On Jan 12, 2009, at 11:31 PM, Sahoo wrote:
>
>> OK, running with -U option should fix that problem. I don't like the
>> idea of cleaning the repo. It is a really bad practice.
>>
>> Thanks,
>> Sahoo
>>
>> Jane Young wrote:
>>> Looks like Sarah may have an repository with the parent pom.xml
>>> (3.0-SNAPSHOT) that still references 3-SNAPSHOT master pom.xml.
>>> When her workspace is updated, the parent pom.xml is now
>>> referencing master pom.xml with the version 3. Also looks like
>>> she's executing mvn in offline mode. This could be reason why
>>> artifact is not found.
>>>
>>> I usually like to use a clean maven repo to make sure that the
>>> latest is downloaded.
>>> Jane
>>>
>>>
>>> Sahoo wrote:
>>>> How will cleaning the repo help?
>>>>
>>>> Jane Young wrote:
>>>>> Hi Sarah,
>>>>>
>>>>> Try with a clean maven repo by either removing ~/.m2/repository or
>>>>> set -Dmaven.repo.local=<maven location> when executing mvn install.
>>>>>
>>>>> Jane
>>>>>
>>>>>
>>>>> Sarah kho wrote:
>>>>>>
>>>>>> Hi
>>>>>>
>>>>>> I want to build GlassFish v3 from source code of v3 but it
>>>>>> returns an error which is included. It start showin this error
>>>>>> after my last update, can someone please let me know how to
>>>>>> resolve it?
>>>>>>
>>>>>> [INFO] NOTE: Maven is executing in offline mode. Any artifacts
>>>>>> not already in your local
>>>>>> repository will be inaccessible.
>>>>>>
>>>>>> [INFO] Scanning for projects...
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [ERROR] FATAL ERROR
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Error building POM (may not be this project's POM).
>>>>>>
>>>>>>
>>>>>> Project ID: org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT
>>>>>>
>>>>>> Reason: Cannot find parent: org.glassfish:pom for project:
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT for project
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT
>>>>>>
>>>>>>
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Trace
>>>>>> org.apache.maven.reactor.MavenExecutionException: Cannot find
>>>>>> parent: org.glassfish:pom for project:
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT for project
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT
>>>>>> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>
>>>>>> at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>
>>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>>> at
>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>> at
>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>>
>>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>> Caused by: org.apache.maven.project.ProjectBuildingException:
>>>>>> Cannot find parent: org.glassfish:pom for project:
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT for project
>>>>>> org.glassfish:glassfish-parent:pom:3.0-SNAPSHOT
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1370)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:821)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:506)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:198)
>>>>>>
>>>>>> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
>>>>>> at
>>>>>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
>>>>>> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
>>>>>> ... 11 more
>>>>>> Caused by: org.apache.maven.project.ProjectBuildingException: POM
>>>>>> 'org.glassfish:pom' not found in repository: System is offline.
>>>>>>
>>>>>> org.glassfish:pom:pom:3
>>>>>>
>>>>>> for project org.glassfish:pom
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1366)
>>>>>>
>>>>>> ... 17 more
>>>>>> Caused by:
>>>>>> org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>>>>>> System is offline.
>>>>>>
>>>>>> org.glassfish:pom:pom:3
>>>>>>
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:187)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
>>>>>>
>>>>>> at
>>>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
>>>>>>
>>>>>> ... 18 more
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> [INFO] Total time: < 1 second
>>>>>> [INFO] Finished at: Tue Jan 13 02:36:45 IRST 2009
>>>>>> [INFO] Final Memory: 1M/4M
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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
>>
>
> Craig L Russell
> Architect, Sun Java Enterprise System http://db.apache.org/jdo
> 408 276-5638 mailto:Craig.Russell_at_sun.com
> P.S. A good JDO? O, Gasp!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>