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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:21:57+00:00 2026-06-12T09:21:57+00:00

I have multi-moduled ejb3-web application outlined as follows: project – pom.xml project_ear – pom.xml

  • 0

I have multi-moduled ejb3-web application outlined as follows:

project
- pom.xml
project_ear
- pom.xml
project_ejb
- pom.xml
project_web
- pom.xml

And I have different similar project in which the previous one (project_ejb) is included.

project2
- pom.xml
project2_ear
- pom.xml
project2_ejb
- pom.xml (here, project_ejb is gonna be included as a dependency)
project2_web
- pom.xml

As you see they have similar structure. Anyways, the problem which I face is when I want to use ${project.version} I cannot clean or build the project2 anymore.


Here the pom samples of project

“project” Parent pom:

<modelVersion>4.0.0</modelVersion>
<groupId>com.project</groupId>
<artifactId>project</artifactId>
<version>${project.version}</version> 
<packaging>pom</packaging>

“project_ejb” pom:

   <modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>com.project</groupId>
        <artifactId>project</artifactId>
    <version>${project.version}</version>
    <relativePath>../project/pom.xml</relativePath>
</parent>     

<artifactId>projectEjb</artifactId>
<packaging>ejb</packaging>

project2 parent pom:

    <modelVersion>4.0.0</modelVersion>
<groupId>com.projectdata</groupId>
<artifactId>projectdata</artifactId>
<version>${project.version}</version>
<packaging>pom</packaging>

project2_ejb pom

    <modelVersion>4.0.0</modelVersion> 
<artifactId>projectdataEjb</artifactId>
<packaging>ejb</packaging>

<parent>
            <groupId>com.projectdata</groupId>
    <artifactId>projectdata</artifactId>
            <version>${project.version}</version>
    <relativePath>../projectdata/pom.xml</relativePath>
    </parent>

And I have added project_ejb module into project2_ejb as a dependency:

            <dependency>
        <groupId>com.project</groupId>
        <artifactId>projectEjb</artifactId> 
        <scope>provided</scope> 
        <type>ejb</type>
    </dependency>

All in all, when I build project, everything is ok. However, when I try to build project2, it comes up with a problem appearing maven console and says that:

 IllegalArgumentException: Illegal character in path at index 79: http://abcsvn01.host.myproject.net/maven/my/inhouse/com/project/project/${project.version}/project-${project.version}.pom -> [Help 1]

It is worth mentioning that when I remove ${project.version} and write constants, everything is ok. However, why I do not use this feature while maven3 is providing me already.

I would appreciate any help. Thanks in advance.

  • 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-12T09:21:57+00:00Added an answer on June 12, 2026 at 9:21 am

    When you are referencing a parent you must include a specific version. You cannot use ${project.version}. This is because you may want to build just the child and the parent is in a repo. Then you will need to point to a specific parent.

    The thing that happened in your child is that it tries to locate a pom file named project-${project.version}.pom and that is because you didn’t give an explicit version number to relate to.

    This will work (change the version to your specific version). The version will be inherited by the child.

    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.project</groupId>
        <artifactId>project</artifactId>
        <version>1.0-SNAPSHOT</version>
        <relativePath>../project/pom.xml</relativePath>
    </parent>     
    
    <artifactId>projectEjb</artifactId>
    <packaging>ejb</packaging>
    

    Next thing is that you will need to give the version of the dependent projectEjb in project2_ejb. Otherwise it will not know what version of the projectEjb to use. Your project and project2 are unrelated so their versions will differ.

    Added a version tag (change to your specific versions):

    <dependency>
        <groupId>com.project</groupId>
        <artifactId>projectEjb</artifactId>
        <version>1.0-SNAPSHOT</version>
        <scope>provided</scope> 
        <type>ejb</type>
    </dependency>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-module Maven project that is a Java web application. I am
I have the multi module project this is the parent pom. <?xml version=1.0 encoding=UTF-8?>
I have a multi module web project. Four modules of the project are packaged
I have a multi module maven web application, which uses hibernate. I use the
This is my parent pom.xml (part of it) in a multi-module project: ... <build>
I have Maven multi-module project with such structure: parent-pom-project -- module1 -- module2 At
I have a multi-module maven project made up of three sub-modules: web , service
My multi-module Maven project looks like: /foo pom.xml /foo-parent /foo-core /foo-something /src /site Pay
We have a multi module project with following modules: Database Persistence Business Application The
I have a multi-module project. parent POM (1.0-SNAPSHOT) |-- module1 (1.0-SNAPSHOT) |-- module2 (1.0-SNAPSHOT)

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.