猿道apeto 2017-03-14 05:13 采纳率: 0%
浏览 4574

idea的maven创建分布式项目问题

图片说明

请问这些都是什么意思呀?不选择的话 能否 创建分布式项目。我要写的是分布式项目。结构如下。
图片说明

刚用idea,有很多不知道的东西,我已经创建2遍工程了,都有问题。
崩溃了,所以来求助一下,希望大神们帮我解答一下。
还是我是利用tomcat插件运行的项目,一直报错:错误如下

图片说明

我已经安装到本地仓库了,就是不行,愁死了。应该是创建项目的时候选错了吧?

 D:\wan\Java\jdk1.8.0_92\bin\java -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\IdeaProjects\taotao\taotao-manager-web -Dmaven.home=E:\工具\alymaven\apache-maven-3.3.9 -Dclassworlds.conf=E:\工具\alymaven\apache-maven-3.3.9\bin\m2.conf -Didea.launcher.port=7534 "-Didea.launcher.bin.path=D:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.5\bin" -Dfile.encoding=UTF-8 -classpath "E:\工具\alymaven\apache-maven-3.3.9\boot\plexus-classworlds-2.5.2.jar;D:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.5\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.3.5 -s E:\工具\alymaven\apache-maven-3.3.9\conf\settings.xml clean tomcat7:run
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Invalid packaging for parent POM com.taotao:taotao-parent:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml), must be "pom" but is "jar" @ com.taotao:taotao-parent:1.0-SNAPSHOT, C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.taotao:taotao-manager-web:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-manager-web\pom.xml) has 1 error
[ERROR]     Invalid packaging for parent POM com.taotao:taotao-parent:1.0-SNAPSHOT (C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml), must be "pom" but is "jar" @ com.taotao:taotao-parent:1.0-SNAPSHOT, C:\Users\Administrator\IdeaProjects\taotao\taotao-parent\pom.xml
[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/ProjectBuildingException

Process finished with exit code 1

  • 写回答

3条回答

  • wenfc 2017-03-14 13:50
    关注

    taotao-parent\pom.xml
    里,packaging必须是pom :
    pom

    评论

报告相同问题?

悬赏问题

  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问
  • ¥20 删除和修改功能无法调用
  • ¥15 kafka topic 所有分副本数修改
  • ¥15 小程序中fit格式等运动数据文件怎样实现可视化?(包含心率信息))
  • ¥15 如何利用mmdetection3d中的get_flops.py文件计算fcos3d方法的flops?
  • ¥40 串口调试助手打开串口后,keil5的代码就停止了