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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:45:42+00:00 2026-05-27T03:45:42+00:00

I have a multi-module project and can’t perform a release. I tried these layouts:

  • 0

I have a multi-module project and can’t perform a release.

I tried these layouts:

svnroot/trunk/parent
              /module1
              /module2

and

svnroot/parent/trunk
svnroot/module1/trunk
svnroot/module2/trunk

After reading

  • http://ericmiles.wordpress.com/tag/flat-structure/ and
  • http://ericmiles.wordpress.com/tag/release-plugin/

I hoped that the 1st layout would work, but in both cases maven terminates with this error:

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).

Project ID: unknown

 Reason: Could not find the model file 'C:\myworkspace\parent\target\module1'. for project unknown
[INFO] ------------------------------------------------------------------------            

It seems that some work is already done when this error occurs, all version numbers are updated in the poms.

I recgonized that the parent module was checkout under parent\target\checkout and it seems that the plugin expects the modules checked out under target.

  • Did I miss an important setting ?

  • Could anyone describe how he got the mvn release to work?

The parent.pom has the following settings

    <groupId>company.project</groupId>
    <artifactId>parent</artifactId>
    <version>1.0.9-SNAPSHOT</version>
    <packaging>pom</packaging>

     <modules>
        <module>../module1</module>
        <module>../module2</module>
    </modules> 

    <scm>
        <connection>scm:svn:file:///SVNROOT/trunk/parent</connection>
        <url>file:///SVNROOT/trunk/parent</url>
    </scm>

     <dependency>
            <groupId>company.project</groupId>
            <artifactId>module1</artifactId>
            <version>1.0.9-SNAPSHOT</version>
     </dependency>

A modules pom looks like this

<parent>
    <artifactId>parent</artifactId>
    <groupId>company.project</groupId>
    <version>1.0.9-SNAPSHOT</version>
</parent>

<name>module1</name>
<artifactId>module1</artifactId>

<scm>
    <connection>scm:svn:file:///SVNROOT/trunk/module1</connection>
    <url>file:///SVNROOT/trunk/module1</url>
</scm>

The release is invoked by

mvn -e -DcommitByProject=true -DautoVersionSubmodules=true  -Dresume=false release:prepare  release:perform

Maven version is 2.2.1

  • 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-27T03:45:43+00:00Added an answer on May 27, 2026 at 3:45 am

    My structure is

    /svnroot/trunk/parent
    /svnroot/trunk/parent/module1
    /svnroot/trunk/parent/module2
    

    etc. and I haven’t had any trouble with building or using the release plugin. I’m currently on 3.0.3, but I think it worked on 2.2.x. In any case, it doesn’t match either of the structures you list in your question and might be worth a try.

    • 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 project. parent POM (1.0-SNAPSHOT) |-- module1 (1.0-SNAPSHOT) |-- module2 (1.0-SNAPSHOT)
I have a multi-module project. I thought I can compile only a single module
I have a multi module project with a parent project A, and two childs
I have the multi module project this is the parent pom. <?xml version=1.0 encoding=UTF-8?>
I have a multi-module project, and I am using profiles in the parent pom
I have a multi-module Maven project with a parent project P and three sub-modules
I am trying to perform a release using a multi-module maven project. My objective
I have some multi-module project. Some modules are packaged as wars and some as
I have a multi-module maven project with an installer sub-project. The installer will be
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin

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.