Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven接受用户定义的axis作为Jenkins中的插件_Maven_Jenkins - Fatal编程技术网

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

Maven接受用户定义的axis作为Jenkins中的插件,maven,jenkins,Maven,Jenkins,我有一个Jenkins多配置项目,并添加了一些用户定义的axis变量。 我正在运行“调用顶级maven”构建,并将目标指定为安装。 每当我尝试运行项目时,jenkins都会以构建失败的形式失败,并给出如下错误: [09-09-2015T15:43:47 IST] [INFO] ----------------------------------------------------------------------------------- [09-09-2015T15:43:47 IST] [

我有一个Jenkins多配置项目,并添加了一些用户定义的axis变量。 我正在运行“调用顶级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>

4.0.0
org.jenkins.main
杜松子样品
0.0.1-快照
罐子
杜松子样品
http://maven.apache.org
UTF-8
朱尼特
朱尼特
4.12
测试
安装
org.apache.maven.plugins
maven编译器插件
3.1
1.7
1.7
${Msi.Name}
${安装类型}
${Custom_Path}
org.apache.maven.plugins
maven javadoc插件
2.8

您可以添加POMs文件吗?@ShmulikKlein我已经添加了POM文件。您在哪里使用属性“T”?似乎你在执行插件时有输入错误(我猜,使用前缀缩写)。你能告诉我错误发生在哪个模块吗?@ShmulikKlein解决了这个问题,这是因为我在Jenkins和Maven中使用了一个插件。使用替代插件,现在可以运行测试。谢谢你的帮助。你能添加你的POMs文件吗?@ShmulikKlein我已经添加了我的POM文件。你在哪里使用属性“T”?似乎你在执行插件时有输入错误(我猜,使用前缀缩写)。你能告诉我错误发生在哪个模块吗?@ShmulikKlein解决了这个问题,这是因为我在Jenkins和Maven中使用了一个插件。使用替代插件,现在可以运行测试。谢谢你的帮助。