Setting the a Property to what maven.compile.classpath Contains WITHOUT Ant
问题 I'd like to set a property in my pom to a classpath containing all the project's dependencies. The ant plugin does something like this, so I know it's definitely possible. I basically want to use ${maven.compile.classpath} wherever I like in my pom and have it 'just work'. I don't mind using plugins or anything else to achieve this. Many thanks, Nick 回答1: I don't think that there's a way of doing this without writing your own maven plugin. That said, you can get at the classpath using