I'm using maven for building the automation project and using junit for running my test scripts . Its BBD framework where we have feature file, stepdefinition page.I have created pipeline , agent on azure devops . When running the pipeline it showing as build successful but still no tests cases are running .
Logs in maven :-
2022-10-07T13:21:37.3334382Z ##[section]Starting: Maven SmartBots/pom.xml
2022-10-07T13:21:37.3341187Z ==============================================================================
2022-10-07T13:21:37.3341428Z Task : Maven
2022-10-07T13:21:37.3341633Z Description : Build, test, and deploy with Apache Maven
2022-10-07T13:21:37.3341821Z Version : 3.169.2
2022-10-07T13:21:37.3341987Z Author : Microsoft Corporation
2022-10-07T13:21:37.3342231Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/maven
2022-10-07T13:21:37.3342495Z ==============================================================================
2022-10-07T13:21:38.2158528Z [command]/usr/bin/mvn -version
2022-10-07T13:21:38.2158912Z Apache Maven 3.5.4 (Red Hat 3.5.4-5)
2022-10-07T13:21:38.2159093Z Maven home: /usr/share/maven
2022-10-07T13:21:38.2159584Z Java version: 1.8.0_345, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.345.b01-1.el8_6.x86_64/jre
2022-10-07T13:21:38.2160036Z Default locale: en_US, platform encoding: UTF-8
2022-10-07T13:21:38.2160548Z OS name: "linux", version: "4.18.0-372.26.1.el8_6.x86_64", arch: "amd64", family: "unix"
2022-10-07T13:21:38.2163101Z SYSTEMVSSCONNECTION exists true
2022-10-07T13:21:38.2164119Z [command]/usr/bin/mvn -f /E/azdosagents/agent2/_work/113/s/SmartBots/pom.xml test
2022-10-07T13:21:38.7149886Z [INFO] Scanning for projects...
2022-10-07T13:21:38.7906399Z [INFO]
2022-10-07T13:21:38.7921739Z [INFO] ------------------------< com.company:SmartBots >-------------------------
2022-10-07T13:21:38.7923753Z [INFO] Building com.optum.ManualTracker 0.1.1-SNAPSHOT
2022-10-07T13:21:38.7925045Z [INFO] --------------------------------[ jar ]---------------------------------
2022-10-07T13:21:39.7344370Z [INFO]
2022-10-07T13:21:39.7433482Z [INFO] --- maven-resources-plugin:2.6:resources (default-resources) # SmartBots ---
2022-10-07T13:21:39.7994520Z [INFO] Using 'UTF-8' encoding to copy filtered resources.
2022-10-07T13:21:39.8047081Z [INFO] Copying 21 resources
2022-10-07T13:21:39.8074402Z [INFO]
2022-10-07T13:21:39.8075718Z [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # SmartBots ---
2022-10-07T13:21:39.8834648Z [INFO] Nothing to compile - all classes are up to date
2022-10-07T13:21:39.8835474Z [INFO]
2022-10-07T13:21:39.8836068Z [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # SmartBots ---
2022-10-07T13:21:39.8901220Z [INFO] Using 'UTF-8' encoding to copy filtered resources.
2022-10-07T13:21:39.8901907Z [INFO] skip non existing resourceDirectory /E/azdosagents/agent2/_work/113/s/SmartBots/src/test/resources
2022-10-07T13:21:39.8902441Z [INFO]
2022-10-07T13:21:39.8902979Z [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # SmartBots ---
2022-10-07T13:21:39.8903395Z [INFO] No sources to compile
2022-10-07T13:21:39.8903634Z [INFO]
2022-10-07T13:21:39.8904175Z [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # SmartBots ---
2022-10-07T13:21:39.9333349Z [INFO] ------------------------------------------------------------------------
2022-10-07T13:21:39.9334415Z [INFO] BUILD SUCCESS
2022-10-07T13:21:39.9334944Z [INFO] ------------------------------------------------------------------------
2022-10-07T13:21:39.9335464Z [INFO] Total time: 1.237 s
2022-10-07T13:21:39.9337421Z [INFO] Finished at: 2022-10-07T08:21:39-05:00
2022-10-07T13:21:39.9338075Z [INFO] ------------------------------------------------------------------------
2022-10-07T13:21:40.0354312Z No test result files matching /E/azdosagents/agent2/_work/113/s/**/surefire-reports/TEST-*.xml were found, so publishing JUnit test results is being skipped.
2022-10-07T13:21:40.0408313Z ##[section]Finishing: Maven SmartBots/pom.xml
Related
Im new at fhir server.
My code mainly from repo https://github.com/hapifhir/hapi-fhir-jpaserver-starter
I tried to install fhir server on my ubuntu 20.04(lts) and stuck with this problem.
my mvn version
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 17.0.5, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-50-generic", arch: "amd64", family: "unix"
ERROR
[INFO] Scanning for projects...
[WARNING] The project ca.uhn.hapi.fhir:hapi-fhir-jpaserver-starter:war:6.2.1 uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html
[INFO]
[INFO] ------------< ca.uhn.hapi.fhir:hapi-fhir-jpaserver-starter >------------
[INFO] Building HAPI FHIR JPA Server - Starter Project 6.2.1
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.4.48.v20220622:run (default-cli) > test-compile # hapi-fhir-jpaserver-starter >>>
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0:enforce (enforce-maven) # hapi-fhir-jpaserver-starter ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.8.8:prepare-agent (default-prepare-agent) #
hapi-fhir-jpaserver-starter ---
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/root/hapi-fhir-jpaserver-starter/target/jacoco.exec,excludes=ca/uhn/fhir/model/dstu2/**/*.class:ca/uhn/fhir/jpa/rp/r5/*.class:ca/uhn/fhir/jpa/rp/r4/*.class:ca/uhn/fhir/jpa/rp/r4b/*.class:ca/uhn/fhir/jpa/rp/dstu3/*.class:ca/uhn/fhir/jpa/rp/dstu2/*.class,dumponexit=true
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # hapi-fhir-jpaserver-starter ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # hapi-fhir-jpaserver-starter ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 31 source files to /root/hapi-fhir-jpaserver-starter/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.158 s
[INFO] Finished at: 2022-11-21T15:39:38Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project hapi-fhir-jpaserver-starter: Compilation failure -> [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/MojoFailureException
I have a fairly large maven project that if compiled (using mvn package or mvn install), stuck on a packaging stage for 10+ hours:
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- maven-source-plugin:3.1.0:jar-no-fork (attach-sources) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-source-plugin:3.1.0:test-jar-no-fork (attach-sources) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:test-jar (default) # spookystuff-mldsl ---
[INFO] Building jar: /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) # spookystuff-mldsl ---
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/.flattened-pom.xml to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT.pom
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-javadoc.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-sources.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-test-sources.jar
[INFO] Installing /home/peng/git-dev/scala-2.11/datapassports/spookystuff/mldsl/target/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar to /home/peng/.m2/repository/com/tribbloids/spookystuff/spookystuff-mldsl/0.6.2-SNAPSHOT/spookystuff-mldsl-0.6.2-SNAPSHOT-tests.jar
(this is the last line of output)
The build output can be observed on CI server, with similar output:
https://app.codeship.com/projects/166836/builds/48698210?pipeline=103aace8-047a-47e4-9cb9-018c3ce0693a
I don't know what have caused this behaviour, but I suspect that a bug in maven-shade-plugin has caused dependency reduced pom generation to move into a indefinitely loop. How can I confirm this hypothesis collect enough evidence to report to the plugin maintainers?
I have some project which is maven based.
the same project builds well on the windows but fails on the linux
Windows --------------- :
C:\project\code\microservice\ConfigService>mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.conf:ConfigService >----------------------
[INFO] Building ConfigService 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # ConfigService ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # ConfigService ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to C:\project\code\microservice\ConfigService\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\project\code\microservice\ConfigService\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # ConfigService ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) # ConfigService ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) # ConfigService ---
[INFO] Building jar: C:\project\code\microservice\ConfigService\target\ConfigService-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:2.1.0.RELEASE:repackage (repackage) # ConfigService ---
[INFO] Replacing main artifact C:\project\code\microservice\ConfigService\target\ConfigService-0.0.1-SNAPSHO
T.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.811 s
[INFO] Finished at: 2019-03-04T15:42:57+05:30
[INFO] ------------------------------------------------------------------------
Linux------------
user#myhost:~/project/work/ConfigService$ mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.conf:ConfigService >----------------------
[INFO] Building ConfigService 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) # ConfigService ---
[INFO] Deleting /home/user/project/work/ConfigService/target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) # ConfigService ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # ConfigService ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 51 source files to /home/user/project/work/ConfigService/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.479 s
[INFO] Finished at: 2019-03-04T05:28:06-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ConfigService: Compilation failure -> [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/MojoFailureException
So what would be the major cause for this issue, looks everything fine from other option
On ubuntu I have Java version
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T14:41:47-04:00)
Maven home: /home/user/tools/maven/apache-maven-3.6.0
Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-29-generic", arch: "amd64", family: "unix"
On windows
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-25T00:11:47+05:30)
Maven home: C:\project\softs\apache-maven-3.6.0\bin..
Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_201\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows
If the log you pasted is original then I could see that on linux path is not correct
/home/user/project/work/ConfigServicetarget/classes
After ConfigService it should use /
try to see in your files which config is missing or you need yo provide your source code.
Apache Maven 3.5.2 - the pom.xml doesn't declare the surefire plugin explicitly, but the effective pom.xml shows 2.18.1
When I run 'mvn test' - it ends successfully, it doesn't say that it can't find any test cases, but there is no trace of the test cases. This is all I see:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SpreadSheetUploadWeb 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.fasterxml.jackson.core:jackson-databind:jar:1.9.10 is missing, no dependency information available
[WARNING] The POM for com.fasterxml.jackson.core:jackson-annotations:jar:1.9.10 is missing, no dependency information available
[WARNING] The POM for com.fasterxml.jackson.core:jackson-core:jar:1.9.10 is missing, no dependency information available
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # SpreadSheetUploadWeb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 22 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # SpreadSheetUploadWeb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # SpreadSheetUploadWeb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # SpreadSheetUploadWeb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) # SpreadSheetUploadWeb ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
My pom.xml has jar specified, and my test case is in:
c:/SpreadSheetUploadWeb/src/test/java/com/ibm/cio/cloud/cost/spreadsheet/dao/UnitTestJdbcCostSpreadsheetDAO.java
It works perfectly when I run test explicitly like this:
mvn surefire:test -Dtest=UnitTestJdbcCostSpreadsheetDAO.java
Why won't it run when I just run: mvn test ?
By default surefire search for files following this patterns:
**/Test*.java
**/*Test.java
**/*Tests.java
**/*TestCase.java
http://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html
I'm using Jenkins to build the Jenkins code in the GitHub repository but I'm having a problem:
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Jenkins war 1.626
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # jenkins-war ---
[INFO] Deleting C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-maven) # jenkins-war ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:display-info (display-info) # jenkins-war ---
[INFO] Maven Version: 3.3.3
[INFO] JDK Version: 1.7.0_79 normalized as: 1.7.0-79
[INFO] OS Info: Arch: amd64 Family: windows Name: windows 8.1 Version: 6.3
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (default) # jenkins-war ---
[INFO] Adding ignore: org.eclipse.jetty.spdy.*
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-banned-dependencies) # jenkins-war ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:timestamp-property (timestamp-property) # jenkins-war ---
[INFO] Setting property 'now' to '08/30/2015 18:58 GMT'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:regex-property (version-property) # jenkins-war ---
[INFO] No match to regex '-SNAPSHOT' found in '1.626'.
[INFO] Setting property 'build.version' to '1.626'.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) # jenkins-war ---
[INFO] Source directory: C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target\generated-sources\localizer added.
[INFO]
[INFO] --- gmaven-plugin:1.5-jenkins-3:generateStubs (default) # jenkins-war ---
[INFO] No sources found for Java stub generation
[INFO]
[INFO] --- maven-dependency-plugin:2.8:list (list-dependencies) # jenkins-war ---
[INFO]
[INFO] --- maven-dependency-plugin:2.8:unpack-dependencies (executable-war-header) # jenkins-war ---
[INFO] Unpacking C:\.m2\repository\org\jenkins-ci\executable-war\1.30\executable-war-1.30.jar to C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target\jenkins with includes "**/*.class" and excludes ""
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy (resgen) # jenkins-war ---
[INFO] Configured Artifact: org.jenkins-ci.main:remoting:?:jar
[INFO] Configured Artifact: org.jenkins-ci.main:remoting:?:jar
[INFO] Configured Artifact: org.jenkins-ci.main:cli:jar-with-dependencies:?:jar
[INFO] Configured Artifact: org.jenkins-ci:winstone:?:jar
[INFO] Configured Artifact: org.jenkins-ci.main:maven-plugin:?:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:ssh-slaves:1.9:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:credentials:1.18:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:ssh-credentials:1.10:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:subversion:1.54:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:cvs:2.11:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:ant:1.2:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:javadoc:1.1:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:translation:1.10:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:external-monitor-job:1.4:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:ldap:1.11:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:pam-auth:1.1:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:mailer:1.11:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:matrix-auth:1.1:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:windows-slaves:1.0:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:antisamy-markup-formatter:1.1:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:matrix-project:1.4.1:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:script-security:1.13:hpi
[INFO] Configured Artifact: org.jenkins-ci.plugins:junit:1.2-beta-4:hpi
[INFO] Copying remoting-2.52.jar to C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target\jenkins\WEB-INF\remoting.jar
[INFO] Copying remoting-2.52.jar to C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target\jenkins\WEB-INF\slave.jar
[INFO] Copying classes to C:\Program Files (x86)\Jenkins\workspace\jenkins_scc12_test\war\target\jenkins\WEB-INF\jenkins-cli.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jenkins main module ................................ SUCCESS [ 2.497 s]
[INFO] Jenkins cli ........................................ SUCCESS [ 6.507 s]
[INFO] Jenkins core ....................................... SUCCESS [12:32 min]
[INFO] Jenkins war ........................................ FAILURE [ 10.954 s]
[INFO] Test harness for Jenkins and plugins ............... SKIPPED
[INFO] Jenkins plugin POM ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:55 min
[INFO] Finished at: 2015-08-31T02:58:30+08:00
[INFO] Final Memory: 179M/740M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy (resgen) on project jenkins-war: Artifact has not been packaged yet. When used on reactor artifact, copy should be executed after packaging: see MDEP-187. -> [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 :jenkins-war
Build step 'Invoke top-level Maven targets' marked build as failure
Recording test results
Finished: FAILURE
The code I'm using is of the last release: https://github.com/jenkinsci/jenkins/tree/8d8703a781f83be19086592e0c8fa4b4c14da13c
I'm using Maven to build.
I'm very new to this. Please help me to solve this problem.
JDK version: 1.7.0
Maven version: 3.3.3