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 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 dependency:build-classpath . Is that of use? yegor256 This is how it works: <plugin> <artifactId>maven-antrun