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
>