开发者

what does the wtpversion mean in the Eclipse plugin?

us开发者_运维百科ing maven, what does the wtpversion mean in the Eclipse plugin?


wtp adds web application support to eclipse. If you want to develop Maven based web applications with Eclipse, you should rather use Eclipse m2eclipse plugin.

As for wtpversions, this link has a mapping of wtpversion and eclipse versions.


This is the abbreviation of Eclipse Web Tools Project and you can use in maven > pom.xml under the <build> tag:

<!-- Eclipse project -->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-eclipse-plugin</artifactId>
    <version>2.9</version>
    <configuration>
        <!-- Always download and attach dependencies source code -->
        <downloadSources>true</downloadSources>
        <downloadJavadocs>false</downloadJavadocs>
        <!-- Avoid type mvn eclipse:eclipse -Dwtpversion=2.0 -->
        <wtpversion>2.0</wtpversion>
    </configuration>
</plugin>

From: How To Create A Web Application Project With Maven

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜