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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/193.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
Java 找不到目标';复印件';插件com.heroku.sdk中_Java_Maven_Heroku_Pom.xml_Maven Plugin - Fatal编程技术网

Java 找不到目标';复印件';插件com.heroku.sdk中

Java 找不到目标';复印件';插件com.heroku.sdk中,java,maven,heroku,pom.xml,maven-plugin,Java,Maven,Heroku,Pom.xml,Maven Plugin,我正在学习这个教程()并且我也在尝试使用Heroku Maven插件。但是,我的POM.XML文件应该有问题,因此命令mvn package给出了以下信息: D:\JavaProjects\Again\helloworld>mvn package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INF

我正在学习这个教程()并且我也在尝试使用Heroku Maven插件。但是,我的POM.XML文件应该有问题,因此命令mvn package给出了以下信息:

D:\JavaProjects\Again\helloworld>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building helloworld Maven Webapp 0.1
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.466 s
[INFO] Finished at: 2017-03-28T23:45:04+03:00
[INFO] Final Memory: 8M/295M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'copy' in plugin com.heroku.sdk:heroku-maven-plugin:1.1.3 among available goals create-slug, dashboard, deploy, deploy-slug, deploy-war, deploy-war-slug, eclipse-launch-config, release-slug, run-war -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException
下面是我的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.example</groupId>
  <artifactId>helloworld</artifactId>
  <packaging>war</packaging>
  <version>0.1</version>
  <name>helloworld Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>helloworld</finalName>
    <plugins>        
        <plugin>
            <groupId>com.heroku.sdk</groupId>
        <artifactId>heroku-maven-plugin</artifactId>
        <version>1.1.3</version>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals><goal>copy</goal></goals>
                    <configuration>
                        <artifactItems>
                            <artifactItem>
                                <groupId>com.github.jsimone</groupId>
                                <artifactId>webapp-runner</artifactId>
                                <version>8.5.11.3</version>
                                <destFileName>webapp-runner.jar</destFileName>
                            </artifactItem>
                        </artifactItems>                        
                        <appName>sushi-dushi</appName>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        <plugin>
        <groupId>org.eclipse.m2e</groupId>
        <artifactId>lifecycle-mapping</artifactId>
        <version>1.0.0</version>
        <configuration>
            <lifecycleMappingMetadata>
                <pluginExecutions>
                    <!-- copy-dependency plugin -->
                    <pluginExecution>
                        <pluginExecutionFilter>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-dependency-plugin</artifactId>
                            <versionRange>[1.0.0,)</versionRange>
                            <goals>
                                <goal>copy-dependencies</goal>
                            </goals>
                        </pluginExecutionFilter>
                        <action>
                            <ignore />
                        </action>
                    </pluginExecution>
                </pluginExecutions>
            </lifecycleMappingMetadata>
        </configuration>
    </plugin>
    </plugins>
  </build>
</project>

4.0.0
com.example
地狱世界
战争
0.1
helloworld Maven Webapp
http://maven.apache.org
朱尼特
朱尼特
3.8.1
测试
地狱世界
com.heroku.sdk
heroku maven插件
1.1.3
包裹
复制
com.github.jsimone
webapprunner
8.5.11.3
webapp-runner.jar
寿司都食
org.eclipse.m2e
生命周期映射
1.0.0
org.apache.maven.plugins
maven依赖插件
[1.0.0,)
复制依赖项
那么,我做错了什么,以至于我无法用这个POM.XML构建应用程序?

heroku maven插件的
部分无效。它应该是这样的:

<plugin>
  <groupId>com.heroku.sdk</groupId>
  <artifactId>heroku-maven-plugin</artifactId>
  <version>1.1.3</version>
</plugin>

com.heroku.sdk
heroku maven插件
1.1.3

我愿意,但当我单击向上箭头时,它会告诉我:“感谢您的反馈。记录声誉低于15的人的投票,但不会更改公开显示的帖子分数。”