Ask Your Question
0

Building new rosjava package

asked 2012-05-16 05:27:57 -0500

Markus Eich gravatar image

I try to build a new ros package using rosjava. I followed the tutorial and stored my source code in the new package (i.e. /src/main/java/org/ros/reasoner/). Than I took the sample file for build.gradle

apply plugin: 'application'

mainClassName = 'org.ros.RosRun'

dependencies {
  compile 'ros.rosjava_core:rosjava:0.0.0-SNAPSHOT'
}

When running my gradle with "gradle build" I get the following error.

  :compileJava

  FAILURE: Build failed with an exception.

  * What went wrong:
  Could not resolve all dependencies for configuration ':compile'.
  > Could not find group:ros.rosjava_core, module:rosjava, version:0.0.0-SNAPSHOT.
    Required by:
        :rosjava_cylinder_reasoner:unspecified

rosjava was build according to the tutorial with gradlew install and all went right. What is wrong with my approach?

Cheers,

Markus

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2012-05-21 03:22:42 -0500

Markus Eich gravatar image

I found the mistake. According to the gradle manual, a repository had to be set. I added

repositories {
   mavenLocal()
   maven {
     url 'http://robotbrains.hideho.org/nexus/content/groups/ros-public'
   }
 }

and now it can find the dependencies.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-05-16 05:27:57 -0500

Seen: 164 times

Last updated: May 21 '12