Jenkins在项目构建期间下载maven utplsql插件

时间:2015-11-16 17:28:54

标签: java maven jenkins

我在Jenkins的maven plsql项目失败,因为它试图下载maven-utplsql-plugin-1.31.jar。这已通过以下命令

安装
    mvn install:install-file -Dfile=maven-utplsql-plugin-1.31.jar -DpomFile=maven-utplsql-plugin-1.31-pom.xml

我还使用以下

安装了jdbc jar
    mvn install:install-file -Dfile=ojdbc14.jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar  -DgeneratePom=true

Jenkins中的Maven项目配置如下。  源代码mgmt设置为None。  构建触发器设置为“构建SNAPSHOT依赖项时构建”  目标和选项值设置为“测试”。

但是在构建过程中它失败了,请参考下面的控制台日志。

    Executing Maven:  -B -f C:\Users\609508723\Documents\maven\plsqltest\pom.xml install

    [INFO] Downloading: https://repo.maven.apache.org/maven2/com/theserverlabs/maven/utplsql/maven-utplsql-plugin/1.31/maven-utplsql-plugin-1.31.jar
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
         [ERROR] Plugin com.theserverlabs.maven.utplsql:maven-utplsql-plugin:1.31 or one of its dependencies could not be resolved: Could not find artifact com.theserverlabs.maven.utplsql:maven-utplsql-plugin:jar:1.31 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
    [ERROR] 
    [JENKINS] Archiving C:\Users\609508723\Documents\maven\plsqltest\pom.xml to com.mytest.group.myparentartifact/my-utplsql-tests/1.31/my-utplsql-tests-1.31.pom

    Finished: FAILURE

我已经添加了maven-utplsql-plugin-1.31-pom.xml,如下所示。

    <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/maven-v4_0_0.xsd">
       <modelVersion>4.0.0</modelVersion>

       <groupId>com.theserverlabs.maven.utplsql</groupId>
       <artifactId>maven-utplsql-plugin</artifactId>
       <packaging>maven-plugin</packaging>
       <version>1.31</version>
       <name>maven-utplsql-plugin Maven Mojo</name>

       <dependencies>
          <dependency>
             <groupId>org.apache.maven</groupId>
             <artifactId>maven-plugin-api</artifactId>
             <version>2.0</version>
          </dependency>
          <dependency>
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
             <version>1.4</version>
          </dependency>
          <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
             <version>3.8.2</version>
             <scope>test</scope>
          </dependency>
          <dependency>
             <groupId>commons-lang</groupId>
             <artifactId>commons-lang</artifactId>
             <version>2.4</version>
          </dependency>
       </dependencies>
    </project>

0 个答案:

没有答案