-
Notifications
You must be signed in to change notification settings - Fork 35
preserve ros maven deployment repository #38
base: kinetic
Are you sure you want to change the base?
preserve ros maven deployment repository #38
Conversation
I more and more doubt the concept of having could someone help me understand how this is meant to be used? |
Hi @fmessmer, I have vague memories of these situations failing 'randomly' in the past. I've always used rosjava from source, so basically my code is always a workspace on top of rosjava's. If I'm not mistaken,
When I source the workspace with |
I also use what is probably the problem is that, with I know about I'm absolutely no gradle/maven expert, so I'm having a hard time getting all these things together maybe a little bit about my context:
as can be seen, I also do this in devel/build space to be conform with the read-only source space. |
4da3ba6
to
0729ea3
Compare
includes #37
i.e. essentially this PR is about 4da3ba6
I was facing problems where my rosjava packages where part of a chained workspace, i.e.:
CMAKE_PREFIX_PATH
something likewsA/devel:wsB/devel:/opt/ros/kinetic
my rosjava packages are located in
wsB/src
if I
catkin build
my chain bottom-up and then finally source the top-mostwsA/devel/setup.bash
,ROS_MAVEN_DEPLOYMENT_REPOSITORY
will be set towsA/devel/share/maven
when re-compiling my rosjava packages in
wsB
, now some of them fail(in particular the action message generation part)
they have been compiling successfully while
ROS_MAVEN_DEPLOYMENT_REPOSITORY
has been set towsA/devel/share/maven
this commit preserves the the environment variable
ROS_MAVEN_DEPLOYMENT_REPOSITORY
if it has been set (by user or by the first rosjava_build_tools envhook) and the set value is part ofCMAKE_PREFIX_PATH
did anybody experience a similar issue when using rosjava packages with chained workspaces?
I don't know what has been the intention behind alway setting
ROS_MAVEN_DEPLOYMENT_REPOSITORY
to the top-most workspace[0]