Pom.xml
<build>为生活加点乐子,TBDIAN:大欢乐情调<plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.9</version> <configuration> <additionalProjectnatures> <projectnature>org.eclipse.jdt.core.javanature</projectnature> <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand> <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalBuildcommands> </configuration> </plugin> </plugins> </build>build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.9</version> <configuration> <additionalProjectnatures> <projectnature>org.eclipse.jdt.core.javanature</projectnature> <projectnature>org.eclipse.m2e.core.maven2Nature</projectnature> <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand> <buildcommand>org.eclipse.m2e.core.maven2Builder</buildcommand> <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> </additionalBuildcommands> </configuration> </plugin> </plugins> </build>
mvn dependency:sourcesdependency:sources
mvn eclipse:eclipseeclipse:eclipse
本文介绍了如何在Pom.xml中配置Maven Eclipse插件版本2.9,通过指定项目属性和构建命令来确保项目的正确导入及配置。这包括设置Java、Spring和Maven的集成环境,以及使用特定的构建命令。
9272

被折叠的 条评论
为什么被折叠?



