mybatis----generate 报错
来源:5-12 mybatis三剑客之mybatis-pagehelper分页插件讲解

Leroyy
2017-11-10
报错信息:
"C:\Program Files\Java\jdk1.8.0_131\bin\java" -Dmaven.multiModuleProjectDirectory=D:\Project\JAVA\imooc\mmall_learning -DarchetypeCatalog=internal -Dmaven.home=D:\work_software\maven\apache-maven-3.3.9 -Dclassworlds.conf=D:\work_software\maven\apache-maven-3.3.9\bin\m2.conf "-javaagent:D:\work_software\idea\IntelliJ IDEA 2017.2.5\lib\idea_rt.jar=52195:D:\work_software\idea\IntelliJ IDEA 2017.2.5\bin" -Dfile.encoding=UTF-8 -classpath D:\work_software\maven\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2017.2.5 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 262, column 21
[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.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mmall Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- mybatis-generator-maven-plugin:1.3.2:generate (default-cli) @ mmall ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.709 s
[INFO] Finished at: 2017-11-09T23:58:55+08:00
[INFO] Final Memory: 6M/114M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project mmall: Execution default-cli of goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate failed: Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-model:jar:3.0.4, org.sonatype.sisu:sisu-inject-plexus:jar:2.3.0, org.sonatype.sisu:sisu-guava:jar:0.9.9, org.mybatis.generator:mybatis-generator-core:jar:1.3.2, org.codehaus.woodstox:wstx-asl:jar:3.2.6: Failure to find org.apache.maven:maven-model:jar:3.0.4 in http://repo.gopopon.cn:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [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/PluginResolutionException
Process finished with exit code 1
3回答
-
Geely
2017-11-11
好的解决了就好~~
00 -
Leroyy
提问者
2017-11-10
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
</compilerArguments>
</configuration>
</plugin>加这一行代码就可以了:<version>3.1</version> 已经解决了
012017-11-10 -
Leroyy
提问者
2017-11-10
我的maven 是3.3.9 的,有影响吗?
012017-11-10
相似问题