Build is getting success in Command prompt but not in eclipse - java

Trying to build a Java Spring project using Maven 3.6.1
Build is getting success in command prompt but the same is failed in eclipse
In eclipse getting this below exception :
Failed to execute goal org.springframework.cloud:spring-cloud-contract-maven-plugin:1.0.3.RELEASE:generateTests (default-generateTests) on project abcd-web: The plugin org.springframework.cloud:spring-cloud-contract-maven-plugin:1.0.3.RELEASE requires Maven version 3.2.5 -> [Help 1]

Related

Build apache ignite with netbeans ide

I want to build apache ignite source code with NetBeans IDE 8.2 and maven 3.3.9 in ubuntu 16.04 but when I build it, it encounters the following error:
Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.1:flatten (flatten) on project ignite-tools: The plugin org.codehaus.mojo:flatten-maven-plugin:1.0.1 requires Maven version 3.2.5 -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
After correcting the problems, you can resume the build with the command
mvn <goals> -rf :ignite-tools
and it is stopped with failure on the "Ignite tools" step.
It is normally built with the terminal command, but I need to build it with IDE.
I've already modified the Maven version, but the same error still appeared.
Just checked: You need to supply updated Maven to Netbeans instead of built-in version.
You have to go Tools -> Options -> Java pane -> Maven tab.
Maven Home: Browse..., choose your own downloaded Maven version directory, since built-in 3.0.2 < 3.2.5. You will have to download a fresh Maven install, I assume you already did.
You also need to choose [x] Skip tests for builds not related to testing, otherwise Apache Ignite will not build for you (running all tests takes 24h or so).
Then you can do Run -> Clean and Build Project, it will build all right.

SonarQube: Fail to get bootstrap index from server: Status returned by url [http://localhost:9000/batch/index] is not valid: [403]

I have setup the sonarQube Version 6.7.5. Server is up and running. I can access this server from web browser in eclipse also.
From eclipse(version: Oxygen.2 Release (4.7.2)), Sonar Maven Plugin launched mvn sonar:sonar
Getting following exception :
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project <project-name>: Unable to execute SonarQube: Fail to get bootstrap index from server: Status returned by url [http://localhost:9000/batch/index] is not valid: [403] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.5.0.1254:sonar (default-cli) on project <project-name>: Unable to execute SonarQube
When I access link http://localhost:9000/batch/index from eclipse browser then web browser shows following details:
sonar-scanner-engine-shaded-6.7.5.jar|4d51abc8c7a7796c4c6d163561d3aaf8; means this URL is accessible from eclipse.
As mentioned in Here I cannot use the sonar maven plugin version 3.2 as i'm having flat modular project structure and it does not work with 3.2
Following Sonar Maven Plugin version does not work for me: 3.5.0.1254, 3.4.1.1168, 3.4.0.905, 3.3.0.603. All versions giving same error as mentioned above.
Does anyone know how to solve this issue?

WSImport fail during maven build

I was trying build some java project, which should be work on java1.6 and maven 3.2.3. After downloading every dependencies i got error:
[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (importWSDL) on project CRIN_V2: Cannot execute: C:\Program Files\Java\jdk1.6.0_43\bin\wsimport.exe -> [Help 1]
Is there any reason why this plugin does not work with java1.6 and maven3.2.3? some ideas?

Maven: Failed to execute goal heroku:deploy-war

I am following this tutorial to create a sample project in IntelliJ Idea and deploy it in Heroku, but when I run the project
the Maven didn't built properly, giving me error:
Failed to execute goal com.heroku.sdk:heroku-maven-plugin:1.1.3:deploy-war (default-cli) on project helloworld: Failed to deploy application: Could not find app name: No 'heroku' remote found.
I solved it. The tutorial is missing one line. Before running this, we have to do
mvn clean install

My project builds in my computer but not in local host jenkins

I am new to Jenikns. Please help to resolve this.
Mine is a Maven project and it builds successfully in Eclipse. But when I am trying to build it through local host Jenkins (Source code from SVN), its throwing error -
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven plugin:1.4.0:java (default-cli) on project IPR: An exception occured while executing the Java class. com.IPR.runner.IPRRunner-e -> [Help 1]
where IPRRunner is part of my framework and the framework library is in my company central repo.

Categories