Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 743309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:50:54+00:00 2026-05-14T08:50:54+00:00

I’m setting up an integration test module for a good sized web project. The

  • 0

I’m setting up an integration test module for a good sized web project. The integration test module is separated from the web project itself, and it has it’s own pom.

The idea is to use the maven-soapui-plugin to send requests and verify the response. Setting up the soapui-plugin is no hassle. However, I’m having trouble with figuring out how I can tell the jetty-maven-plugin to deploy a war from a remote repository.

If I have understood correctly, the jetty-maven-plugin has a property called ‘<webApp>/<webApp>’ which lets me specify the war file to deploy. The problem is that the war file is not present in the module itself.

I have heard that I can use the maven assembly plugin to retrieve the war from a repository via the projects artifactId, but I am yet to figure out how I would go about doing so.

Here’s a summary of what I want:

  1. Retrieve a specific war from a repository or the like, in example via its artifactId.
  2. Deploy this war to the jetty-maven-plugin (goal deploy-war?)
  3. get maven-soapui-plugin to run tests and report the results back in the integration-test phase.

I am pretty sure I’ve got step 3 covered, but I am very unsure how to achieve step 1 and 2.

Any help is greatly appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:50:54+00:00Added an answer on May 14, 2026 at 8:50 am

    It is maybe possible to use dependency:copy to retrieve the war, unpack it and to get the whole thing working with the maven jetty plugin, but this would be hacky and kinda ugly. A cleaner solution would be to use the Maven Cargo plugin and this is my suggestion. Below, a sample POM showing how to retrieve a WAR artifact using its coordinates and how to deploy it on an embedded Jetty container using Cargo:

    <dependencies>
      <dependency>
        <groupId>war group id</groupId>
        <artifactId>war artifact id</artifactId>
        <type>war</type>
        <version>war version</version>
      </dependency>
      ...
    </dependencies>
    ...
    <build>
      <plugins>
        <plugin>
          <groupId>org.codehaus.cargo</groupId>
          <artifactId>cargo-maven2-plugin</artifactId>
          <configuration>
            <!-- Container configuration -->
            <container>
              <containerId>jetty6x</containerId>
              <type>embedded</type>
            </container>
            <!-- Configuration to use with the container or the deployer -->
            <configuration>
              <deployables>
                <deployable>
                  <groupId>war group id</groupId>
                  <artifactId>war artifact id</artifactId>
                  <type>war</type>
                  <properties>
                    <context>war context</context>
                  </properties>
                </deployable>
              </deployables>
            </configuration>
            <!-- Don't wait, execute the tests after the container is started -->
            <wait>false</wait>
          </configuration>
          <executions>
            <execution>
              <id>start-container</id>
              <phase>pre-integration-test</phase>
              <goals>
                <goal>start</goal>
              </goals>
            </execution>
            <execution>
              <id>stop-container</id>
              <phase>post-integration-test</phase>
              <goals>
                <goal>stop</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        ...
      </plugins>
      ...
    </build>
    

    Finally, just bind the soapui plugin on the integration-test phase.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 400k
  • Answers 400k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You could use: Time.now.to_i. May 15, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer At 15.10 Array Creation Expressions the JLS says [...] a… May 15, 2026 at 4:17 am
  • Editorial Team
    Editorial Team added an answer Tried all the mentioned approaches but none suits what i'm… May 15, 2026 at 4:17 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.