Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.in28minutes</groupId>
- <artifactId>in28Minutes-first-webapp</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>war</packaging>
- <dependencies>
- <dependency>
- <groupId>javax</groupId>
- <artifactId>javaee-web-api</artifactId>
- <version>6.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-webmvc</artifactId>
- <version>4.2.2.RELEASE</version>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>repo1</id>
- <name>Project</name>
- <url>https://github.com/SAV19734/Project</url>
- </repository>
- </repositories>
- <profiles>
- <profile>
- <id>localhost:8080</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <tomcat-server>localhost:8080</tomcat-server>
- <tomcat-url>http://localhost:8080/manager/text</tomcat-url>
- </properties>
- </profile>
- </profiles>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.2</version>
- <configuration>
- <verbose>true</verbose>
- <source>1.8</source>
- <target>1.8</target>
- <showWarnings>true</showWarnings>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <url>http://localhost:8080/manager/text</url>
- <path>webapp</path>
- <username>admin</username>
- <password>admin</password>
- <server>localhost:8080</server>
- <contextReloadable>true</contextReloadable>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.4</version>
- <configuration>
- <warSourceDirectory>WebContent</warSourceDirectory>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- </project>
- <tomcat-users xmlns="http://tomcat.apache.org/xml"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
- version="1.0">
- <role rolename="manager-gui"/>
- <role rolename="manager-script"/>
- <role rolename="manager-jmx"/>
- <role rolename="manager-status"/>
- <role rolename="admin-script"/>
- <user username="admin" password="admin" roles="admin-script, manager-gui, manager-script, manager-jmx, manager-status"/>
- <user username="admin" password="admin" roles="manager-script,manager-gui,admin-script"/>
- </tomcat-users>
- <servers>
- <server>
- <id>localhost:8080</id>
- <username>admin</username>
- <password>admin</password>
- </server>
- </servers>
- Started by user admin
- Building on master in workspace C:UsersJohn.jenkinsworkspaceFirst7Steps
- > git.exe rev-parse --is-inside-work-tree # timeout=10
- Fetching changes from the remote Git repository
- > git.exe config remote.origin.url https://github.com/SAV19734/Project.git # timeout=10
- Fetching upstream changes from https://github.com/SAV19734/Project.git
- > git.exe --version # timeout=10
- > git.exe fetch --tags --progress https://github.com/SAV19734/Project.git +refs/heads/*:refs/remotes/origin/*
- > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
- > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10
- Checking out Revision a3cd5e6d9a4d9302e60154343f6af772031658ce (refs/remotes/origin/master)
- Commit message: "New fiels added"
- > git.exe config core.sparsecheckout # timeout=10
- > git.exe checkout -f a3cd5e6d9a4d9302e60154343f6af772031658ce
- > git.exe rev-list a3cd5e6d9a4d9302e60154343f6af772031658ce # timeout=10
- Parsing POMs
- Established TCP socket on 60571
- [First7Steps] $ java -cp C:UsersJohn.jenkinspluginsmaven-pluginWEB-INFlibmaven35-agent-1.11.jar;C:UsersJohn.jenkinstoolshudson.tasks.Maven_MavenInstallationC_Directory_apache-maven-3.5.0bootplexus-classworlds-2.5.2.jar;C:UsersJohn.jenkinstoolshudson.tasks.Maven_MavenInstallationC_Directory_apache-maven-3.5.0/conf/logging jenkins.maven3.agent.Maven35Main C:UsersJohn.jenkinstoolshudson.tasks.Maven_MavenInstallationC_Directory_apache-maven-3.5.0 C:UsersJohn.jenkinswarWEB-INFlibremoting-3.7.jar C:UsersJohn.jenkinspluginsmaven-pluginWEB-INFlibmaven35-interceptor-1.11.jar C:UsersJohn.jenkinspluginsmaven-pluginWEB-INFlibmaven3-interceptor-commons-1.11.jar 60571
- <===[JENKINS REMOTING CAPACITY]===>channel started
- Executing Maven: -B -f C:UsersJohn.jenkinsworkspaceFirst7Stepspom.xml tomcat7:deploy
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building in28Minutes-first-webapp 0.0.1-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] >>> tomcat7-maven-plugin:2.2:deploy (default-cli) > package @ in28Minutes-first-webapp >>>
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ in28Minutes-first-webapp ---
- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] skip non existing resourceDirectory C:UsersJohn.jenkinsworkspaceFirst7Stepssrcmainresources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ in28Minutes-first-webapp ---
- [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 2 source files to C:UsersJohn.jenkinsworkspaceFirst7Stepstargetclasses
- [parsing started RegularFileObject[C:UsersJohn.jenkinsworkspaceFirst7StepssrcmainjavawebappLoginServlet.java]]
- [parsing completed 62ms]
- [parsing started RegularFileObject[C:UsersJohn.jenkinsworkspaceFirst7StepssrcmainjavawebappLoginService.java]]
- [parsing completed 0ms]
- [search path for source files: C:UsersJohn.jenkinsworkspaceFirst7Stepssrcmainjava,C:UsersJohn.jenkinsworkspaceFirst7Stepstargetgenerated-sourcesannotations]
- [search path for class files: C:Program Files (x86)Javajre1.8.0_131libresources.jar,C:Program Files (x86)Javajre1.8.0_131librt.jar,C:Program Files (x86)Javajre1.8.0_131libsunrsasign.jar,C:Program Files (x86)Javajre1.8.0_131libjsse.jar,C:Program Files (x86)Javajre1.8.0_131libjce.jar,C:Program Files (x86)Javajre1.8.0_131libcharsets.jar,C:Program Files (x86)Javajre1.8.0_131libjfr.jar,C:Program Files (x86)Javajre1.8.0_131classes,C:Program Files (x86)Javajre1.8.0_131libextaccess-bridge-32.jar,C:Program Files (x86)Javajre1.8.0_131libextcldrdata.jar,C:Program Files (x86)Javajre1.8.0_131libextdnsns.jar,C:Program Files (x86)Javajre1.8.0_131libextjaccess.jar,C:Program Files (x86)Javajre1.8.0_131libextjfxrt.jar,C:Program Files (x86)Javajre1.8.0_131libextlocaledata.jar,C:Program Files (x86)Javajre1.8.0_131libextnashorn.jar,C:Program Files (x86)Javajre1.8.0_131libextsunec.jar,C:Program Files (x86)Javajre1.8.0_131libextsunjce_provider.jar,C:Program Files (x86)Javajre1.8.0_131libextsunmscapi.jar,C:Program Files (x86)Javajre1.8.0_131libextsunpkcs11.jar,C:Program Files (x86)Javajre1.8.0_131libextzipfs.jar,C:UsersJohn.jenkinsworkspaceFirst7Stepstargetclasses,C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar,.]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/io/IOException.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/ServletException.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/annotation/WebServlet.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/http/HttpServlet.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/http/HttpServletRequest.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/http/HttpServletResponse.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/io/Serializable.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Object.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/GenericServlet.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/Servlet.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/ServletConfig.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/String.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/annotation/Target.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/annotation/ElementType.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/annotation/Retention.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/annotation/RetentionPolicy.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/annotation/Annotation.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Override.class)]]
- [checking webapp.LoginServlet]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/util/Enumeration.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Error.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Exception.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Throwable.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/RuntimeException.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/AutoCloseable.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Byte.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Character.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Short.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Long.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Float.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Integer.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Double.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Boolean.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Void.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/ServletRequest.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/RequestDispatcher.class)]]
- [loading ZipFileIndexFileObject[C:UsersJohn.m2repositoryjavaxjavaee-web-api6.0javaee-web-api-6.0.jar(javax/servlet/ServletResponse.class)]]
- [wrote RegularFileObject[C:UsersJohn.jenkinsworkspaceFirst7StepstargetclasseswebappLoginServlet.class]]
- [checking webapp.LoginService]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/Comparable.class)]]
- [loading ZipFileIndexFileObject[C:Program Files (x86)Javajre1.8.0_131librt.jar(java/lang/CharSequence.class)]]
- [wrote RegularFileObject[C:UsersJohn.jenkinsworkspaceFirst7StepstargetclasseswebappLoginService.class]]
- [total 297ms]
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ in28Minutes-first-webapp ---
- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] skip non existing resourceDirectory C:UsersJohn.jenkinsworkspaceFirst7Stepssrctestresources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ in28Minutes-first-webapp ---
- [INFO] No sources to compile
- [INFO]
- [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ in28Minutes-first-webapp ---
- [INFO] No tests to run.
- [JENKINS] Recording test results
- [INFO]
- [INFO] --- maven-war-plugin:2.2:war (default-war) @ in28Minutes-first-webapp ---
- [INFO] Packaging webapp
- [INFO] Assembling webapp [in28Minutes-first-webapp] in [C:UsersJohn.jenkinsworkspaceFirst7Stepstargetin28Minutes-first-webapp-0.0.1-SNAPSHOT]
- [INFO] Processing war project
- [INFO] Copying webapp resources [C:UsersJohn.jenkinsworkspaceFirst7Stepssrcmainwebapp]
- [INFO] Webapp assembled in [68 msecs]
- [INFO] Building war: C:UsersJohn.jenkinsworkspaceFirst7Stepstargetin28Minutes-first-webapp-0.0.1-SNAPSHOT.war
- [INFO] WEB-INFweb.xml already added, skipping
- [WARNING] Failed to getClass for org.apache.tomcat.maven.plugin.tomcat7.deploy.DeployMojo
- [INFO]
- [INFO] <<< tomcat7-maven-plugin:2.2:deploy (default-cli) < package @ in28Minutes-first-webapp <<<
- [INFO]
- [INFO]
- [INFO] --- tomcat7-maven-plugin:2.2:deploy (default-cli) @ in28Minutes-first-webapp ---
- [INFO] Deploying war to http://localhost:8080/
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 5.692 s
- [INFO] Finished at: 2017-07-25T17:55:17-04:00
- [INFO] Final Memory: 21M/49M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:deploy (default-cli) on project in28Minutes-first-webapp: Cannot invoke Tomcat manager: Connection refused: connect -> [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]
- [JENKINS] Archiving C:UsersJohn.jenkinsworkspaceFirst7Stepspom.xml to com.in28minutes/in28Minutes-first-webapp/0.0.1-SNAPSHOT/in28Minutes-first-webapp-0.0.1-SNAPSHOT.pom
- [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
- channel stopped
- [First7Steps] $ cmd.exe /C "C:UsersJohn.jenkinstoolshudson.tasks.Maven_MavenInstallationC_Directory_apache-maven-3.5.0binmvn.cmd tomcat7:redeploy && exit %%ERRORLEVEL%%"
- [INFO] Scanning for projects...
- [INFO]
- [INFO] ------------------------------------------------------------------------
- [INFO] Building in28Minutes-first-webapp 0.0.1-SNAPSHOT
- [INFO] ------------------------------------------------------------------------
- [INFO]
- [INFO] >>> tomcat7-maven-plugin:2.2:redeploy (default-cli) > package @ in28Minutes-first-webapp >>>
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ in28Minutes-first-webapp ---
- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] skip non existing resourceDirectory C:UsersJohn.jenkinsworkspaceFirst7Stepssrcmainresources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ in28Minutes-first-webapp ---
- [INFO] Nothing to compile - all classes are up to date
- [INFO]
- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ in28Minutes-first-webapp ---
- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
- [INFO] skip non existing resourceDirectory C:UsersJohn.jenkinsworkspaceFirst7Stepssrctestresources
- [INFO]
- [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ in28Minutes-first-webapp ---
- [INFO] No sources to compile
- [INFO]
- [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ in28Minutes-first-webapp ---
- [INFO] No tests to run.
- [INFO]
- [INFO] --- maven-war-plugin:2.2:war (default-war) @ in28Minutes-first-webapp ---
- [INFO] Packaging webapp
- [INFO] Assembling webapp [in28Minutes-first-webapp] in [C:UsersJohn.jenkinsworkspaceFirst7Stepstargetin28Minutes-first-webapp-0.0.1-SNAPSHOT]
- [INFO] Processing war project
- [INFO] Copying webapp resources [C:UsersJohn.jenkinsworkspaceFirst7Stepssrcmainwebapp]
- [INFO] Webapp assembled in [62 msecs]
- [INFO] Building war: C:UsersJohn.jenkinsworkspaceFirst7Stepstargetin28Minutes-first-webapp-0.0.1-SNAPSHOT.war
- [INFO] WEB-INFweb.xml already added, skipping
- [INFO]
- [INFO] <<< tomcat7-maven-plugin:2.2:redeploy (default-cli) < package @ in28Minutes-first-webapp <<<
- [INFO]
- [INFO]
- [INFO] --- tomcat7-maven-plugin:2.2:redeploy (default-cli) @ in28Minutes-first-webapp ---
- [INFO] Deploying war to http://localhost:8080/
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 5.326 s
- [INFO] Finished at: 2017-07-25T17:55:24-04:00
- [INFO] Final Memory: 16M/197M
- [INFO] ------------------------------------------------------------------------
- [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy (default-cli) on project in28Minutes-first-webapp: Cannot invoke Tomcat manager: Connection refused: connect -> [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 'Invoke top-level Maven targets' marked build as failure
- Finished: FAILURE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement