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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:05:24+00:00 2026-05-16T12:05:24+00:00

I have a java project consisting of three modules project-common project-a project-b Project a

  • 0

I have a java project consisting of three modules

  • project-common
  • project-a
  • project-b

Project a and b use -common as dependency.

I use a simple assembly configuration to put project-a, project-b and all dependent libraries (spring and so on) in a single archive.

I also want to provide startscripts for different platforms (windows32, windows64, linux32, linux64 and macosx).
For example I will use for windows winrun4j and sh-scripts for linux.

What is the best approach to manage these files (as they don’t need any compilation etc. like native libraries)?

Currently I placed the startfiles for every project in its /main/resources/bin folder resulting in an assembly were all startscripts for alle platforms end up.

Is there some clevery why to move these startfiles into dedicated modules and manage them somewhow to be able to build “platform specific” assemblies including only the startfiles for a given platform?

  • 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-16T12:05:25+00:00Added an answer on May 16, 2026 at 12:05 pm

    You can use profiles activation and OS detection :

    <profiles>
        <profile>
            <activation>
                <os>
                    <family>windows</family>
                    <arch>x86</arch>
                </os>
            </activation>
            ....
        </profile>
    </profiles>
    

    Resources :

    • Introduction to build profiles
    • Maven enforcer plugin – Require OS Version

    On the same topic :

    • Maven: Finding out whether running in a 32 or a 64 bit JVM
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java project that expects external modules to be registered with it.
I have a project which has gui consisting of three buttons.Now one of these
I have a Java project X has dependency (in pom file) on project Y.
I have a Java project (in Eclipse) consisting of several packages. I would like
I have a Java Project in which I am writing a simple JUNIT test
I have a Java project with all source files in the src folder. This
I have a java project that uses JPA 2/Hibernate 3.5.6 for data access and
I have a Java project that needs a addon interface. I was thinking about
I have a Java project in Eclipse with ~10 packages and ~10 class files
I have a Java project connecting to an Ingres database and using the Spring

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.