java - Maven plugin for extracting internal dependency files from scm -


i have maven project (a) depends on library (b).

library uses maven , has reachable project.scm.developerconnection url. additionally library contains sql scripts (ddl) not included final jar.

is there way obtain sql files (i.e. library pom of version specified in project a, parse it, extract developerconnection url , checkout scm using provided url) using maven?

i need them:

  • to run integration tests of project uses features of library.
  • to build distribution package project (using maven-assembly-plugin).

now suppose library written me, best way (maven way?=)) distribute sql files?

include them jar?

note in case sql files in jar exclusively make maven build.

if need these resources available packaging, put them in a separate artifact depend on.

if need these resources available tests, put them in artifact depend on scope test. may test-jar or separate artifact altogether (if prefer not loose transitive dependencies of test jar).

if need these resources available maven, e.g. sql maven plugin, put them in separate artifact , have plugin in maven project ("a") depend on it.

if know these resources of no reasonable use production environment, don't put them in final jar of library, since goes production.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -