I\'m making some tests and I would like to understand why after execute the command mvn clean I need to execute \"Maven > Update Project\" before run mvn
Here is what happens:
mvn clean deletes the target directorymvn package performs some work, but then encounters a compilation error due to a missing dependency. That's why the target folder is in error. target directory has all the compiled classes.mvn package now succeeds, because it finds all the classes already compiled and doesn't need to perform any compilation.Ultimately, the problem is in the project configuration in pom.xml. I had the same problem, and after adding the missing dependency I successfully compiled project with Maven.