views:

16

answers:

1

I have the same problem as these guys:

http://stackoverflow.com/questions/1242656/spring-annotation-based-controllers-not-working-if-it-is-inside-jar-file

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

...but the difference is that I use Maven 2 as a build tool.

How do I achieve the same effect using Maven 2?

I saw this solution to creating a classpath entry in the manifest, but it generates a lot of absolute links to JARs which wouldn't make sense in my production environment: http://stackoverflow.com/questions/1510071/maven-how-can-i-add-an-arbitrary-classpath-entry-to-a-jar/1510543#1510543

A: 

Maven 2 generates the directory entries, which is the answer to this question.

opyate