cmake: Generate 'java' and 'java_install' targets that also call 'clean'
It's a common thing to call Maven with the 'clean' goal, such as
mvn clean package
or
mvn clean install
@@ -960,12 +960,12 @@ function (generate_kurento_libraries)
if (${Maven_FOUND})
add_custom_target(java
- COMMAND ${Maven_EXECUTABLE} package
+ COMMAND ${Maven_EXECUTABLE} clean package
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/java
)
add_custom_target(java_install
- COMMAND ${Maven_EXECUTABLE} install
+ COMMAND ${Maven_EXECUTABLE} clean install
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/java
)
else()
