Any comment about this error which I am still getiing after I turned Maven
online?
Thanks
On Wed, Jan 14, 2009 at 2:07 AM, Sarah kho <sarah.kho_at_gmail.com> wrote:
> Hi,
>
> Thank you very much. it looks like that Maven went to offline mode :-O I
> think netbeans turn the maven to offline mode and i used netbeans to turn it
> online again.
>
> Now I am getting the following error, even after updating the source code
> with latest svn version. can you please take a look and let me know what is
> wrong?
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building GlassFish Flashlight Framework
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-versions}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [hk2:hk2-compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [hk2:hk2-test-compile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [hk2:package]
> [INFO] Building jar:
> /home/sarah/glassfishv3src/v3/flashlight/framework/target/flashlight-framework.jar
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [enforcer:enforce {execution: enforce-versions}]
> [INFO] [source:jar {execution: attach-sources}]
> [INFO] Building jar:
> /home/sarah/glassfishv3src/v3/flashlight/framework/target/flashlight-framework-sources.jar
> [INFO] [install:install]
> [INFO] Installing
> /home/sarah/glassfishv3src/v3/flashlight/framework/target/flashlight-framework.jar
> to
> /home/sarah/apache-maven-2.0.9/repo/org/glassfish/flashlight/flashlight-framework/3.0-SNAPSHOT/flashlight-framework-3.0-SNAPSHOT.jar
> [INFO] Installing
> /home/sarah/glassfishv3src/v3/flashlight/framework/target/flashlight-framework-sources.jar
> to
> /home/sarah/apache-maven-2.0.9/repo/org/glassfish/flashlight/flashlight-framework/3.0-SNAPSHOT/flashlight-framework-3.0-SNAPSHOT-sources.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Kernel Classes
> [INFO] task-segment: [install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [enforcer:enforce {execution: enforce-versions}]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [hk2:hk2-compile]
> [INFO] Compiling 5 source files to
> /home/sarah/glassfishv3src/v3/core/kernel/target/classes
> Note:
> /home/sarah/glassfishv3src/v3/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/VsAdapter.java
> uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> /home/sarah/glassfishv3src/v3/core/kernel/src/main/java/com/sun/enterprise/v3/server/ApplicationLifecycle.java:186:
> start(org.glassfish.api.deployment.DeploymentContext,org.glassfish.api.ActionReport,org.glassfish.internal.data.ProgressTracker)
> in org.glassfish.internal.data.ApplicationInfo cannot be applied to
> (org.glassfish.deployment.common.DeploymentContextImpl,org.glassfish.api.ActionReport,com.sun.enterprise.v3.server.ProgressTracker)
> appInfo.start(context, report, tracker);
> ^
> /home/sarah/glassfishv3src/v3/core/kernel/src/main/java/com/sun/enterprise/v3/server/ApplicationLifecycle.java:232:
> start(org.glassfish.api.deployment.DeploymentContext,org.glassfish.api.ActionReport,org.glassfish.internal.data.ProgressTracker)
> in org.glassfish.internal.data.ApplicationInfo cannot be applied to
> (org.glassfish.deployment.common.DeploymentContextImpl,org.glassfish.api.ActionReport,com.sun.enterprise.v3.server.ProgressTracker)
> appInfo.start(context, report, tracker);
> ^
> Note:
> /home/sarah/glassfishv3src/v3/core/kernel/src/main/java/com/sun/enterprise/v3/server/ApplicationLifecycle.java
> uses unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 2 errors
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Fatal error compiling
>
> Embedded error: APT failed: 1
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 minutes 31 seconds
> [INFO] Finished at: Wed Jan 14 01:23:19 IRST 2009
> [INFO] Final Memory: 67M/121M
> [INFO]
> ------------------------------------------------------------------------
>
>
> On Tue, Jan 13, 2009 at 8:13 PM, Craig L Russell <Craig.Russell_at_sun.com>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
>>
>>
>