jdbc.OracleDriver error while building Jenkins job - oracle

I would be very thankful, if somebody could explain this to me. What the hell this Jenkins is trying to do in my situation.
Here is the piece of my log file:
I have created the simple job. Have linked to it my SVN repository, have set Maven Goals, same things as always. But this time he refused to work. The last 3 lines are repeating every minute. I have waited for an hour and then aborted the job.
In my MAVEN_OPTS I said to him where he can find JDBC Driver.
I have a couple of another jobs with the same configuration, and they are working pretty fine.
Is Jenkins trying to download the jdbc Driver for each testcase? Or am I wrong?
How can I fix this?
Thanks for the help.
P.S. here is the log file, at the end I have aborted job manually.
Started by user admin
Building in workspace /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace
[WS-CLEANUP] Deleting project workspace...
Checking out a fresh workspace because there's no workspace at /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace
Cleaning local Directory .
Checking out http://development.bonprix.net/svn/Java/app/Invoice/InvoiceUserInterface/trunk/InvoiceUserInterface at revision '2016-07-28T13:44:48.317 +0000'
A src
A src/test
A src/test/resources
A src/test/resources/testng-suite.xml
A src/test/resources/application-test.properties
A src/test/java
A src/test/java/de
A src/test/java/de/bonprix
A src/test/java/de/bonprix/dinvoice
A src/test/java/de/bonprix/dinvoice/modules
A src/test/java/de/bonprix/dinvoice/modules/invoice
A src/test/java/de/bonprix/dinvoice/modules/invoice/InvoicePresenterTest.java
A src/main
A src/main/java
A src/main/java/de
A src/main/java/de/bonprix
A src/main/java/de/bonprix/dinvoice
A src/main/java/de/bonprix/dinvoice/DInvoiceUI.java
A src/main/java/de/bonprix/dinvoice/model
AU src/main/java/de/bonprix/dinvoice/model/DiscountsClaims.java
AU src/main/java/de/bonprix/dinvoice/model/AuShipmentType.java
AU src/main/java/de/bonprix/dinvoice/model/GnCurrency.java
AU src/main/java/de/bonprix/dinvoice/model/IvType.java
AU src/main/java/de/bonprix/dinvoice/model/InvoicePosition.java
A src/main/java/de/bonprix/dinvoice/dao
AU src/main/java/de/bonprix/dinvoice/dao/InvoiceDao.java
A src/main/java/de/bonprix/dinvoice/modules
A src/main/java/de/bonprix/dinvoice/modules/invoice
A src/main/java/de/bonprix/dinvoice/modules/invoice/ui
A src/main/java/de/bonprix/dinvoice/modules/invoice/ui/InvoiceViewImpl.java
A src/main/java/de/bonprix/dinvoice/modules/invoice/InvoiceModule.java
A src/main/java/de/bonprix/dinvoice/modules/invoice/InvoicePresenter.java
A src/main/java/de/bonprix/dinvoice/modules/invoice/InvoiceView.java
A src/main/resources
A src/main/resources/de
A src/main/resources/de/bonprix
A src/main/resources/de/bonprix/dinvoice
A src/main/resources/de/bonprix/dinvoice/dao
AU src/main/resources/de/bonprix/dinvoice/dao/InvoiceDao.xml
A src/main/resources/de/bonprix/dinvoice/dinvoice.css
A src/main/resources/application.properties
A src/main/resources/i18n
A src/main/resources/i18n/dinvoice-messages.properties
A src/main/resources/i18n/dinvoice-messages_en.properties
A src/main/resources/i18n/dinvoice-messages_de.properties
A src/main/webapp
A pom.xml
At revision 21398
Parsing POMs
Established TCP socket on 38864
[workspace] $ /usr/lib/jvm/java-8-openjdk-amd64//bin/java -Djava.awt.headless=true -Doracle.driver.path=/opt/oracle/instantclient_11_2/ojdbc6.jar -cp /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.7.jar:/opt/maven/maven-current/boot/plexus-classworlds-2.5.1.jar:/opt/maven/maven-current/conf/logging jenkins.maven3.agent.Maven31Main /opt/maven/maven-current /var/jenkins_home/war/WEB-INF/lib/remoting-2.60.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.7.jar /var/jenkins_home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar 38864
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/pom.xml -s /opt/maven/maven-current/conf/settings.xml -gs /opt/maven/maven-current/conf/settings.xml clean deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for de.bonprix.invoice:InvoiceUserInterface:war:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:cobertura-maven-plugin is missing. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 624, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:properties-maven-plugin is missing. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 637, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 628, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. # line 60, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:buildnumber-maven-plugin is missing. # line 68, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 612, column 12
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.groupId' for org.springframework:spring-context-support:jar with value '*' does not match a valid id pattern. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 221, column 16
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org.springframework:spring-context-support:jar with value '*' does not match a valid id pattern. # de.bonprix.base.webbase:WebBase:4.4.26, /opt/maven/cache/de/bonprix/base/webbase/WebBase/4.4.26/WebBase-4.4.26.pom, line 222, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[HUDSON] Collecting dependencies info
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building InvoiceUserInterface 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (727 B at 3.7 KB/sec)
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/build-helper-maven-plugin/maven-metadata.xml (727 B at 3.7 KB/sec)
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml (605 B at 19.1 KB/sec)
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/cobertura-maven-plugin/maven-metadata.xml (605 B at 17.9 KB/sec)
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/properties-maven-plugin/maven-metadata.xml
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/properties-maven-plugin/maven-metadata.xml
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/properties-maven-plugin/maven-metadata.xml (421 B at 14.7 KB/sec)
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/properties-maven-plugin/maven-metadata.xml (421 B at 13.3 KB/sec)
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/buildnumber-maven-plugin/maven-metadata.xml
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/buildnumber-maven-plugin/maven-metadata.xml
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-release/org/codehaus/mojo/buildnumber-maven-plugin/maven-metadata.xml (602 B at 21.8 KB/sec)
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/codehaus/mojo/buildnumber-maven-plugin/maven-metadata.xml (602 B at 21.8 KB/sec)
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-release/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml
[INFO] Downloading: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-snapshot/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml (743 B at 29.0 KB/sec)
[INFO] Downloaded: http://digistyle.bonprix.net/artifactory/plugins-release/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml (743 B at 27.9 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # InvoiceUserInterface ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.12:add-source (add-source) # InvoiceUserInterface ---
[INFO] Source directory: /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/target/generated-sources/apt added.
[INFO] Source directory: /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/target/generated-sources/classes added.
[INFO]
[INFO] --- maven-processor-plugin:2.2.4:process (process) # InvoiceUserInterface ---
[WARNING] No processors specified. Using default discovery mechanism.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # InvoiceUserInterface ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) # InvoiceUserInterface ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 13 source files to /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # InvoiceUserInterface ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) # InvoiceUserInterface ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # InvoiceUserInterface ---
[INFO] Surefire report directory: /var/jenkins_home/jobs/SCM/jobs/DInvoice/jobs/InvoiceUserInterface/workspace/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running de.bonprix.dinvoice.modules.invoice.InvoicePresenterTest
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator#7a92922
Jul 28, 2016 1:44:56 PM org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
INFO: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener#6121c9d6, org.springframework.test.context.support.DependencyInjectionTestExecutionListener#87f383f, org.springframework.test.context.support.DirtiesContextTestExecutionListener#4eb7f003, org.springframework.test.context.transaction.TransactionalTestExecutionListener#eafc191, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener#612fc6eb]
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Jul 28, 2016 1:44:57 PM org.springframework.context.support.GenericApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext#77a57272: startup date [Thu Jul 28 13:44:57 UTC 2016]; root of context hierarchy
Jul 28, 2016 1:44:57 PM org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'aspectConfiguration' of type [class de.bonprix.configuration.AspectConfiguration$$EnhancerBySpringCGLIB$$48895d0c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Using test database connection test at jdbc:oracle:thin:#(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.1.194)(PORT=18000)))(CONNECT_DATA=(SID=orcl)))
Jul 28, 2016 1:44:58 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
INFO: Loaded JDBC driver: oracle.jdbc.OracleDriver
Build was aborted
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Aborted by admin
channel stopped
[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] done
Finished: ABORTED

Related

Jenkins job produces a successful build without completing the pipeline [duplicate]

I configure my job as freestyle. And I need to run cases to a specified machine. MY project is maven project. I want to copy reports to master node after cases finish to run.
Jenkins ver. 1.483
I use pscp to copy files which works fine by hand in windows command prompt.
My command looks like:
mvn clean install -U
pscp -P 22 -i pgrsa.ppk -r %SLAVE_JENKINS_HOME%\workspace\%JOB_NAME%\target\surefire-reports ci#master:%JENKINS_HOME%/workspace/%JOB_NAME%
The pscp seems not work. When I use command like this:
echo EchoCommand is working.===
mvn clean install -U
echo EchoCommand is working again.===
EchoCommand is working again.===Not show at the output of the console while EchoCommand is working.=== has been shown. Why? Anyone knows that?
EDIT
C:\Tools\Jenkins\workspace\myproject-testng-sample-windows>echo EchoCommand is working.===
EchoCommand is working.===
C:\Tools\Jenkins\workspace\myproject-testng-sample-windows>mvn clean install -U
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.pak.automation:myproject-testng-sample:jar:1.0.0-SNPASHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing. # com.pak:pak-parent:2.0.0, C:\Users\pak\.m2\repository\com\pak\pak-parent\2.0.0\pak-parent-2.0.0.pom, line 484, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. # com.pak:pak-parent:2.0.0, C:\Users\pak\.m2\repository\com\pak\pak-parent\2.0.0\pak-parent-2.0.0.pom, line 472, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building myproject-testng-sample 1.0.0-SNPASHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://mvn.pak.com/pakrepo/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
Downloading: http://mvn.pak.com/pak-releases/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
Downloading: http://mvn.pak.com/pak-snapshots/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
Downloading: http://mvn.pak.com/third-party/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
377/377 B
377/377 B 377/377 B
Downloaded: http://mvn.pak.com/third-party/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml (377 B at 1.5 KB/sec)
Downloaded: http://mvn.pak.com/pakrepo/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml (377 B at 1.4 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # myproject-testng-sample ---
[INFO] Deleting C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\target
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) # myproject-testng-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) # myproject-testng-sample ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.3:testResources (default-testResources) # myproject-testng-sample ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) # myproject-testng-sample ---
[INFO] Compiling 4 source files to C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # myproject-testng-sample ---
[INFO] Surefire report directory: C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestSuite
Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator#4d20a47e
testMethod1
testMethod2
testMethodmyproject2
testmyprojectSample
testMethod1
testMethod2
testMethodmyproject2
testmyprojectSample
we wont run test with class name: com.pak.myproject.sample.NoInjectionTest
we wont run test with class name: com.pak.myproject.sample.NoInjectionTest
I am test method 2
parameter in test method is: firstname
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.895 sec
Results :
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # myproject-testng-sample ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\target\myproject-testng-sample-1.0.0-SNPASHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.1.1:jar (attach-sources) # myproject-testng-sample >>>
[INFO]
[INFO] <<< maven-source-plugin:2.1.1:jar (attach-sources) # myproject-testng-sample <<<
[INFO]
[INFO] --- maven-source-plugin:2.1.1:jar (attach-sources) # myproject-testng-sample ---
[INFO] No sources in project. Archive not created.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # myproject-testng-sample ---
[INFO] Installing C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\target\myproject-testng-sample-1.0.0-SNPASHOT.jar to C:\Users\pak\.m2\repository\com\pak\automation\myproject-testng-sample\1.0.0-SNPASHOT\myproject-testng-sample-1.0.0-SNPASHOT.jar
[INFO] Installing C:\Tools\Jenkins\workspace\myproject-testng-sample-windows\pom.xml to C:\Users\pak\.m2\repository\com\pak\automation\myproject-testng-sample\1.0.0-SNPASHOT\myproject-testng-sample-1.0.0-SNPASHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.649 s
[INFO] Finished at: 2014-04-08T13:19:58+08:00
[INFO] Final Memory: 10M/24M
[INFO] ------------------------------------------------------------------------
Recording test results
TestNG Reports Processing: START
mvn is a batch file. So It is need to call mvn .... Not just mvn ....
See call-batch-file-from-cygwin-breaks-after-1st-command
This could be due to an environment problem. You could, however, save yourself a lot of time and work by doing things a little bit different:
Make your job a Maven Project, makes configuration easier (and offers you nice features like test reports for single modules etc.). This might also make your report copying unneccessary.
Depending on what you want to do with these reports afterwards, you could simple use the Jenkins archiving mechanism to copy them over to your master.
if you REALLY need to copy them by hand, use the Publish Over SSH Jenkinsn plugin
Are you using Execute Shell in your free-style project, i.e. you are running on a *nix based environment? If so, your problem is detailed in my answer here:
Jenkins Build Script exits after Google Test execution
Jenkins launches Execute Shell as a temporary shell script with command /bin/sh -xe tempshell.sh. Note the -e part. This tells sh to exit when any single command in the script returns with non-zero value.
Your mvn clean install -U is probably returning with a non-zero value. You can check that by running it on command line, immediately followed by echo $?
Solution: To circumvent that, add set +e to the top of your Execute Shell script.
The problem may be that you are not giving enter after the last command.
Today I came across the same problem in our project, last command in jenkins is not executed.
After some trail and error methods, came to understand that.

Maven Deploy Command

Here I just tried to deploy my simple maven project to git hub.I added some more plugins for deploying.I can compile,and package that.While deploying still i'm facing some errors.Please help me to resolve this.Can you give any idea for deploy a maven project from eclipse.
C:\MavApp\MavDep>mvn clean deploy
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MavDep 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # MavDep ---
[INFO] Deleting C:\MavApp\MavDep\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # MavDep ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\MavApp\MavDep\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) # MavDep ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\MavApp\MavDep\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # MavDep ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\MavApp\MavDep\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) # MavDep ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\MavApp\MavDep\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # MavDep ---
[INFO] Surefire report directory: C:\MavApp\MavDep\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.MavDep.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) # MavDep ---
[INFO] Building jar: C:\MavApp\MavDep\target\MavDep-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) # MavDep ---
[INFO] Installing C:\MavApp\MavDep\target\MavDep-1.0-SNAPSHOT.jar to C:\Users\mstemp 401\.m2\repository\com\MavDep\MavDep\1.0-SNAPSHOT\MavDep-1.0-SNAPSHOT.jar
[INFO] Installing C:\MavApp\MavDep\pom.xml to C:\Users\mstemp 401\.m2\repository\com\MavDep\MavDep\1.0-SNAPSHOT\MavDep-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) # MavDep ---
Downloading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/maven-metadata.xml
Uploading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/MavDep-1.0-20170412.080139-1.jar
Uploaded: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/MavDep-1.0-20170412.080139-1.jar (3 KB at 78.8 KB/sec)
Uploading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/MavDep-1.0-20170412.080139-1.pom
Uploaded: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/MavDep-1.0-20170412.080139-1.pom (2 KB at 121.9 KB/sec)
Downloading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/maven-metadata.xml
Uploading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/maven-metadata.xml
Uploaded: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/1.0-SNAPSHOT/maven-metadata.xml (760 B at 23.2 KB/sec)
Uploading: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/maven-metadata.xml
Uploaded: file://C:\MavApp\MavDep\target/mvn-repo/com/MavDep/MavDep/maven-metadata.xml (274 B at 17.8 KB/sec)
[INFO]
[INFO] --- site-maven-plugin:0.11:site (default) # MavDep ---
[INFO] Creating 12 blobs
[INFO] Creating tree with 12 blob entries
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.161 s
[INFO] Finished at: 2017-04-12T13:31:51+05:30
[INFO] Final Memory: 19M/160M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.11:site (default) on project MavDep: Error creating commit: Invalid request.
[ERROR]
[ERROR] For 'properties/name', nil is not a string.
[ERROR] For 'properties/name', nil is not a string. (422)
[ERROR] -> [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
It seems that in your maven properties the name is incorrect. Check your pom.xml file.
If this is not the case, try running it with the -e switch on

maven deploy + nexus failed on bad request

I am experiencing some problems with my build process.
the build is finishing fine and Jenkins starts to upload files to nexus. everything works well, but then it fails for some reason, the weirdest part is that the file that is mentioned to not be uploaded is actually uploaded and i can find it in nexus.
here is the output:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] pn-parent
[INFO] pn-domain
[INFO] pn-infra
[INFO] pn-config
[INFO] datalink-repository
[INFO] pn-service
[INFO] pn-backend
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pn-parent 0.0.707
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact junit:junit-dep:pom:4.11 has been relocated to junit:junit:pom:4.11
[INFO]
[INFO] --- maven-jar-plugin:2.5:jar (default-cli) # pn-parent ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /var/lib/jenkins/jobs/webapps-server-side-release/workspace/pn-parent/target/pn-parent-0.0.707.jar
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-cli) # pn-parent ---
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/0.0.707/pn-parent-0.0.707.pom
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/0.0.707/pn-parent-0.0.707.pom (15 KB at 111.6 KB/sec)
Downloading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/maven-metadata.xml
Downloaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/maven-metadata.xml (21 KB at 1036.9 KB/sec)
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/maven-metadata.xml
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-parent/maven-metadata.xml (21 KB at 864.7 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pn-domain 0.0.707
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact junit:junit-dep:pom:4.11 has been relocated to junit:junit:pom:4.11
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-cli) # pn-domain ---
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-cli) # pn-domain ---
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-domain/0.0.707/pn-domain-0.0.707.jar
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/0.0.707/datalink-repository-0.0.707.jar (624 KB at 7606.1 KB/sec)
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/0.0.707/datalink-repository-0.0.707.pom
2/4 KB
4/4 KB
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/0.0.707/datalink-repository-0.0.707.pom (4 KB at 93.0 KB/sec)
Downloading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/maven-metadata.xml
Downloaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/maven-metadata.xml (21 KB at 1382.8 KB/sec)
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/maven-metadata.xml
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/datalink-repository/maven-metadata.xml (21 KB at 1037.8 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building pn-service 0.0.707
[INFO] ------------------------------------------------------------------------
[WARNING] The artifact junit:junit-dep:pom:4.11 has been relocated to junit:junit:pom:4.11
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-cli) # pn-service ---
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy (default-cli) # pn-service ---
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn-service/0.0.707/pn-service-0.0.707.jar
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.war (1247 KB at 19480.3 KB/sec)
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.pom
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.pom (11 KB at 376.2 KB/sec)
Downloading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/maven-metadata.xml
Downloaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/maven-metadata.xml (21 KB at 1213.1 KB/sec)
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/maven-metadata.xml
Uploaded: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/maven-metadata.xml (21 KB at 1031.7 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] pn-parent ................................... SUCCESS [ 1.081 s]
[INFO] pn-domain ................................... SUCCESS [ 0.696 s]
[INFO] pn-infra .................................... SUCCESS [ 0.295 s]
[INFO] pn-config ................................... SUCCESS [ 0.275 s]
[INFO] datalink-repository ............................... SUCCESS [ 0.390 s]
[INFO] pn-service .................................. SUCCESS [ 0.475 s]
[INFO] pn-backend .................................. SUCCESS [ 1.043 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.234 s
[INFO] Finished at: 2014-07-17T14:31:30+00:00
[INFO] Final Memory: 19M/206M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "release" could not be activated because it does not exist.
using global settings config with name mycompany-global-dev-maven-settings
[workspace] $ /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven-3.1.1/bin/mvn -gs /tmp/global-settings8833627416958413984.xml deploy:deploy-file -Durl=http://maven.mycompany.com:8081/nexus/content/repositories/releases/ -DrepositoryId=mycompany.repository -DpomFile=pn-parent/Backend/pom.xml -Dfile=pn-parent/Backend/target/pn-backend.war
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'usePluginRegistry' is deprecated and has no effect. # /var/lib/jenkins/.m2/settings.xml
[WARNING]
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) # standalone-pom ---
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.war
...
Uploading: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.pom
2/11 KB
4/11 KB
6/11 KB
8/11 KB
10/11 KB
11/11 KB
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.928 s
[INFO] Finished at: 2014-07-17T14:31:33+00:00
[INFO] Final Memory: 6M/142M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts: Could not transfer artifact com.mycompany.pn:pn-backend:war:0.0.707 from/to mycompany.repository (http://maven.mycompany.com:8081/nexus/content/repositories/releases/): Failed to transfer file: http://maven.mycompany.com:8081/nexus/content/repositories/releases/com/mycompany/pn/pn-backend/0.0.707/pn-backend-0.0.707.war. Return code is: 400, ReasonPhrase: Bad Request. -> [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
Build step 'Conditional steps (multiple)' marked build as failure
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
[Current build status] check if current [FAILURE] is worse or equals then [SUCCESS] and better or equals then [SUCCESS]
Run condition [Current build status] preventing perform for step [Record JaCoCo coverage report]
Description set:
Start to submit Nexus scheduled tasks.
Submitting... [id: 36, name: release-build, type: Rebuild Maven Metadata Files]
End to submit Nexus scheduled tasks successfully.
Notifying upstream projects of job completion
Finished: FAILURE
A colleague of mine just ran into the same problem with maven attempting to upload artifacts twice.
We found some help in the forums, links included below.
Bae's answer did the trick for us:
Try running mvn -Prelease-profile help:effective-pom. You will find
that you have two execution sections for maven-source-plugin
[...]
To fix this problem, find everywhere you have used
maven-sources-plugin and make sure that you use the "id"
attach-sources so that it is the same as the release profile. Then
these sections will be merged. Best practice says that to get
consistency you need to configure this in the root pom of your project
in build > pluginManagement and NOT in your child poms. In the child
pom you just specify in build > plugins that you want to use
maven-source-plugin but you provide no executions.
Nexus accepts upload but says it failed and Maven release plugin fails : source artifacts getting deployed twice
snapshot and release confliction also results in 400 bad request. The project you are trying to update may be a snapshot like this in pom:
<version>0.0.1-SNAPSHOT</version>
while the repository in settings.xml rejects snapshot. solution:
<version>0.0.1</version>
This also happens the other way round: trying to deploy a release (version has no snapshot) version to a snapshot repository.
I also came across this problem. In my case I'd configured the Nexus repository policy to accept release artefacts but I was actually pushing a snapshot artefact to the repo. Since I wanted a snapshot repo I simply changed the policy and all was well.
This happened to me as well. In my case, I was deploying a release version. To fix, make sure the version number doesn't exist in Nexus yet. If it's a multi-module project, check the sub-modules' versions as well.

Jenkins is running different selenium test suite

I have created new maven project and added 2 different test suites TS1 and TS2
to run test suites I'm using the following command from cmd prompt
For TS1- mvn -Dtest=TS1 clean test
For TS2 - mvn -Dtest=TS2 clean test
and to run particular test method I'm using
mvn -Dtest=TS1#TestMethodName clean test
my tests are running fine with command prompt..
Now I've planned to integrate my tests in Jenkins but I've create 2 jobs one for TS1 and another for TS2
TS1 is running fine but for TS2, instead of running TS2 it is running TS1
Jenkins log:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ariveguru.tests:eserve:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 41, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. # line 58, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:selenium-maven-plugin is missing. # line 49, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building eserve 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) # eserve ---
[INFO]
[INFO] >>> maven-surefire-report-plugin:2.16:report (default-cli) # eserve >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # eserve ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Automation-WorkSpace\workspace\Case creation\eserve\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # eserve ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # eserve ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Automation-WorkSpace\workspace\Case creation\eserve\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) # eserve ---
[INFO] Compiling 24 source files to C:\Automation-WorkSpace\workspace\Case creation\eserve\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # eserve ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (copy-resources) # eserve ---
[INFO] Tests are skipped.
[INFO]
[INFO] <<< maven-surefire-report-plugin:2.16:report (default-cli) # eserve <<<
[INFO]
[INFO] --- maven-surefire-report-plugin:2.16:report (default-cli) # eserve ---
[WARNING] Unable to locate Test Source XRef to link to - DISABLED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.955s
[INFO] Finished at: Mon Mar 17 18:14:30 IST 2014
[INFO] Final Memory: 19M/47M
[INFO] ------------------------------------------------------------------------
Parsing POMs
Modules changed, recalculating dependency graph
maven31-agent.jar already up to date
maven31-interceptor.jar already up to date
maven3-interceptor-commons.jar already up to date
[eserve] $ C:\Java\jdk1.7.0_01/bin/java -cp C:\Automation-WorkSpace\maven31-agent.jar;C:\Automation-WorkSpace\tools\hudson.tasks.Maven_MavenInstallation\maven\boot\plexus-classworlds-2.5.1.jar;C:\Automation-WorkSpace\tools\hudson.tasks.Maven_MavenInstallation\maven/conf/logging jenkins.maven3.agent.Maven31Main C:\Automation-WorkSpace\tools\hudson.tasks.Maven_MavenInstallation\maven C:\Users\USER\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\2\32f78882-1a0ca571 C:\Automation-WorkSpace\maven31-interceptor.jar C:\Automation-WorkSpace\maven3-interceptor-commons.jar 64798
<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven: -B -f C:\Automation-WorkSpace\workspace\Case creation\eserve\pom.xml install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.ariveguru.tests:eserve:jar:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. # line 41, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. # line 58, column 12
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:selenium-maven-plugin is missing. # line 49, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[HUDSON] Collecting dependencies info
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building eserve 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # eserve ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Automation-WorkSpace\workspace\Case creation\eserve\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) # eserve ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # eserve ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Automation-WorkSpace\workspace\Case creation\eserve\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) # eserve ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) # eserve ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (copy-resources) # eserve ---
[INFO] Surefire report directory: C:\Automation-WorkSpace\workspace\Case creation\eserve\target\surefire-reports

Maven blocking on downloading jars (artifactId :tomcat-maven-plugin)

i have a problem with tomcat-maven-plugin :
here's the code
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
</plugin>
so after running this command: clean tomcat:run
i get this result :
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building seleniumproject Maven Webapp 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) # seleniumproject ---
[INFO] Deleting C:\Users\Amira\junoWorkspace\seleniumproject\target
[INFO]
[INFO] >>> tomcat-maven-plugin:1.0-beta-1:run (default-cli) # seleniumproject >>>
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) #seleniumproject ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # seleniumproject ---
[INFO] No sources to compile
[INFO]
[INFO] <<< tomcat-maven-plugin:1.0-beta-1:run (default-cli) # seleniumproject <<<
[INFO]
[INFO] --- tomcat-maven-plugin:1.0-beta-1:run (default-cli) # seleniumproject ---
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin- api/2.0/maven-plugin-api-2.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom (601 B at 1.2 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/junit/junit/3.8.2/junit-3.8.2.pom
.......................................
Downloaded: http://repo.maven.apache.org/maven2/org/apache/tomcat/dbcp/6.0.16/dbcp-6.0.16.jar (194 KB at 128.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/tomcat/coyote/6.0.16/coyote-6.0.16.jar (725 KB at 367.5 KB/sec)
As you see it blocks on downloading :
Is there a solution please
I don't know where you get the url from:
http://repo.maven.apache.org/maven2/
but it looks you have changed the configuration in the settings.xml file, cause Maven Central has http://repo1.maven.apache.org/maven2/ instead. Furthermore i can recommend to use a repository manager (Nexus, Archiva, Artifactory).
BTW: Why are you using the mojo.codehaus tomcat plugin and not the offical of Apache http://tomcat.apache.org/maven-plugin.html

Resources