Error building samples in M1 distribution
-----------------------------------------

         Key: TUSCANY-379
         URL: http://issues.apache.org/jira/browse/TUSCANY-379
     Project: Tuscany
        Type: Bug

  Components: Build System, Java SCA Samples, Java DAS Samples  
    Versions: Java-M1    
    Reporter: Jean-Sebastien Delfino
    Priority: Critical
     Fix For: Java-M1


Samples packaged in the M1 distro cannot be built with mvn. To reproduce the 
problem unpack the M1 distro, then from samples/sca run mvn. You will get the 
following error:

[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] Failed to resolve artifact.

GroupId: org.apache.tuscany.samples
ArtifactId: tuscany-samples
Version: incubating-M1

Reason: System is offline.

  org.apache.tuscany.samples:tuscany-samples:pom:incubating-M1



NOTE: Maven is executing in offline mode. Any artifacts not already in your 
local
repository will be inaccessible.


[INFO] 
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: POM 
'org.apache.tuscany.samples:tuscany-samples' not found in repository: System is 
offline.

  org.apache.tuscany.samples:tuscany-samples:pom:incubating-M1


        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        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:585)
        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: POM 
'org.apache.tuscany.samples:tuscany-samples' not found in repository: System is 
offline.

  org.apache.tuscany.samples:tuscany-samples:pom:incubating-M1


        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:430)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:988)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:594)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFile(DefaultMavenProjectBuilder.java:304)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:274)
        at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
        at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
        ... 11 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: System 
is offline.

  org.apache.tuscany.samples:tuscany-samples:pom:incubating-M1


        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:112)
        at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
        at 
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:387)
        ... 18 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon May 15 19:33:18 PDT 2006
[INFO] Final Memory: 1M/2M
[INFO] 
----------------------------------------------------------------------------

The problem is that the Maven artifact for the parent of samples/sca/pom.xml 
does not exist in the user's Maven repos.

A possible fix would be to ship samples/pom.xml in the binary distribution and 
remove any parent specification from it.

Same problem and same resolution with sampleapps/pom.xml.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to