0
我正在建立一个针对CrEme VM库的项目。我想配置maven和eclipse,只能针对这个JAR构建。但m2eclipse“更新项目配置”会自动添加“JRE系统库”。我可以通过在eclipse项目classpath中删除它来修复它,但是我只想在pom.xml中配置它(而不是检查eclipse设置)。Maven和eclipse:删除JRE系统库
我试着这样做:
// ...
<dependency>
<groupId>ch.sbb.cis-infra.mobile</groupId>
<artifactId>vmclasses</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
// ...
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.3</source>
<target>1.3</target>
<meminitial>128m</meminitial>
<maxmem>512m</maxmem>
<debug>off</debug>
<compilerArguments>
<bootclasspath>''</bootclasspath>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
但尽管如此,m2eclipse的添加 “JRE系统库[JRE_1.3]”。
编译命令行是正确的,但在eclipse中我看不到编译问题。 如何使用pom.xml配置在eclipse中删除JRE?
(Eclipse的赫利俄斯SR2,M2E插件0.12.1)