执行右侧maven命令报错

来源:5-9 mybatis三剑客之mybatis-generator配置

qq_慕田峪9087055

2019-10-18

“C:\Program Files\Java\jdk1.7.0_80\bin\java.exe” -Dmaven.multiModuleProjectDirectory=D:\mmall_learning\new\mmall -Dmaven.home=D:\Maven\apache-maven-3.5.2 -Dclassworlds.conf=D:\Maven\apache-maven-3.5.2\bin\m2.conf “-javaagent:D:\IntelliJ IDEA 2018.2.4\lib\idea_rt.jar=58644:D:\IntelliJ IDEA 2018.2.4\bin” -Dfile.encoding=UTF-8 -classpath D:\Maven\apache-maven-3.5.2\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.2.4 -s D:\Maven\apache-maven-3.5.2\conf\settings.xml -Dmaven.repo.local=D:\Maven\repository org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com:mmall:war:1.0-SNAPSHOT
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 264, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[INFO] ------------------------------------------------------------------------
[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] — mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall —
Downloading from central: https://repo.maven.apache.org/maven2/org/sonatype/sisu/sisu-inject-plexus/2.3.0/sisu-inject-plexus-2.3.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/maven-model/3.0.4/maven-model-3.0.4.jar

写回答

1回答

geelylucky

2019-10-18

同学,这是警告,不是报错,检查一下pom.xml中的maven编译插件版本:

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <configuration>
   <source>1.7</source>
   <target>1.7</target>
   <encoding>UTF-8</encoding>
   <compilerArguments>
     <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
   </compilerArguments>
 </configuration>
</plugin>

0
0

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9476 学习 · 8804 问题

查看课程