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.
Related
I am new to Java Springboot and I have been tinkering with it for a while now (implement caching ).
I am trying to recreate the **
samples/coherence-spring-demo/coherence-spring-demo-boot project
** in the following Github repo https://github.com/coherence-community/coherence-spring following the instructions in https://spring.coherence.community/3.1.0/refdocs/reference/htmlsingle/index.html#coherence-spring-documentation
I have been working on VS Code with the STS extension and when I click on run, the application runs fine. But when I build it using
mvnw clean package
I get the following error.
[ERROR] Failed to execute goal on project coherence-spring-demo-boot:
Could not resolve dependencies for project
com.oracle.coherence.spring:coherence-spring-demo-boot:jar:3.3.0-SNAPSHOT:
com.oracle.coherence.spring:coherence-spring-demo-core:jar:3.3.0-SNAPSHOT
was not found in
https://oss.sonatype.org/content/repositories/snapshots during a
previous attempt. This failure was cached in the local repository and
resolution is not reattempted until the update interval of
snapshots-repo has elapsed or updates are forced -> [Help 1] [ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch. [ERROR] Re-run Maven using the -X switch to enable full
debug logging. [ERROR] [ERROR] For more information about the errors
and possible solutions, please read the following articles: [ERROR]
[Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
I have checked the pom.xml file and the dependency has been added and also checked the nexus repository to find the same package.
If it could resolve the dependency while running the application while running, why could it not have found the dependency while trying to build it?
Also can you tell me what the difference between Run as spring-boot app and building the package is in springboot? and
Run as Spring-boot app -> Startup Embedded Tomcat server (or ThymeLeaf or Jetty) along with your spring boot application (Starts up IOC container, initializes beans , dependencies etc internally )
mvn clean package ->
mvn -> Maven command
clean -> Maven goal, which cleans (removes) classes, resources and artifacts available as part of Target folder
package -> Maven phase, which packages your application (In JAR or WAR whichever specified in POM) and puts the artifact in your local repository
Maven is a build tool i.e. It provides a basic structure of how your project should look like or be organized. For example, which file stays where, place for your external resources, dependencies etc
While, Spring-boot is a module of Spring framework which can be simply run as Java application
Read more on mvn here
https://www.journaldev.com/33659/maven-build-lifecycle-phases-goals#:~:text=Maven%20goals%20represent%20a%20specific,goals%20through%20the%20command%20line.&text=Here%20is%20an%20example%20to,goal%20from%20the%20command%20line.
Spring boot features and technicals here
https://spring.io/projects/spring-boot
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?
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?
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
I am getting following error in building the maven project. Any idea in solving this?
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project pwc-em: Cannot get the branch information from the scm repository :
[ERROR] Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "git" (in directory "C:\Users\vmasama\Documents\workspace-sts-3.7.2.RELEASE\pwc-em"): CreateProcess error=2, The system cannot find the file specified
[ERROR] ->
I solved the same issue by updating my git version. But downgrading the version of the maven plugin to 1.13 will also solve this issue.
buildnumber-maven-plugin v1.4 works with git v2.9.2 but not with v1.9.*
buildnumber-maven-plugin v1.3 works with git v1.9.*