Maven plugin AEM 6.1 - maven

I am getting error on running
mvn install -PautoInstallPackage
in maven AEM. Getting error:
"unresolvable build extension: Plugin com.day.vault:content-package-maven-plugin:0.0.24 or one of the dependencies could not be resolved".

Related

bypass pom.xml download in apache maven 3.8.x

How can i ask Maven 3.8.x to treat missing pom.xml as WARNING instead of ERROR
We have legacy dependencies that is working fine using Maven 3.6.x but failed in Maven 3.8.x ( Transfer Failed for download pom.xml )
Thanks

Unable to run maven testng project

I am getting this error while running Maven project---
An internal error occurred during: "Launching TC_Testcase_001.loginTest".
org.testng.eclipse.maven.MavenTestNGLaunchConfigurationProvider.getArguments(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
TRy this
uninstall Maven M2e
-Uninstall Testng
Install Testng from eclispe
Install Maven

Could not resolve dependencies for project spmf ca.pfv pom.xml

I am working on open source maven project that use several mining dependencies.
after write this command into component mvn clean install I got ERROR in pom.xml file,enter code here that version of spmf is wrong.
<groupId>ca.pfv</groupId>
<artifactId>spmf</artifactId>
<version>2.33</version> // !!!
full error:
omponents-spmanalysis: Could not resolve dependencies for project
info.collide:components-spmanalysis:jar:2.0.0-SNAPSHOT: Failure to
find ca.pfv:spmf:jar:2.33
I tried to use different versions but same error at maven install.

How to update the version of Maven used by IntellijIdea

I try to open the Maven project in IntellijIdea. This project uses spark and scala. When I run:
mvn clean install -DskipTests
then it gives the error:
[ERROR] Failed to execute goal
org.scalastyle:scalastyle-maven-plugin:0.7.0:check (default) on
project spark-mllib_2.10: Failed during scalastyle execution: You have
50 Scalastyle violation(s)
I think that the problem is in the version of Maven. Indeed in IntellijIdea Settings I have the version Bundled (Maven 3) 3.0.5, while pom.xml defines <maven.version>3.3.3</maven.version>
If I run mvn -version in terminal, it points Maven 3.3.3
So, how can I update the version of Maven used by IntellijIdea?
Install the new version of maven (If not already installed)
Go to File -> Settings and use the search bar to find maven settings
Edit the Maven home directory setting so it points to the installation folder of the desired version
It may sometimes happen that after configuring maven in Intellij and changing as following it does not work by command build, so build it by Intellij maven tool.
Setting > Maven > Importer - select the JDK
Setting > Maven > Runner - select the JRE
After that, try to build by Intellij maven tool instead of Intellij console.

cloudbees jenkins maven installation missing

I am getting following error when building a project in jenkins:
ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist.
[cloudbees-deployer] Skipping deployment as build result is FAILURE
Finished: FAILURE
In Jenkins settings, I tried both options: automatic installation from apache as well as use pre-installed maven on dev#cloud.
What might be missing?

Resources