Maven Install on Mac OS X

OS X prior to Mavericks (10.9) actually comes with Maven 3 built in. If you’re on OS X Lion, you won’t have java installed by default. Run java by itself and it’ll prompt you to install it. Assuming qualifications are met, run mvn -version and see some output like this:

mvn command not found in OSX Mavrerick

Try following these if these might help: Since your installation works on the terminal you installed, all the exports you did, work on the current bash and its child process. but is not spawned to new terminals. env variables are lost if the session is closed; using .bash_profile, you can make it available in all sessions, since when a bash session starts, it … Read more

Lombok and Maven

This should work as is, and has nothing to do with IntelliJ idea. But I would: make sure the @Data annotation is the lombok one remove the repository definition (maven central is fine) use a recent lombok version (1.16.0 as of this writing) rebuild (mvn clean package) I think the lombok jar is not found by maven in … Read more

‘react-scripts’ is not recognized as an internal or external command

I’ve got a maven project, within which is JavaScript project cloned as a git sub-module. So the directory structure looks like mavenapp/src/main/javascript/[npm project files] Inside my package.json, the test looks like this: but when I try to run npm test, it says ‘react-scripts’ is not recognized as an internal or external command, Interestingly, when I clone the … Read more

Maven skip tests

I am using Maven 2.2.1 and to build my project I used this command However, the build failed saying it couldn’t find one of the artifact. However, when I used: everything worked fine. So far I have been thinking that these 2 commands are equivalent. However, this link seems to suggest that -Dmaven.test.skip=true also skips … Read more