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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:56:00+00:00 2026-06-12T17:56:00+00:00

I am working on a project that has an EJB-module. There has been a

  • 0

I am working on a project that has an EJB-module. There has been a problem with this module not getting into our maven-repository (Nexus), due to the fact that it lacks version numbering. I am currently trying to fix this, but I can’t seem to get it the way I want it to.

In the pom.xml of the EJB-project:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-ejb-plugin</artifactId>
    <configuration>
      <ejbVersion>3.0</ejbVersion>
      <outputDirectory>${basedir}/target/classes </outputDirectory>
      <jarName>MyProjectEJB</jarName>
      <generateClient>true</generateClient>
      <archive>
        <manifest>
          <addClasspath>true</addClasspath>
        </manifest>
      </archive>
    </configuration>
  </plugin>

This is the way it originally was. Building the module resulted in two .jar files: MyProjectEJB.jar and MyProjectEJB-client.jar. I’ve tried the following to add version numbering:

    <jarName>MyProjectEJB-${project.version}<jarName>

Now, I get something like: MyProjectEJB-4.1-SNAPSHOT.jar and MyProjectEJB-4.1-SNAPSHOT-client.jar. This is almost correct, but I would really like the version number to be last in the client as well (so MyProjectEJB-client-4.1-SNAPSHOT).

How can I achieve this?

  • 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-12T17:56:01+00:00Added an answer on June 12, 2026 at 5:56 pm

    client is in this case a Maven Classifier.

    The classifier allows to distinguish artifacts that were built from the same POM but differ in their content. It is some optional and arbitrary string that – if present – is appended to the artifact name just after the version number.

    If you move it around in the name then it will not be possible to have correct dependencies on it.

    The following dependency will use the EJB:

    <dependency>
        <groupId>your.group</groupId>
        <artifactId>MyProjectEJB</artifactId>
        <version>1.0</version>
    </dependency>
    

    The following dependency will use the EJB client:

    <dependency>
        <groupId>your.group</groupId>
        <artifactId>MyProjectEJB</artifactId>
        <version>1.0</version>
        <classifier>client</classifier>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an enterprise project that has an EJB module and a
I'm trying to get MSBuild working on a project that has just been moved
I'm working on an embedded project that has no file system, and our kludge
I'm working on a project that has categories/subcategories. The database table for this is
I'm currently working on a fairly large project that has been migrated from Ant
I am working on a project that has been running for a long period
I have been working on a project that has common bits of functionality, specifically
I'm working on a large project that has been developed over the span of
I have been working on a project that has 2 interfaces - windows forms
Im working on a project that has an implementation of JOSSO in place. We

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.