Eclipse m2e不为Java资源生成Maven库

时间:2014-01-15 21:25:32

标签: eclipse maven m2e

我目前正在尝试在Eclipse中创建一个m2e maven-archtype-webapp项目,但我注意到它不会在Java Resources目录下生成Maven Libraries。

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>ord.code.ranch</groupId>
  <artifactId>somewebapp</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>somewebapp Maven Webapp</name>
  <url>http://maven.apache.org</url>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <finalName>somewebapp</finalName>
  </build>
</project>

Eclipse Juno - Project Explorer Eclipse Juno - Project Explorer

0 个答案:

没有答案