Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Make dependencies availible

    1 answers - 1220 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi.
    project uses Maven2 to build some artifacts, and these artifacts and
    their dependensies must be availible for the client. The client is BEA
    Portal.
    I want to fetch all my artifacts and their depencendies in one go!
    I have looked at both dependency-maven-plugin (maven-dependency-plugin
    seems to fail on me?) and maven-assembly-plugin.
    My project is orginized with a master dir containing the parent pom, and
    all modules as subprojects.
    * Is the dependency plugin capable of handling modules (new in maven 2)?
    If I have to configure every artifact I suppose it does not!
    * I have to first run copy goal to copy artifacts, then
    dependencies-copy. Also, will this have to be configured for each
    artifact or only in parent pom (I guess the previous question will
    answer this question)?
    * Also how do I override property <outputDirectoryto go outside
    basedir? I guess I always can post run an ant task but I would rather
    override it.
    Any help or tips is welcome.
    -Ronny
    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.1 | | 1907 bytes | |

    This is a common pattern that fits nicely with dependency and assemly
    plugins.
    Here is the suggested structures.

    parent
    pom.xml
    module1
    module2

    assemby-module

    In the parent pom, define dependencyManagement section that all other sub
    modules will share teh same
    dependency info.

    In you assembly-module, use dependency:copy to prepare a staging area that
    assembly plugin can consume.
    I would suggest to give maven-dependency-plugin a try, and file JIRA if it
    does not work out for you.
    dependency-maven-plugin at codehaus is EL.
    -D

    9/19/06, Naess, Ronny <Ronny.Naess (AT) avinor (DOT) nowrote:

    Hi.

    project uses Maven2 to build some artifacts, and these artifacts and
    their dependensies must be availible for the client. The client is BEA
    Portal.

    I want to fetch all my artifacts and their depencendies in one go!

    I have looked at both dependency-maven-plugin (maven-dependency-plugin
    seems to fail on me?) and maven-assembly-plugin.

    My project is orginized with a master dir containing the parent pom, and
    all modules as subprojects.

    * Is the dependency plugin capable of handling modules (new in maven 2)?
    If I have to configure every artifact I suppose it does not!
    * I have to first run copy goal to copy artifacts, then
    dependencies-copy. Also, will this have to be configured for each
    artifact or only in parent pom (I guess the previous question will
    answer this question)?
    * Also how do I override property <outputDirectoryto go outside
    basedir? I guess I always can post run an ant task but I would rather
    override it.
    --
    Any help or tips is welcome.
    --
    -Ronny

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --

Re: Make dependencies availible


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 4 =
QUESTION ON "Java"

EMSDN.COM