Getting the below error when doing "mvn clean install" from lo4j2 trunk. I want to take the latest log4j2 jars for my project.
[INFO] Apache Log4j 2 .................................... SUCCESS [0.574s]
[INFO] Apache Log4j API .................................. SUCCESS [5.993s]
[INFO] Apache Log4j Core ................................. FAILURE [4.718s]
[INFO] Apache Log4j 1.x Compatibility API ................ SKIPPED
[INFO] Apache Log4j SLF4J Binding ........................ SKIPPED
[INFO] Apache Log4j to SLF4J Adapter ..................... SKIPPED
[INFO] Apache Log4j Commons Logging Bridge ............... SKIPPED
[INFO] Apache Log4j Flume NG Bridge ...................... SKIPPED
[INFO] Apache Log4j Tag Library .......................... SKIPPED
[INFO] Apache Log4j JMX GUI .............................. SKIPPED
[INFO] Apache Log4j Samples .............................. SKIPPED
[INFO] Apache Log4j Samples: Flume - Common .............. SKIPPED
[INFO] Apache Log4j Samples: Flume - Remote .............. SKIPPED
[INFO] Apache Log4j Samples: Flume - Embedded ............ SKIPPED
[INFO] Apache Log4j 2 BOM ................................ SKIPPED
[INFO] Apache Log4j NoSQL ................................ SKIPPED
[INFO] Apache Log4j Web .................................. SKIPPED
[INFO] Apache Log4J Performance Tests .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.202s
[INFO] Finished at: Sun Jun 29 12:52:27 MST 2014
[INFO] Final Memory: 31M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler -plugin:3.1:testCompile (default-testCompile) on project log4j-core: Compilation failure
[ERROR] /Users/SmartOffers/Documents/log4j2-trunk/log4j/log4j-core/src/test/java/org/apache/logging/log4j/core/async/perftest/PerfTestDriver.java:[177,13] variable _averageOpsPerSec might already have been assigned
That error is coming from the unit tests
You can skip the tests with enabling -Dmaven.test.skip
mvn clean install -Dmaven.test.skip=true
Related
Tried to build and run my local Cucumber project in Jenkins with 2 build steps. 1st step was successful clean install, but 2nd steps (exec:java-Dexec.mainClass="com.mystique.application.Main_Runner") is throwing attached error.
Logs:
Building in workspace C:\Users\807240\.jenkins\workspace\Cucumber
[Cucumber] $ cmd.exe /C "C:\Soumen\Softwares\apache-maven-3.6.1\bin\mvn.cmd -f C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/pom.xml -s C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml -gs C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml clean install && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------< com.opencredo:cucumber-jvm-parallel >-----------------
[INFO] Building cucumber-jvm-parallel 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for info.cukes:cucumber-java:jar:1.2.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.apache.directory.studio:org.apache.commons.codec:jar:1.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.yaml:snakeyaml:jar:1.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The artifact junit:junit-dep:jar:4.11 has been relocated to junit:junit:jar:4.11
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # cucumber-jvm-parallel ---
[INFO] Deleting C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # cucumber-jvm-parallel ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # cucumber-jvm-parallel ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # cucumber-jvm-parallel ---
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # cucumber-jvm-parallel ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 101 source files to C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\test-classes
[WARNING] /C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/src/test/java/com/mystique/roomsteps/RunTests.java: Some input files use unchecked or unsafe operations.
[WARNING] /C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/src/test/java/com/mystique/roomsteps/RunTests.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.19:test (default-test) # cucumber-jvm-parallel ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # cucumber-jvm-parallel ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\cucumber-jvm-parallel-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # cucumber-jvm-parallel ---
[INFO] Installing C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\target\cucumber-jvm-parallel-1.0-SNAPSHOT.jar to C:\Soumen\MavenRepo\com\opencredo\cucumber-jvm-parallel\1.0-SNAPSHOT\cucumber-jvm-parallel-1.0-SNAPSHOT.jar
[INFO] Installing C:\Soumen\Cucumber_WorkspacePhoton\Cucumber\pom.xml to C:\Soumen\MavenRepo\com\opencredo\cucumber-jvm-parallel\1.0-SNAPSHOT\cucumber-jvm-parallel-1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.053 s
[INFO] Finished at: 2020-04-01T18:36:10+05:30
[INFO] ------------------------------------------------------------------------
[Cucumber] $ cmd.exe /C "C:\Soumen\Softwares\apache-maven-3.6.1\bin\mvn.cmd -f C:/Soumen/Cucumber_WorkspacePhoton/Cucumber/pom.xml -s C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml -gs C:\Soumen\Softwares\apache-maven-3.6.1\conf\settings.xml exec:java-Dexec.mainClass=com.mystique.application.Main_Runner && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.496 s
[INFO] Finished at: 2020-04-01T18:36:16+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'java-Dexec.mainClass=com.mystique.application.Main_Runner' in plugin org.codehaus.mojo:exec-maven-plugin:1.5.0 among available goals exec, help, java -> [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/MojoNotFoundException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE
you miss a space between exec:java and -Dexec.mainClass="com.mystique.application.Main_Runner"
I am working on Vaadin 10 which uses Maven,when i do maven Install,I get below error in console,I have check all compiler configuration,I am new to Maven so please help me out :
[INFO] Building My Starter Project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.webjars.bowergithub.polymerelements:iron-ajax:jar:2.1.3 is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) # my-starter-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) # my-starter-project ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) # my-starter-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 17 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) # my-starter-project ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 30 source files to C:\Capdes\Vaadin10\vaadin\my-starter-project\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.583 s
[INFO] Finished at: 2018-08-23T10:57:58+05:30
[INFO] Final Memory: 27M/362M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project my-starter-project: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
I am trying to build CDAP source code by following article from below location-
https://github.com/caskdata/cdap
But when I try mvn clean package, It will gives build error-
.
.
kConfigurer.java:69: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowForkNode.java:21: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowSpecification.java:30: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowToken.java:22: First sentence should end with a period.
Audit done.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Cask Data Application Platform (CDAP) ............. SUCCESS [1:52.768s]
[INFO] CDAP API .......................................... FAILURE [1:03.487s]
[INFO] CDAP Watchdog API ................................. SKIPPED
[INFO] CDAP Protocol ..................................... SKIPPED
[INFO] CDAP Build Common ................................. SKIPPED
[INFO] CDAP Common ....................................... SKIPPED
[INFO] CDAP Notifications APIs ........................... SKIPPED
[INFO] CDAP Explore Client ............................... SKIPPED
[INFO] CDAP Data-Fabric .................................. SKIPPED
[INFO] CDAP Watchdog ..................................... SKIPPED
[INFO] CDAP Notifications ................................ SKIPPED
[INFO] CDAP HBase 0.96 Compatibility ..................... SKIPPED
[INFO] CDAP Data-Fabric Tests ............................ SKIPPED
[INFO] CDAP Java Client .................................. SKIPPED
[INFO] CDAP Test Framework ............................... SKIPPED
[INFO] CDAP App-Fabric ................................... SKIPPED
[INFO] CDAP Explore JDBC Driver .......................... SKIPPED
[INFO] CDAP Explore ...................................... SKIPPED
[INFO] CDAP Unit Test Framework .......................... SKIPPED
[INFO] CDAP CLI .......................................... SKIPPED
[INFO] CDAP Security ..................................... SKIPPED
[INFO] CDAP Gateway ...................................... SKIPPED
[INFO] CDAP UI ........................................... SKIPPED
[INFO] CDAP Standalone ................................... SKIPPED
[INFO] CDAP Java Client Tests ............................ SKIPPED
[INFO] CDAP CLI Tests .................................... SKIPPED
[INFO] CDAP Kafka Server ................................. SKIPPED
[INFO] CDAP HBase 0.94 Compatibility ..................... SKIPPED
[INFO] CDAP HBase 0.98 Compatibility ..................... SKIPPED
[INFO] CDAP Master ....................................... SKIPPED
[INFO] CDAP Distributions ................................ SKIPPED
[INFO] CDAP Application Archetypes ....................... SKIPPED
[INFO] CDAP Spark Java Archetype ......................... SKIPPED
[INFO] CDAP Spark Scala Archetype ........................ SKIPPED
[INFO] CDAP Application Archetype ........................ SKIPPED
[INFO] CDAP Integration Test Framework ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:35.198s
[INFO] Finished at: Sat May 23 18:56:07 IST 2015
[INFO] Final Memory: 27M/100M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-
plugin:2.12.1:check (validate) on project cdap-api: Failed during checkstyle execution:
There are 68 checkstyle errors. -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :cdap-api C:\Users\admin\cdap>
Please suggest what may be cause of this build failure.
Regards
kConfigurer.java:69: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowForkNode.java:21: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowSpecification.java:30: First sentence should end with a period.
C:\Users\admin\cdap\cdap-api\src\main\java\co\cask\cdap\api\workflow\WorkflowToken.java:22: First sentence should end with a period.
I think in the class kConfigurer.java on line 69, the first sentence in the comment should end with a full stop.
Similar with the other 3 statements.
Check out
"First sentence should end with a period."
or
http://apps.topcoder.com/forums/?module=Thread&threadID=505624&start=0&mc=9
if you're confused.
Checkstyle is mostly there so your code looks uniform, so be aware it'll do this often. Thankfully it's usually simple to fix.
This error indicates a problem with checkstyle where the First line with comment is not ending with a period on the lines highlighted. However specific to this project, I don't see any error building from develop.
1) Are you not building from develop branch?
2) Have you modified the suppressions.xml file? - The suppressions.xml line number 30 has disabled this check < suppress checks="JavadocStyle" files="./src/(main|integration)/java/." / >. So unless you have modified that file, you should not be seeing this specific checkstyle error.
3) There is no file called kConfigurer.java in the project. Perhaps it is best to remove all the files not related to CDAP before giving it a try.
Thanks,
Sree
I have this weird situation while analyzing a java 1.7 project with SonarQube 4.2 through Jenkins plugin. Everything goes fine but sonar shows no issues after analysis.
If I run the same project analysis on local sonarqube, I get the issues.
I don't know where to look. Any ideas are welcome.
Analysis log below:
[INFO] --- sonar-maven-plugin:2.2:sonar (default-cli) # ProjectName ---
[INFO] SonarQube version: 4.2
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: /home/user/apps/jenkins/.jenkins/workspace/ProjectName/target/sonar
INFO: SonarQube Server 4.2
[INFO] [09:04:05.526] Load batch settings
[INFO] [09:04:05.900] User cache: /home/user/apps/jenkins/.sonar/cache
[INFO] [09:04:05.910] Install plugins
[INFO] [09:04:06.335] Install JDBC driver
[INFO] [09:04:06.351] Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
[INFO] [09:04:09.686] Initializing Hibernate
[INFO] [09:04:15.289] Load project settings
[INFO] [09:04:15.480] Apply project exclusions
[INFO] [09:04:15.961] ------------- Scan ProjectName
[INFO] [09:04:15.972] Load module settings
[INFO] [09:04:16.623] Language is forced to java
[INFO] [09:04:16.646] Loading technical debt model...
[INFO] [09:04:18.183] Loading technical debt model done: 1538 ms
[INFO] [09:04:18.214] Configure Maven plugins
[INFO] [09:04:18.827] Compare to previous analysis (2014-05-23)
[INFO] [09:04:18.889] Compare over 30 days (2014-04-23, analysis of 2014-05-22 22:24:26.0)
[INFO] [09:04:19.348] Initializer FindbugsMavenInitializer...
[INFO] [09:04:19.362] Initializer FindbugsMavenInitializer done: 14 ms
[INFO] [09:04:19.362] Base dir: /home/user/apps/jenkins/.jenkins/workspace/ProjectName
[INFO] [09:04:19.363] Working dir: /home/user/apps/jenkins/.jenkins/workspace/ProjectName/target/sonar
[INFO] [09:04:19.363] Source dirs: /home/user/apps/jenkins/.jenkins/workspace/ProjectName/src/main/java
[INFO] [09:04:19.363] Binary dirs: /home/user/apps/jenkins/.jenkins/workspace/ProjectName/target/classes
[INFO] [09:04:19.364] Source encoding: UTF-8, default locale: en_US
[INFO] [09:04:19.364] Index files
[INFO] [09:04:22.665] 377 files indexed
[INFO] [09:04:42.007] Quality profile for java: Sonar way with Findbugs CompanyName
[INFO] [09:04:42.350] JaCoCo report not found.
[INFO] [09:04:42.351] JaCoCo IT report not found.
[INFO] [09:04:42.353] JaCoCo reports not found.
[INFO] [09:04:42.647] Sensor JavaSquidSensor...
[INFO] [09:04:42.917] Java Main Files AST scan...
[INFO] [09:04:42.928] 377 source files to be analyzed
[INFO] [09:04:52.932] 109/377 files analyzed, current is /home/user/apps/jenkins/.jenkins/workspace/ProjectName/src/main/java/com/abc/Location.java
[INFO] [09:05:02.934] 257/377 files analyzed, current is /home/user/apps/jenkins/.jenkins/workspace/ProjectName/src/main/java/com/abc/Product.java
[INFO] [09:05:12.934] 362/377 files analyzed, current is /home/user/apps/jenkins/.jenkins/workspace/ProjectName/src/main/java/com/abc/Listener.java
[INFO] [09:05:13.834] 377/377 source files analyzed
[INFO] [09:05:14.138] Java Main Files AST scan done: 31221 ms
[INFO] [09:05:14.166] Java bytecode scan...
[WARN] [09:05:16.194] Class 'java/nio/file/Paths' is not accessible through the ClassLoader.
[WARN] [09:05:16.196] Class 'java/nio/file/Files' is not accessible through the ClassLoader.
[WARN] [09:05:16.455] Class 'java/nio/file/Paths' is not accessible through the ClassLoader.
[WARN] [09:05:16.456] Class 'java/nio/file/Files' is not accessible through the ClassLoader.
[WARN] [09:05:16.983] Class 'java/nio/file/Paths' is not accessible through the ClassLoader.
[WARN] [09:05:16.984] Class 'java/nio/file/Files' is not accessible through the ClassLoader.
[WARN] [09:05:17.058] Class 'java/nio/file/Paths' is not accessible through the ClassLoader.
[WARN] [09:05:17.059] Class 'java/nio/file/Files' is not accessible through the ClassLoader.
[INFO] [09:05:17.543] Java bytecode scan done: 3376 ms
[INFO] [09:05:17.543] Java Test Files AST scan...
[INFO] [09:05:17.543] 0 source files to be analyzed
[INFO] [09:05:17.544] Java Test Files AST scan done: 1 ms
[INFO] [09:05:17.551] 0/0 source files analyzed
[INFO] [09:05:17.680] Package design analysis...
[INFO] [09:05:20.190] Package design analysis done: 2510 ms
[INFO] [09:05:21.947] Sensor JavaSquidSensor done: 39300 ms
[INFO] [09:05:21.948] Sensor Quality gate loader...
[INFO] [09:05:21.948] Sensor Quality gate loader done: 0 ms
[INFO] [09:05:21.948] Sensor QProfileSensor...
[INFO] [09:05:21.967] Sensor QProfileSensor done: 19 ms
[INFO] [09:05:21.968] Sensor SurefireSensor...
[INFO] [09:05:21.970] parsing /home/user/apps/jenkins/.jenkins/workspace/ProjectName/target/surefire-reports
[WARN] [09:05:21.970] Reports path not found: /home/user/apps/jenkins/.jenkins/workspace/ProjectName/target/surefire-reports
[INFO] [09:05:21.971] Sensor SurefireSensor done: 3 ms
[INFO] [09:05:21.972] Sensor CpdSensor...
[INFO] [09:05:21.972] SonarEngine is used for java
[INFO] [09:05:22.016] Cross-project analysis disabled
[INFO] [09:05:28.600] Sensor CpdSensor done: 6628 ms
[INFO] [09:05:28.600] Sensor InitialOpenIssuesSensor...
[INFO] [09:05:28.620] Sensor InitialOpenIssuesSensor done: 20 ms
[INFO] [09:05:28.620] Sensor ProfileEventsSensor...
[INFO] [09:05:28.681] Sensor ProfileEventsSensor done: 61 ms
[INFO] [09:05:28.681] Sensor ProjectLinksSensor...
[INFO] [09:05:28.694] Sensor ProjectLinksSensor done: 13 ms
[INFO] [09:05:28.695] Sensor VersionEventsSensor...
[INFO] [09:05:28.775] Sensor VersionEventsSensor done: 80 ms
[INFO] [09:05:28.775] Sensor FileHashSensor...
[INFO] [09:05:28.809] Sensor FileHashSensor done: 34 ms
[INFO] [09:05:28.810] Sensor Maven dependencies...
[INFO] [09:05:34.026] Sensor Maven dependencies done: 5216 ms
[INFO] [09:05:36.228] Execute decorators...
[INFO] [09:05:50.435] Store results in database
[INFO] [09:05:51.731] ANALYSIS SUCCESSFUL, you can browse http://www.CompanyName.ba/sonar/dashboard/index/com.abc:ProjectName
[INFO] [09:05:51.906] Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
[INFO] [09:05:51.908] Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
[INFO] [09:05:51.991] Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
[INFO] [09:05:52.013] -> Keep one snapshot per day between 2014-04-25 and 2014-05-22
[INFO] [09:05:52.015] -> Keep one snapshot per week between 2013-05-24 and 2014-04-25
[INFO] [09:05:52.016] -> Keep one snapshot per month between 2009-05-29 and 2013-05-24
[INFO] [09:05:52.016] -> Delete data prior to: 2009-05-29
[INFO] [09:05:52.030] -> Clean ProjectName [id=2862]
[INFO] [09:05:52.039] <- Clean snapshot 60195
[INFO] [09:05:53.274] Executing post-job class org.sonar.plugins.buildbreaker.AlertBreaker
[INFO] [09:05:53.275] Executing post-job class org.sonar.plugins.buildbreaker.ForbiddenConfigurationBreaker
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:54 min
[INFO] Finished at: 2014-05-23T09:05:53+01:00
[INFO] Final Memory: 29M/761M
[INFO] ------------------------------------------------------------------------
Sonar analysis completed: SUCCESS
Finished: SUCCESS
I'am trying to deploy a war with jenkins of CloudBees. Sources are located on the Git repository of CloudBbees.
I can generate an deploy the war with the same sources code on my environment.
On the Jenkins of Cloudbees, the build is successful, but I got the following error at the deployment :
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # mysite ---
[INFO] Deleting /scratch/jenkins/workspace/Deploy/target
[INFO]
[INFO] --- lutece-maven-plugin:3.0.2:site-assembly (default-cli) # mysite ---
[INFO] Assembly-site lutece-site artifact...
[INFO] Exploding webapp in /scratch/jenkins/workspace/Deploy/target/mysite-1.0.0-SNAPSHOT...
[INFO] Copying webapp files
[INFO] Local configuration directory is /home/jenkins/lutece/conf/mysite
[WARNING] Local configuration directory /home/jenkins/lutece/conf/mysite does not exist
[INFO] Building jar: /scratch/jenkins/workspace/Deploy/target/mysite.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.993s
[INFO] Finished at: Sat Mar 08 04:26:07 EST 2014
[INFO] Final Memory: 16M/202M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /scratch/jenkins/workspace/Deploy/pom.xml to fr.paris.lutece/mysite/1.0.0-SNAPSHOT/mysite-1.0.0-SNAPSHOT.pom
channel stopped
[cloudbees-deployer] Deploying as (jenkins) to the xxxx-xxxx account
[cloudbees-deployer] Deploying mysite
com.cloudbees.plugins.deployer.exceptions.DeploySourceNotFoundException: Cannot find source for mysite
at com.cloudbees.plugins.deployer.engines.Engine.perform(Engine.java:126)
at com.cloudbees.plugins.deployer.DeployPublisher.perform(DeployPublisher.java:103)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:795)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1030)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:716)
at hudson.model.Run.execute(Run.java:1690)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
Build step 'Deploy applications' marked build as failure
Finished: FAILURE
The application ID mysite exists and is found in the Jenkins configuration.
What should I do ?
In the logs, I can't see the "archiving" phase of the .war file so I believe that your .war was not properly packaged. Did you define it properly in your pom.xml?
Also, check in your workspace/target if the .war was generated.