你好我使用了maven2-xdoclet2-插件生成hibernate的映射从JAR文件中删除生成的资源
的XDoclet的配置类似于这样:
<plugin>
<groupId>org.codehaus.xdoclet</groupId>
<artifactId>maven2-xdoclet2-plugin</artifactId>
<version>2.0.7</version>
<executions>
<execution>
<id>xdoclet</id>
<phase>generate-sources</phase>
<goals>
<goal>xdoclet</goal>
</goals>
</execution>
</executions>
(... dependencies ...)
<configuration>
<configs>
<config>
<components>
<component>
<classname>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</classname>
<params>
<version>3.0</version>
</params>
</component>
</components>
<params>
<destdir>${project.build.directory}/classes</destdir>
</params>
</config>
</configs>
</configuration>
当我运行
mvn clean generate-resources
它得到以下的事情:
tree -L 2 target/classes/
target/classes/
|-- com
| `-- company
| `-- (the mappings generated)
`-- generated-resources
`-- xdoclet
`-- com
`-- company
`-- (the mappings generated)
所以我想避免的是在jar文件中有目录“generated-resources”。
我该怎么做?我做了几次谷歌搜索没有太多运气。
这并没有像预期的那样工作:( – feniix 2010-12-05 19:49:22