Getting up and running with Maven.
Trying to build a project I\'ve inherited. I\'ve resolved majority of the issues but am now seeing a weird error:
I had the same issue with my project..
The best way to avoid this problem that change your maven version..This problem is only with 3.3.3 version. So when I used 3.5.0 version, I got rid of this problem.
This happened to me when doing:
brew upgrade
It automatically updated my maven version to 3.3.3 that seems to have some issues as I was getting exactly the same message as the original post.
My solution was:
brew uninstall maven // to get rid of 3.3.3
brew install homebrew/versions/maven32 // to install maven
brew pin homebrew/versions/maven32 // to prevent unintended upgrade
And then make sure you have a line like this on ~/.bash_profile pointing to the correct maven path:
export M2_HOME=~/usr/local/Cellar/maven32/3.2.5 ~/.bash_profile
I also had the same issue with content package plugin .17. I work for 2 clients and i had setup a new project and was using newest content package plugin i think version .24. Reverting to earlier maven version of 3.0.5 and restarting the command prompt worked for me.
Now, i have to switch between version. What a cool thing to do :(
Upgrade the version in POM.xml
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<version>0.0.24</version>
<extensions>true</extensions>
<configuration>
<failOnError>true</failOnError>
<username>${crx.username}</username>
<password>${crx.password}</password>
</configuration>
</plugin>
Hope, your problem will resolve.
I was able to solve on my OS X Mac by upgrading maven, e.g. 'brew upgrade maven' from 3.3.3 to 3.3.9 as tschaible suggested.