You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <de...@tuscany.apache.org> on 2010/11/09 19:21:09 UTC

[jira] Commented: (TUSCANY-3771) Can't build source distribution from empty maven repo due to SNAPSHOT dependencies

    [ https://issues.apache.org/jira/browse/TUSCANY-3771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930220#action_12930220 ] 

Luciano Resende commented on TUSCANY-3771:
------------------------------------------

The current 2.0-Beta1 source distribution seems to have tons of different version ID available throughout the source code. Some of these modules might be very old and not in use and we might need to just get rid of them, others I don't know and need further investigation, but they might be out of the build and thus not processed by the release plugin.. but that does not explain why the sample in question above is failing as it's part of the build and should have been processed by the release plugin. 

http://people.apache.org/~lresende/tuscany/tuscany-sca-2.0-beta1-src-snapshot-report.txt

> Can't build source distribution from empty maven repo due to SNAPSHOT dependencies
> ----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3771
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3771
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Build System
>    Affects Versions: Java-SCA-2.0-Beta1
>            Reporter: Luciano Resende
>            Priority: Blocker
>             Fix For: Java-SCA-2.0-Beta1
>
>
> mvn clean install
> [INFO] Scanning for projects...
> Downloading: http://repo2.maven.org/maven2/org/apache/apache/7/apache-7.pom
>        
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
> Project ID: null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null
> Reason: Cannot find parent: org.apache.tuscany.sca:tuscany-samples for project: null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null for project null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache.tuscany.sca:tuscany-samples for project: null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null for project null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null
> 	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> 	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 	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.apache.tuscany.sca:tuscany-samples for project: null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null for project null:sample-maven-osgi-junit-calculator-rest-osgi:jar:null
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
> 	at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
> 	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
> 	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
> 	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
> 	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
> 	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:560)
> 	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
> 	... 12 more
> Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.tuscany.sca:tuscany-samples' not found in repository: Unable to download the artifact from any repository
>   org.apache.tuscany.sca:tuscany-samples:pom:2.0-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
>  for project org.apache.tuscany.sca:tuscany-samples
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
> 	... 22 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository
>   org.apache.tuscany.sca:tuscany-samples:pom:2.0-SNAPSHOT
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
> 	at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
> 	... 23 more
> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
> 	at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
> 	at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
> 	... 25 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Tue Nov 09 09:50:42 PST 2010
> [INFO] Final Memory: 19M/57M
> [INFO] ------------------------------------------------------------------------
> =======
> more samples/running-tuscany/maven-osgi-junit/calculator-rest-osgi/pom.xml 
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>     * Licensed to the Apache Software Foundation (ASF) under one
>     * or more contributor license agreements.  See the NOTICE file
>     * distributed with this work for additional information
>     * regarding copyright ownership.  The ASF licenses this file
>     * to you under the Apache License, Version 2.0 (the
>     * "License"); you may not use this file except in compliance
>     * with the License.  You may obtain a copy of the License at
>     *
>     *   http://www.apache.org/licenses/LICENSE-2.0
>     *
>     * Unless required by applicable law or agreed to in writing,
>     * software distributed under the License is distributed on an
>     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>     * KIND, either express or implied.  See the License for the
>     * specific language governing permissions and limitations
>     * under the License.
> -->
> <project>
>     <modelVersion>4.0.0</modelVersion>
>     <parent>
>         <groupId>org.apache.tuscany.sca</groupId>
>         <artifactId>tuscany-samples</artifactId>
>         <version>2.0-SNAPSHOT</version>
>         <relativePath>../pom.xml</relativePath>
>     </parent>
>     <artifactId>sample-maven-osgi-junit-calculator-rest-osgi</artifactId>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.