Maven在Jenkins中接受用户定义的轴作为插件

时间:2015-09-09 10:24:54

标签: maven jenkins

我有一个Jenkins多配置项目,并添加了一些用户定义的轴变量。 我正在跑步"调用顶级maven"构建并指定目标作为安装。 每当我尝试运行项目时,jenkins都会因为构建失败而失败,并将错误视为:

[09-09-2015T15:43:47 IST] [INFO] -----------------------------------------------------------------------------------
[09-09-2015T15:43:47 IST] [INFO] BUILD FAILURE  
[09-09-2015T15:43:47 IST] [INFO] ----------------------------------------------------------------------------------
[09-09-2015T15:43:47 IST] [INFO] Total time: 4.648 s  
[09-09-2015T15:43:47 IST] [INFO] Finished at: 2015-09-09T15:30:02+05:30  
[09-09-2015T15:43:47 IST] [INFO] Final Memory: 10M/27M  
[09-09-2015T15:43:47 IST] [INFO] ----------------------------------------------------------------------------------
[09-09-2015T15:43:47 IST] [ERROR] No plugin found for prefix ''v120') -DMILESTONE=Alpha -DL=WTS -DGPU=HD4600 -DP=Win32 -DMINOR_NUMBER=0 -DSIGN_PWD=******** -DADMIN_PWD=******** -DT=v120 -DCustom_Path=C' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Windows\system32\config\systemprofile\.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]  
[09-09-2015T15:43:47 IST] [ERROR]  
[09-09-2015T15:43:47 IST] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[09-09-2015T15:43:47 IST] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[09-09-2015T15:43:47 IST] [ERROR]  
[09-09-2015T15:43:47 IST] [ERROR] For more information about the errors and possible solutions, please read the following articles:  
[09-09-2015T15:43:47 IST] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException  
[09-09-2015T15:43:47 IST] Build step 'Invoke top-level Maven targets' marked build as failure

任何人都可以帮忙。

这是我的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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.jenkins.main</groupId>
  <artifactId>junitexample</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <packaging>jar</packaging>

  <name>junitexample</name>
  <url>http://maven.apache.org</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
  <defaultGoal>install</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <Exe.Name>${Msi.Name}</Exe.Name>
          <Installation_Type>${Installation_Type}</Installation_Type>
          <Custom_Path>${Custom_Path}</Custom_Path>
        </configuration>
      </plugin>
      <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>2.8</version>            
        </plugin>
    </plugins>
  </build>
</project>

0 个答案:

没有答案