Tag - shell

jenkins docker tomcat java restful shell    2017-07-19 21:50:48    775

前提:jenkins是装在CentOS6.7中,同时,我的这台linux上面安装有docker


一、项目代码:

项目主要是jersey 1.x 版本的maven项目,重点在与我在项目中放置了tomcat,以及使用maven对tomcat进行解压,并将项目打包的文件放置到项目中,那么项目信息就不多写了,把maven配置信息重点写出来吧:

  1.     <build>
  2.         <finalName>testjersey</finalName>
  3.         <plugins>
  4.             <plugin>
  5.                 <groupId>org.apache.maven.plugins</groupId>
  6.                 <artifactId>maven-antrun-plugin</artifactId>
  7.                 <version>1.2</version>
  8.                 <executions>
  9.                     <execution>
  10.                         <id>copy-package</id>
  11.                         <phase>package</phase>
  12.                         <goals>
  13.                             <goal>run</goal>
  14.                         </goals>
  15.                         <configuration>
  16.                             <tasks>
  17.  
  18.                                 <unzip dest="target/apache/">
  19.                                     <fileset dir="${basedir}">
  20.                                         <include name="apache-tomcat-7.0.68.zip" />
  21.