我需要你的帮助,如何在eclipse中添加自定义classes / config目录到我的jetty插件,这是由maven启动的。我搜索了这个网站和eclipse网站,但没有一个解决了我的问题。
我在eclipse中的web项目的pom.xml如下:
<build>
<finalName>rompii-webservice</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</build>
我的jetty-env.xml有以下内容:
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<New id="esvcOracle" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>jdbc/storeDS</Arg>
<Arg>
<New class="oracle.jdbc.pool.OracleDataSource">
<Set name="DriverType">thin</Set>
<Set name="URL">jdbc:oracle:thin:@localhost:1540:store</Set>
<Set name="User">store_user</Set>
<Set name="Password">password</Set>
</New>
</Arg>
</New>
</Configure>
我应该将什么添加到我的pom或jetty-env.xml中?提前谢谢。