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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:40:41+00:00 2026-05-17T15:40:41+00:00

I work with Maven2 . I want to know is there a way to

  • 0

I work with Maven2.
I want to know is there a way to hide the version of the jar after the build with packaging type “ear“.

For example if:

  1. I use junit with version 5 i want to get it in my ear with the name junit.jar and not junit-5.jar.
  2. I use an external jar named “file.jar” and i do build with type of packaging “ear” and i want that after the build this jar will added in the ear with his same original name “file.jar” and not “file-version.jar”.

I’m not using plugin, i’m just dependency:
I have this pom for example:

<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>project</groupId>
  <artifactId>project</artifactId>
  <version>1</version>
  <packaging>ear</packaging>
  <dependencies>
    <dependency>
        <groupId>file</groupId>
        <artifactId>file</artifactId>
        <version>1</version> // just because it can't be empty
        <type>jar</type>
    </dependency>
  </dependencies>
</project>

And I have installed the file.jar in my local repository by using mvn install:install-file

And I want to have as artifact an ear “project.ear” that contains the file.jar without the version name (not file-1.jar)!

  • 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-17T15:40:41+00:00Added an answer on May 17, 2026 at 3:40 pm

    You just have to set the name with the <bundleFileName> tag in your <***Module>.

    But I must say, I don’t really see the point of having a more obscure name for an jar.


    Resources :

    • maven.apache.org – EAR Modules
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work with Maven and I want to do a build with packaging ear
Does anybody know if there is a way to automatically commit a project (a
Here is my work environment: Eclipse Juno as IDE with maven2 plugin on it
The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
Is there a way ( I mean how do I ) set a system
I hope I'm explaining this as accurately as possible, and I want to know
I build all my web projects at work using RAD/Eclipse, and I'm interested to
I'm a student and i want make a build tool as a side project

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.