saffae / javadrone

Automatically exported from code.google.com/p/javadrone
0 stars 0 forks source link

Fail to resolve dependency javadrone-api-1.2 #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Clone and Build javadrone and make sure that javadrone artifacts are 
installed in local Maven repository.

  NOTE: Build (mvn install) fails at first due to an unresolved dependency to the hidapi-1.0 jar artifact.
  Assuming that the cause of this issue is absence of a remote Maven repository for javadrone-related artifacts, this issue was overcome by manually copying the missing artifacts to my local Maven repository.

2. Create a minimal Maven project and add javadrone-api as a dependency of the 
newly created Maven project:

    <dependency>
        <groupId>com.codeminders</groupId>
        <artifactId>javadrone-api</artifactId>
        <version>1.2</version>
    </dependency>

3. Try to build the newly created project (step 2)

What is the expected output? What do you see instead?

It is expected that the dependency to javadrone-api-1.2 resolves, given the 
structure found in local Maven repository:

/Users/skh/.m2/repository/com/codeminders
/Users/skh/.m2/repository/com/codeminders/controltower
/Users/skh/.m2/repository/com/codeminders/controltower/1.2
/Users/skh/.m2/repository/com/codeminders/controltower/1.2/_maven.repositories
/Users/skh/.m2/repository/com/codeminders/controltower/1.2/controltower-1.2.jar
/Users/skh/.m2/repository/com/codeminders/controltower/1.2/controltower-1.2.pom
/Users/skh/.m2/repository/com/codeminders/controltower/maven-metadata-local.xml
/Users/skh/.m2/repository/com/codeminders/hidapi
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/_maven.repositories
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/hidapi-1.0.jar
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/hidapi-1.0.jar.lastUpdated
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/hidapi-1.0.pom
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/hidapi-1.0.pom.lastUpdated
/Users/skh/.m2/repository/com/codeminders/hidapi/1.0/hidapi-1.0.pom.sha1
/Users/skh/.m2/repository/com/codeminders/javadrone
/Users/skh/.m2/repository/com/codeminders/javadrone/${currentVersion}
/Users/skh/.m2/repository/com/codeminders/javadrone/${currentVersion}/javadrone-
${currentVersion}.pom.lastUpdated
/Users/skh/.m2/repository/com/codeminders/javadrone/1.2
/Users/skh/.m2/repository/com/codeminders/javadrone/1.2/_maven.repositories
/Users/skh/.m2/repository/com/codeminders/javadrone/1.2/javadrone-1.2.pom
/Users/skh/.m2/repository/com/codeminders/javadrone/maven-metadata-local.xml
/Users/skh/.m2/repository/com/codeminders/javadrone-api
/Users/skh/.m2/repository/com/codeminders/javadrone-api/1.2
/Users/skh/.m2/repository/com/codeminders/javadrone-api/1.2/_maven.repositories
/Users/skh/.m2/repository/com/codeminders/javadrone-api/1.2/javadrone-api-1.2.ja
r
/Users/skh/.m2/repository/com/codeminders/javadrone-api/1.2/javadrone-api-1.2.po
m
/Users/skh/.m2/repository/com/codeminders/javadrone-api/maven-metadata-local.xml

Instead, we get the following:

$ mvn install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building DroneLab 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: 
http://repo1.maven.org/maven2/com/codeminders/javadrone/${currentVersion}/javadr
one-${currentVersion}.pom
Downloading: 
file:${basedir}/../lib/maven/com/codeminders/javadrone/${currentVersion}/javadro
ne-${currentVersion}.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.662s
[INFO] Finished at: Tue Jul 31 04:23:21 CEST 2012
[INFO] Final Memory: 3M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dronelab: Could not resolve 
dependencies for project com.khakbaz:dronelab:jar:0.1.0-SNAPSHOT: Failed to 
collect dependencies for [com.codeminders:javadrone-api:jar:1.2 (compile)]: 
Failed to read artifact descriptor for com.codeminders:javadrone-api:jar:1.2: 
Could not transfer artifact com.codeminders:javadrone:pom:${currentVersion} 
from/to local (file:${basedir}/../lib/maven): Repository path 
${basedir}/../lib/maven does not exist, and cannot be created. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by sina.hes...@gmail.com on 31 Jul 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Fix:
http://code.google.com/r/sinaheshmati-javadrone/source/detail?r=71ab225059b3ece2
b3f92f3d602ee4dd05e58d0f

Original comment by sina.hes...@gmail.com on 31 Jul 2012 at 3:34

GoogleCodeExporter commented 8 years ago

Original comment by kroko...@gmail.com on 31 Jul 2012 at 11:38

GoogleCodeExporter commented 8 years ago
Current repository is not intended to be used outside of the project.

Original comment by kroko...@gmail.com on 1 Aug 2012 at 4:16