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 7568181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:51:30+00:00 2026-05-30T14:51:30+00:00

We have installation folder that we use with maven to pack a release up,

  • 0

We have installation folder that we use with maven to pack a release up,

This Installation folder has some static files, and a pom.xml

The build goal is to copy the static files to the target installation folder and some zip
artifacts from the repository – expand them and put them in the target folder under /unzipped.

installation folder:

/installation_folder
pom.xml
    /some_files
             /file1
             /file2

Target folder should be like:

/target
    /installation_files
        /some_files
             /file1
             /file2
        /unzipped
             /prj1   - unzipped artifact prj1 from the repository
             /prj2   - unzipped artifact prj2 from the repository

On this “installation pom” – I have a reference to assembly xml; I am able to copy the static files – and get artifacs from the repository,

The question is – to copy the zip from repository and expand them in the target/unzipped folder

should I use Modules and moduleSet or dependency and dependencySets?

Should the pom.xml + assembly.xml look like:

project.group
installation_project
pom

<modules>
    <module>prj1</module>        
    <module>prj2</module>       
</modules>

…

and assembly.xml:

<moduleSets>
    <moduleSet>
        <includes>
            <include>*:*</include>
        </includes>
            <binaries>
            <unpack>true</unpack>
            </binaries>
        </binaries>
    </moduleSet> 


Or should it look like this:

<project>
<groupId>project.group</groupId>
<artifactId>installation_project</artifactId>
<packaging>pom</packaging>

    <dependencies>

        <dependency>
            <artifactId>prj1</artifactId>
            <groupId>gruop_id</groupId>
            <version>1.0-SNAPSHOT</version>
            <type>zip</type>
        </dependency>
        <dependency>
            <artifactId>prj2</artifactId>
            <groupId>gruop_id</groupId>
            <version>2.0</version>
            <type>zip</type>
        </dependency>
    </dependencies>

…

and assembly.xml:

<dependencySets>
    <dependencySet>
        <outputDirectory>installation_files/unzipped/</outputDirectory>
        <outputFileNameMapping>${artifact.artifactId}</outputFileNameMapping>
        <includes>
            <include>*:*:zip</include>
        </includes>
        <unpack>true</unpack>
    </dependencySet>
</dependencySets>

Thank you!

  • 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-30T14:51:31+00:00Added an answer on May 30, 2026 at 2:51 pm

    Another way would be to just maven dependency plugin, with goal=unpack.

    <plugin>
       <artifactId>maven-dependency-plugin</artifactId>
       <executions>
         <execution>
           <id>unpack</id>
           <phase>generate-resources</phase>
           <goals>
              <goal>unpack</goal>
           </goals>
           <configuration>
             <artifactItems>
               <artifactItem>
                  <groupId></groupId>
                  <artifactId></artifactId>
                  <version></version>
                  <type></type>
                  <overWrite></overWrite>
                  <outputDirectory></outputDirectory>
               </artifactItem>
             </artifactItems>
           </configuration>
         </execution>
       </executions>
    </plugin>
    

    Another way is to use an assembly plugin but i find that quite cumbersome and is usually meant for more complex assembly creation than simple unzipping/zipping.

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

Sidebar

Related Questions

I have a folder pulled from a wordpress installation, >1000 files. Some php code
I have a crashed/hacked Joomla installation (Files and Folders only) Database has NOT been
I have a folder with a lot of .class files. This classes are updated
I have an oc4j installation bereft of any release notes or version documentation. In
I have a WSS installation that's behind basic authentication/SSL (it's hosted at a public
We have a PeopleSoft installation and I am building a separate web application that
I have one testing module that I want to use for android testing. I
I have an installer that I would like to use for a major upgrade.
I am trying to create an mac application in XCode that has some of
I have a normal Windows Server 2008 installation with II7. Each website has it's

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.