ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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.


  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 was build according to the tutorial with gradlew install and all went right. What is wrong with my approach?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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 {
   maven {
     url ''

and now it can find the dependencies.

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 211 times

Last updated: May 21 '12