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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:03:56+00:00 2026-06-01T23:03:56+00:00

I am creating .ear using maven <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.6</version> <configuration> <finalName>wsformatter-ear</finalName> <includeLibInApplicationXml>true</includeLibInApplicationXml> <version>1.4</version>

  • 0

I am creating .ear using maven

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-ear-plugin</artifactId>
  <version>2.6</version>
  <configuration>
    <finalName>wsformatter-ear</finalName>
    <includeLibInApplicationXml>true</includeLibInApplicationXml>
    <version>1.4</version>
  </configuration>
</plugin>  

All dependencies in the .ear look like joda-time-1.6.2.jar, commons-io-1.4.jar etc.

But also, I have dependencies, that I want have without version. For example, how can I do, that dependency slf4j-api-1.5.6.jar will look like slf4j-api.jar in my .ear

  • 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-01T23:03:57+00:00Added an answer on June 1, 2026 at 11:03 pm

    Basically, you can’t (without some kind of hacking on Maven’s plugins’ configuration) and even if you could – just don’t. Maven approach and philosophy about dependencies is being strict and straight about them, including default convention of having version as file name suffix. It just immediately say which version of the artifact is used. If you depend on some artifact that is often released, you have to update its version in your EAR’s POM anyway, so its “propagation” isn’t somehow self-acting. Therefore, I don’t see any problem with this file name suffix.

    If this need for frequent change is problematic for you, maybe you should consider to modify somehow this frequently released artifact’s development cycle? Probably you can extend a little a time it spend during same SNAPSHOT version? Even if you do frequent “internal” releases (like nightbuilds), Maven doesn’t force you to bump your version every release (in sense of Maven Release Plugin). You can stay with some SNAPSHOT version as long as you want. Even in really quick Agile processes (or Kanban) this kind of “real” release usually happens every few weeks and it’s long enough to be manageable.

    At the end, it’s not like this I won’t help you (or something like this) or don’t want to. I just think you’re trying to go against Maven. Maven is really powerful if you accept and go with its approach and conventions. From my experience, trying to get around this means problems (sooner or later). I’ve already seen many projects that had Maven-like-Ant configuration and many developers around complaining that Maven sucks. After figuring out the stuff there I said them: “Maven doesn’t suck, your POMs do”.

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

Sidebar

Related Questions

I've been using the Maven EAR plugin for creating my ear files for a
I am trying to release a web project using Maven 2.2.1 and the maven-release-plugin
I am using RAD7.5 while creating EAR project with level 5.0, I find that
I created a new Maven Project and selected the org.codehaus.mojo.arhcetypes ear-javaee6 archetype. When I
Creating the closure is easy but using it is confusing for me. Here is
I have a maven project that I want to build without version. Now, when
I am creating an EAR with 1 war file (appWeb.war is my web module)
Creating a zip file using Send To -> Compressed folder excludes .hg folder on
Creating My Windows Form Application and using ADO.Net as Data Access layer and SQL
Creating a simple UI using MS Access, hoping to do minimal actual coding (actually

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.