Maven 第二弹 在Ideaj 中执行报错了!
今天执行 Maven Goal的时候 在Ideaj 中出现了一个错误 加上这一句就好了 [code="java"]-Dmaven.multiModuleProjectDirectory=$M2_HOME [/code] dmaven.multimoduleprojectdirectory system property is not set intellij [img]http://dl2.iteye.com/upload/attachment/0118/6874/3d796f21-bac3-396c-9c48-35f85e081dc1.jpg[/img] 我配置了这个就好了 [img]http://dl2.iteye.com/upload/attachment/0118/6872/9389450a-6e69-354b-900b-cdc57b47e4df.jpg[/img] 执行第一maven用例出错:Unknown lifecycle phase "complile". 参考这个,把里面的命令挨个执行一次就好 https://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException 1 .mvn install 2. mvn compiler:compile 3. mvn org.apache.maven.plugins:maven-compiler-plugin:compile 4. mvn org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile 推荐一个阿里云的镜像 [code="java"] aliyun central aliyun maven. http://maven.aliyun.com/nexus/content/repositories/central [/code]