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:
Thats an open issue in Maven https://issues.apache.org/jira/browse/MNG-5787. I was facing the exact same issue and got it fixed by upgrading Maven from 3.3.1 to 3.3.9.
For all AEM users, who experience the same problem after generating a maven project with the archetype: I solved the problem by updating the version of the content-package-maven-plugin to version 0.0.24:
<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>
I was facing the similiar issue and reverting back to maven 3.0.5 worked for me.
upgrade the version of content-package-maven-plugin p
In the end I chose the simplest solution which didn't require a work around of custom POM configuration.
Reverted to using Maven 3.2.5
I had the same problem, I'm using MAC-OS
this command wasnt working:
mvn -PautoInstallPackage install
then I had to go to this folder
/usr/local/apache-maven/apache-maven-3.3.3/
and then i download the 3.0 version and put those files inside ...
and is working !!!!!!!!!!!!!
so I put the folder apache-maven-3.0.5
but I changed the name to apache-maven-3.3.3
, then I closed the terminal, re-opened it and put
export PATH=$PATH:/usr/local/apache-maven/apache-maven-3.3.3/bin
and voila !!!!!!!!!!! is working !!
NOW I CAN USE
mvn -PautoInstallPackage install
TO UPLOAD MY PROJECTS TO AEM CRX/DE