java - Maven configuration: pass file inside a classpath jar as an argument -


several maven plugins need/support passing java.io.file configuration parameter, wherein specify relative/absolute location of file plugin locate , use.

is there way can specify property file in plugin configuration file has found inside jar in classpath? i'm particularly wanting know , use aspectj-maven-plugin, can specify xlintfile value custom xlinkdefault.properties file location. file, in case, found inside classpath jar.

i use maven-2.2.1 way.

no, not in general; there's no magic turn that's not file on disk java.io.file. many maven plugins (e.g., maven-checkstyle-plugin's configlocation designed allow more flexible input these cases:

this parameter resolved resource, url, file. if resolved, contents of configuration copied ${project.build.directory}/checkstyle-configuration.xml file before being passed checkstyle configuration.

as workaround, if plugin cannot changed, dependency:unpack may way classpath resource local file (see maven: extract files jar).


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -