maven-eclipse-plugin 使用示例

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-eclipse-plugin</artifactId>
	<version>2.8</version>
	<configuration>
		<classpathContainersLast>true</classpathContainersLast>
		<classpathContainers>
			<classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
			<classpathContainer>com.google.gwt.eclipse.core.GWT_CONTAINER</classpathContainer>
		</classpathContainers>
		<additionalProjectnatures>
			<projectnature>com.google.gwt.eclipse.core.gwtNature</projectnature>
		</additionalProjectnatures>
		<additionalBuildcommands>
			<buildcommand>com.google.gdt.eclipse.core.webAppProjectValidator</buildcommand>
			<buildcommand>com.google.gwt.eclipse.core.gwtProjectValidator</buildcommand>
		</additionalBuildcommands>
		<additionalConfig>
			<file>
				<name>.settings/com.google.gwt.eclipse.core.prefs</name>
				<content>
					<![CDATA[
						eclipse.preferences.version=1
						entryPointModules=
						filesCopiedToWebInfLib=gwt-servlet.jar
					]]>
				</content>
			</file>
			<!-- 工程的编码设置 -->
			<file>
				<name>.settings/org.eclipse.core.resources.prefs</name>
				<content>
                    <![CDATA[
                        eclipse.preferences.version=1
                        encoding/<project>=UTF-8
                    ]]>
				</content>
			</file>
			<!-- 生成gwt插件的文件 -->
			<file>
				<name>.settings/com.google.gdt.eclipse.core.prefs</name>
				<content>
					<![CDATA[
						eclipse.preferences.version=1
						jarsExcludedFromWebInfLib=
						warSrcDir=src/main/webapp
						warSrcDirIsOutput=false
					]]>
				</content>
			</file>
		</additionalConfig>
	</configuration>
</plugin>

你可能感兴趣的:(eclipse)