Spring注释配置在JAR中找不到目录/类

时间:2010-10-28 13:28:30

标签: spring maven-2 annotations

我和这些家伙有同样的问题:

Spring Annotation-based controllers not working if it is inside jar file

http://forum.springsource.org/showthread.php?t=64731

...但不同之处在于我使用Maven 2作为构建工具。

如何使用Maven 2实现相同的效果?

我看到这个解决方案在清单中创建了一个类路径条目,但它生成了许多绝对的JAR链接,这在我的生产环境中是没有意义的: Maven - how can I add an arbitrary classpath entry to a jar?

1 个答案:

答案 0 :(得分:0)

Maven 2生成目录条目,这是这个问题的答案。