How to deploy jar artifacts directly from a maven repository to appserver specific directories
I have JDBC driver dependencies (e.g. h2, mysql ..) which have to be copied under ${jboss.home}/common/lib before it is used by my EAR application. What would be the best way to directly copy from a maven repository into the above location instead of doing a manual copy. I would not prefer to store copies of the drivers as part of my SVN.
Note: I currentl开发者_StackOverflow社区y specify this as a maven dependency and copy this artifact from the local repository, not sure if this is the best way to do solve this.
One way to do this would be to use the Maven Dependency Plugin and its dependency:copy
goal that allows to copy a list of artifacts from the repository to defined locations. See the Copying specific artifacts example.
精彩评论