我有一个带有DAO类的servlet,它具有以下构造函数:
a
我在source / main / resources中编写了以下config.properties文件:
<html>
<body>
<div id="uix_wrapper">
<div id="button">
<label class="downloadButton">
<a href="link that I want to get">Button</a>
</label>
</div>
</div>
</body>
</html>
如何配置pom.xml文件以告诉maven使用config.properties?
答案 0 :(得分:1)
在这里,我解决了添加插件块的问题:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${basedir}/src/main/resources/config.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>