Skip to content

Tag: maven

How to clean up all maven projects with linux find command?

I want to clean up all my maven projects at once. But I want to avoid to do it step-by-step going through all the folders manually and call mvn clean. So I thought to do this with the find command. I tried the following call: The result was the error message: find: missing argument for “-exec”. No…

Maven Multiple platform dependent Packages

I have written an application in Java that can be used on both Linux and Windows. Currently by running mvn package, my maven build system will generate a .msi using WiX. Is there a way of creating two package ‘tasks’ so I can say either mvn package-windows ormvn package-linux` Answer If you want t…

Switch maven version – mvn command does not get bound

I’m trying to switch maven from 2 to 3 (on Linux) using: Anyway mvn -v still gives version 2, so I always have to execute /path/to/maven3/bin/mvn to use maven. How can I rebind the mvn command to the appropriate maven path? Answer which mvn And then recreate symbolic link to point on new Maven version. …