Skip to content
Advertisement

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”. Now my question: is

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 to package both versions (Linux and Windows),

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. And verify than environment variable

JAVA_HOME incorrectly set. How to reset it?

When I try to run mvn (Apache Maven, that is), I keep getting error “JAVA_HOME” not set. I follow the instructions to set the JAVA_HOME variable as follow; In the terminal: That looks correct, right? Then how come I still getting the incorrect JAVA_HOME error? Answer JAVA_HOME typically should only include the folder that contains the bin folder. So in

Correct way to build “live” directory structure after maven build?

I have a multi module maven project which looks something like: main component_one subcomponent_bob subcomponent_mike subcomponent_joe component_one_aggregate component_two subcomponent_tim subcomponent_lary component_two_aggregate The aggregate projects create parent jars for each of the components containing all of their subcomponents. I have a pom in each directory, and it all deploys to a local repository. Everything works great! Except that I would like

Advertisement