开发者社区> 问答> 正文

maven的build的时候报错?报错

[INFO] 
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ webproject ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.118 s
[INFO] Finished at: 2014-10-27T22:39:41+08:00
[INFO] Final Memory: 7M/14M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project webproject: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [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/MojoExecutionException

================================================================

pom.xml是这样配置的

<dependency>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-deploy-plugin</artifactId>
 <version>2.7</version>
</dependency>
其实我也手动加入jar包了,可还是报错

展开
收起
爱吃鱼的程序员 2020-06-14 20:42:17 508 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个是plugin,需要放在build的plugins下面,而不是dependency下

      <build>
        <finalName>Demo</finalName>


        <plugins>
          <!--WebServerJetty-->
          <plugin>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <version>${jetty.version}</version>
            <configuration>
              <scanIntervalSeconds>3</scanIntervalSeconds>
            </configuration>
          </plugin>
        </plugins>
      </build>

    <dependency>
    2020-06-14 20:42:35
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Build Your Next ApacheSparkJob 立即下载
Project Fortis 立即下载
低代码开发师(初级)实战教程 立即下载

相关镜像