Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/8.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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
Eclipse Maven、插件和JIRA_Eclipse_Maven_Jira - Fatal编程技术网

Eclipse Maven、插件和JIRA

Eclipse Maven、插件和JIRA,eclipse,maven,jira,Eclipse,Maven,Jira,我一直在浏览JIRA()中的hello world示例 Eclipse(开普勒)为我的项目在pom中提供了大量错误列表。特别是在第一个插件标签上。所有这些都是一些不同的 生命周期配置未涵盖插件执行:com.atlassian.maven.plugins:maven jira- 插件:4.2.10:过滤测试插件描述符(执行:默认过滤测试插件描述符,阶段:流程测试- (资源) 在第二个冒号后面加上描述。我认为这些就是目标 我遇到过,但对一个完全不熟悉这一切的人来说,这并没有多大帮助 以下是Atlas

我一直在浏览JIRA()中的hello world示例

Eclipse(开普勒)为我的项目在
pom
中提供了大量错误列表。特别是在第一个插件标签上。所有这些都是一些不同的

生命周期配置未涵盖插件执行:com.atlassian.maven.plugins:maven jira- 插件:4.2.10:过滤测试插件描述符(执行:默认过滤测试插件描述符,阶段:流程测试- (资源)

在第二个冒号后面加上描述。我认为这些就是目标

我遇到过,但对一个完全不熟悉这一切的人来说,这并没有多大帮助

以下是Atlassian生成的
pom

<?xml version="1.0" encoding="UTF-8"?>
<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.atlassian.tutorial</groupId>
    <artifactId>helloworld</artifactId>
    <version>1.0-SNAPSHOT</version>

    <organization>
        <name>HelloGoodby Inc.</name>
        <url>http://www.helloworldgoodbye.com</url>
    </organization>

    <name>helloworld</name>
    <description>This is the com.atlassian.tutorial:helloworld plugin for Atlassian JIRA.</description>
    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- Add dependency on jira-core if you want access to JIRA implementation 
            classes as well as the sanctioned API. -->
        <!-- This is not normally recommended, but may be required eg when migrating 
            a plugin originally developed against JIRA 4.x -->
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>

        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
            <version>${plugin.testrunner.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.2.2-atlassian-1</version>
        </dependency>

        <!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
        <!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit -->
        <!-- <dependency>
            <groupId>com.atlassian.jira.tests</groupId>
            <artifactId>jira-testkit-client</artifactId> 
            <version>${testkit.version}</version>
            <scope>test</scope>
        </dependency> -->
        <dependency>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>maven-amps-plugin</artifactId>
            <version>4.2.10</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <!-- Uncomment to install TestKit backdoor in JIRA. -->
                    <!-- <pluginArtifacts> <pluginArtifact> <groupId>com.atlassian.jira.tests</groupId> 
                        <artifactId>jira-testkit-plugin</artifactId> <version>${testkit.version}</version> 
                        </pluginArtifact> </pluginArtifacts> -->
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <properties>
        <jira.version>6.1.3</jira.version>
        <amps.version>4.2.10</amps.version>
        <plugin.testrunner.version>1.1.2</plugin.testrunner.version>
        <!-- TestKit version 5.x for JIRA 5.x, 6.x for JIRA 6.x -->
        <testkit.version>5.2.26</testkit.version>
    </properties>
</project>

4.0.0
com.atlassian.tutorial
地狱世界
1.0-快照
海洛戈比公司。
http://www.helloworldgoodbye.com
地狱世界
这是com.atlassian.tutorial:helloworld插件,用于atlassian JIRA。
大西洋插件
com.atlassian.jira
吉拉api
${jira.version}
假如
com.atlassian.jira
吉拉核心
${jira.version}
假如
朱尼特
朱尼特
4.10
测试
com.atlassian.plugins
atlassian插件osgi testrunner
${plugin.testrunner.version}
测试
javax.ws.rs
jsr311 api
1.1.1
假如
com.google.code.gson
格森
2.2.2-atlassian-1
com.atlassian.maven.plugins
maven amps插件
4.2.10
com.atlassian.maven.plugins
maven jira插件
${amps.version}
真的
${jira.version}
${jira.version}
maven编译器插件
1.6
1.6
6.1.3
4.2.10
1.1.2
5.2.26
然而,“”正是要为您解决问题的

尽管Maven只是直截了当地执行所配置的任何插件,但它不太愿意这样做。并非所有在命令行上执行有意义的内容都应该在Eclipse中执行。现在,它会自动处理一些常见的插件,但当它遇到Atlassian插件时,它似乎不知道该怎么做,并希望您提供帮助

根据所讨论的插件,您可以:

  • 为特定插件安装m2e连接器(该插件将知道如何操作)
  • 配置在POM文件中执行的操作(
    POM.xml
  • 配置在本地Eclipse中执行的操作
  • 这些是按(我)的喜好顺序提供的。无论如何2。这很有意义,因为每个导入POM文件的开发人员都可以很好地使用,请考虑一下。POM文件中的配置可以告诉m2e忽略或执行插件执行,在后一种情况下,还可以告诉m2e是否在增量构建上运行(
    runOnIncremental

    “”给出了此配置的示例,该配置在POM的
    pluginManagement
    下的插件配置中配置为
    lifecycleMappingMetadata
    。好消息是,Eclipse可以帮助您使用上述三种解决方案,对您看到的错误进行快速修复。

    然而,“,”将为您解决问题

    尽管Maven只是直截了当地执行所配置的任何插件,但它不太愿意这样做。并非所有在命令行上执行有意义的内容都应该在Eclipse中执行。现在,它会自动处理一些常见的插件,但当它遇到Atlassian插件时,它似乎不知道该怎么做,并希望您提供帮助

    根据所讨论的插件,您可以:

  • 为特定插件安装m2e连接器(该插件将知道如何操作)
  • 配置在POM文件中执行的操作(
    POM.xml
  • 配置在本地Eclipse中执行的操作
  • 这些是按(我)的喜好顺序提供的。无论如何2。这很有意义,因为每个导入POM文件的开发人员都可以很好地使用,请考虑一下。POM文件中的配置可以告诉m2e忽略或执行插件执行,在后一种情况下,还可以告诉m2e是否在增量构建上运行(
    runOnIncremental


    “”给出了此配置的示例,该配置在POM的
    pluginManagement
    下的插件配置中配置为
    lifecycleMappingMetadata
    。好消息是,Eclipse可以帮助您使用上述三种解决方案,对您看到的错误进行快速修复。

    问题是,我不太确定在“some goal”等字段中输入什么内容。我假设组id和工件id与配置标记之前的标记中的相同。然而,我并没有一个目标可以复制到下面。我对maven不是很熟悉,这个pom文件是由atlassian软件自动生成的。Eclipse提供了一个将插件配置设置为忽略的快速修复程序,但我对此犹豫不决,因为我担心它不会加载插件。
    lifecycleMappingMetadata
    配置并不完全是琐碎的,所以不要试图自己编造!t