Error “The goal you specified requires a project to execute but there is no POM in this directory” after executing maven command

This link helped: https://stackoverflow.com/a/11199865/1307104 I edit my command by adding quotes for every parameter like this: mvn install:install-file “-DgroupId=org.mozilla” “-DartifactId=jss” “-Dversion=4.2.5” “-Dpackaging=jar” “-Dfile=C:\Users\AArmijos\workspace\componentes-1.0.4\deps\jss-4.2.5.jar” It’s worked.

maven error: package org.junit does not exist

Ok, you’ve declared junit dependency for test classes only (those that are in src/test/java but you’re trying to use it in main classes (those that are in src/main/java). Either do not use it in main classes, or remove <scope>test</scope>.

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:

How is “mvn clean install” different from “mvn install”?

clean is its own build lifecycle phase (which can be thought of as an action or task) in Maven. mvn clean install tells Maven to do the clean phase in each module before running the install phase for each module. What this does is clear any compiled files you have, making sure that you’re really compiling each module from scratch.