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

  • SEARCH
  • Home
  • 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 8428101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:57:42+00:00 2026-06-10T04:57:42+00:00

Using maven 3.0.4 I have a multi-module maven project, with some modules producing war

  • 0

Using maven 3.0.4

I have a multi-module maven project, with some modules producing war files, and some producing jar files, as declared in their respective poms

I want to create a distribution archive with the jar artifacts and dependencies going into one subdirectory and the webapp artifacts (sans dependencies) going into another subdirectory.

something like

project.tar/lib     <-- module jars and deps here
project.tar/webapp  <-- wars here

It’s simple enough to get the assembly to dump everything in one directory.

This is what I have tried:

<assembly>
    <id>bin</id>
    <formats>
        <format>tar.gz</format>
    </formats>

    <moduleSets>
        <moduleSet>
            <includes>
                <include>${module.groupId}:${module.artifactId}:war:${module.version}</include>
            </includes>
            <binaries>
                <includeDependencies>false</includeDependencies>
                <outputDirectory>webapp</outputDirectory>
            </binaries>
        </moduleSet>
        <moduleSet>
            <includes>
                <include>${module.groupId}:${module.artifactId}:jar:${module.version}</include>
            </includes>
            <binaries>
                <includeDependencies>true</includeDependencies>
                <outputDirectory>lib</outputDirectory>
            </binaries>
        </moduleSet>
    </moduleSets>
</assembly>

Now when I run this, I get these warnings:

[INFO] Reading assembly descriptor: assembly.xml
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  '${module.groupId}:${module.artifactId}:war:${module.version}'

[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  '${module.groupId}:${module.artifactId}:jar:${module.version}'

[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  '${module.groupId}:${module.artifactId}:war:${module.version}'

[WARNING] NOTE: Currently, inclusion of module dependencies may produce unpredictable results if a version conflict occurs.
[WARNING] The following patterns were never triggered in this artifact inclusion filter:
o  '${module.groupId}:${module.artifactId}:jar:${module.version}'

Not sure what I am doing wrong. My includes are following the “group:artifact:version” pattern specified on maven’s web page.

Thanks

  • 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-06-10T04:57:44+00:00Added an answer on June 10, 2026 at 4:57 am

    This seems to work. Not sure if it is the best way to do it, though. Maven seems to be not honoring the ${module.whatever} variables.

    <dependencySets>
        <dependencySet>
            <includes>
                <include>${project.groupId}:*:war:${project.version}</include>
            </includes>
            <useProjectArtifact>true</useProjectArtifact>
            <outputDirectory>webapp</outputDirectory>
            <unpack>false</unpack>
        </dependencySet>
        <dependencySet>
            <excludes>
                <exclude>${project.groupId}:*:war:${project.version}</exclude>
            </excludes>
            <useProjectArtifact>true</useProjectArtifact>
            <outputDirectory>lib</outputDirectory>
            <unpack>false</unpack>
        </dependencySet>
    </dependencySets>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-module project using Maven. On one of the modules I have
I am using soapUI maven plugin to create a multi-module maven-soapUi project. I have
I have a huge multi-module project , which is being built using maven. Most
We are using maven with eclipse. We have a multi module project, quite big.
I have a multi module Spring project that I set up using Maven: my-root
I have a big multi-module Maven project with thousands of tests. Each test loads
I've just started using maven for trying to build a multi module project. Everything
I want to make my first release of a multi-module maven project using the
I have a multi-module Maven project that is a Java web application. I am
I have a multimodule maven project. the service module depends on domain module using

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.