Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • war as a dependency

    4 answers - 688 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

    Hello all,
    I thought I saw on the list some time ago that a pom for a war could
    specify another war artifact as a dependency with the idea being that
    the depended war would be unzipped and then the webapp from the current
    project would be copied over it. Is this only available in a snapshot
    version of the war plugin? Is it deployed anywhere? If not, where is
    the source repo for the war plugin? I tried looking at the project page
    for the plugin, but that has an invalid link
    Thanks,
    Rich
    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 | | 614 bytes | |

    1/3/06, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    Hello all,

    I thought I saw on the list some time ago that a pom for a war could
    specify another war artifact as a dependency with the idea being that
    the depended war would be unzipped and then the webapp from the current
    project would be copied over it. Is this only available in a snapshot
    version of the war plugin? Is it deployed anywhere? If not, where is
    the source repo for the war plugin? I tried looking at the project page
    for the plugin, but that has an invalid link

    Plugins have moved

    S
  • No.2 | | 1299 bytes | |

    I checked out the source for the maven-war-plugin and installed it in my
    local repository. But when I try and do a 'mvn war:war' I'm still getting

    required artifacts missing:

    So it looks like maven is still trying to download the artifact as a jar
    instead of as a war which is what mpl-common-webapps packaging is
    defined to be in it's pom. Do I also need to use a snapshot version of
    maven to make this work or is there something else I'm missing?

    Thanks for the help,
    Rich

    Stephane Nicoll wrote:
    1/3/06, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    >Hello all,
    >>

    >I thought I saw on the list some time ago that a pom for a war could
    >specify another war artifact as a dependency with the idea being that
    >the depended war would be unzipped and then the webapp from the current
    >project would be copied over it. Is this only available in a snapshot
    >version of the war plugin? Is it deployed anywhere? If not, where is
    >the source repo for the war plugin? I tried looking at the project page
    >for the plugin, but that has an invalid link
    >
    >
    >

    Plugins have moved

    S
  • No.3 | | 1225 bytes | |

    Does this new functionality require a snapshot version of maven as
    well? I checked out the source for the maven-war-plugin and did mvn
    install and then went back to my project and tried to run 'mvn war:war'
    but I still get

    required artifacts missing:

    So, it looks like rather than trying to use a war it's trying to use a
    jar, even though the pom for mpl-common-webapp clearly states the
    packaging is war.

    Rich

    Stephane Nicoll wrote:
    1/3/06, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    >Hello all,
    >>

    >I thought I saw on the list some time ago that a pom for a war could
    >specify another war artifact as a dependency with the idea being that
    >the depended war would be unzipped and then the webapp from the current
    >project would be copied over it. Is this only available in a snapshot
    >version of the war plugin? Is it deployed anywhere? If not, where is
    >the source repo for the war plugin? I tried looking at the project page
    >for the plugin, but that has an invalid link
    >
    >
    >

    Plugins have moved

    S
  • No.4 | | 1494 bytes | |

    Have you tried mvn package instead of mvn war:war?

    mvn war:war is rarely what you want, it won't run any of the previous steps
    - Brett

    1/4/06, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    Does this new functionality require a snapshot version of maven as
    well? I checked out the source for the maven-war-plugin and did mvn
    install and then went back to my project and tried to run 'mvn war:war'
    but I still get

    required artifacts missing:

    So, it looks like rather than trying to use a war it's trying to use a
    jar, even though the pom for mpl-common-webapp clearly states the
    packaging is war.

    Rich

    Stephane Nicoll wrote:
    1/3/06, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    >
    >Hello all,
    >>

    >I thought I saw on the list some time ago that a pom for a war could
    >specify another war artifact as a dependency with the idea being that
    >the depended war would be unzipped and then the webapp from the current
    >project would be copied over it. Is this only available in a snapshot
    >version of the war plugin? Is it deployed anywhere? If not, where is
    >the source repo for the war plugin? I tried looking at the project page
    >for the plugin, but that has an invalid link
    >
    >>

    >

    Plugins have moved

    S

Re: war as a dependency


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

EMSDN.COM