Skip to content
Snippets Groups Projects
Commit db20a6a8 authored by Sebastian Meyer zu Borgsen's avatar Sebastian Meyer zu Borgsen
Browse files

changed maven repo as citk required it to be share/repository

parent 25723ff1
No related branches found
No related tags found
No related merge requests found
...@@ -48,4 +48,4 @@ if(NOT ROS_MAVEN_DEPLOYMENT_REPOSITORY) ...@@ -48,4 +48,4 @@ if(NOT ROS_MAVEN_DEPLOYMENT_REPOSITORY)
endif() endif()
file(WRITE ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs "") file(WRITE ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs "")
install(FILES ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs install(FILES ${ROS_MAVEN_DEPLOYMENT_REPOSITORY}/rospack_nosubdirs
DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/maven) DESTINATION ${ROS_MAVEN_DEPLOYMENT_REPOSITORY})
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Utilities # Utilities
############################################################################## ##############################################################################
set(CATKIN_GLOBAL_MAVEN_DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/maven CACHE PATH "path to which maven artifacts are deployed in your workspace") set(CATKIN_GLOBAL_MAVEN_DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/repository CACHE PATH "path to which maven artifacts are deployed in your workspace") #TODO: make path configurable!
set(CATKIN_GLOBAL_GRADLE_DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/gradle CACHE PATH "path to which gradle configuration and artifacts are deployed in your workspace") set(CATKIN_GLOBAL_GRADLE_DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/gradle CACHE PATH "path to which gradle configuration and artifacts are deployed in your workspace")
# Scans down directories till it finds the gradle wrapper. # Scans down directories till it finds the gradle wrapper.
......
...@@ -44,10 +44,10 @@ if __name__ == '__main__': ...@@ -44,10 +44,10 @@ if __name__ == '__main__':
if args.maven_deployment_repository: if args.maven_deployment_repository:
repo = get_environment_variable(environment_variables, 'ROS_MAVEN_DEPLOYMENT_REPOSITORY') repo = get_environment_variable(environment_variables, 'ROS_MAVEN_DEPLOYMENT_REPOSITORY')
if repo is None: if repo is None:
repo = os.path.join(workspaces[0], 'share', 'maven') repo = os.path.join(workspaces[0], 'share', 'repository') #TODO: make configurable!
else: else:
if repo in [os.path.join(w, 'share', 'maven') for w in workspaces]: if repo in [os.path.join(w, 'share', 'repository') for w in workspaces]: #TODO: make configurable!
repo = os.path.join(workspaces[0], 'share', 'maven') repo = os.path.join(workspaces[0], 'share', 'repository') #TODO: make configurable!
print(repo) print(repo)
elif args.maven_repository: elif args.maven_repository:
repo = get_environment_variable(environment_variables, 'ROS_MAVEN_REPOSITORY') repo = get_environment_variable(environment_variables, 'ROS_MAVEN_REPOSITORY')
...@@ -55,7 +55,7 @@ if __name__ == '__main__': ...@@ -55,7 +55,7 @@ if __name__ == '__main__':
repo = 'https://github.com/rosjava/rosjava_mvn_repo/raw/master' repo = 'https://github.com/rosjava/rosjava_mvn_repo/raw/master'
print(repo) print(repo)
elif args.maven_path: elif args.maven_path:
new_maven_paths = [os.path.join(path, 'share', 'maven') for path in workspaces] new_maven_paths = [os.path.join(path, 'share', 'repository') for path in workspaces] #TODO: make configurable!
maven_paths = get_environment_variable(environment_variables, 'ROS_MAVEN_PATH') maven_paths = get_environment_variable(environment_variables, 'ROS_MAVEN_PATH')
if maven_paths is None: if maven_paths is None:
maven_paths = new_maven_paths maven_paths = new_maven_paths
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment