0
点赞
收藏
分享

微信扫一扫

Maven打包时出现Process terminated错误

Maven打包时出现Process terminated错误

idea中maven打包

情况一:idea中maven配置文件没有选对

依次选择: File->Setting->Maven
File->Setting->Maven

情况二:maven的配置文件setting.xml内容配置错误

对自己添加的阿里镜像源mirror和限定jdk1.8profile的区域进行检查是否放对位置

<mirrors>
      <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>central</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
      </mirror>
  </mirrors>
 
  <profiles>
         <profile>
              <id>jdk-1.8</id>
              <activation>
                <activeByDefault>true</activeByDefault>
                <jdk>1.8</jdk>
              </activation>
              <properties>
                <maven.compiler.source>1.8</maven.compiler.source>
                <maven.compiler.target>1.8</maven.compiler.target>
                <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
              </properties>
         </profile>
  </profiles>
举报

相关推荐

0 条评论