2

I have a maven project with the following hierarchy as created with NetBeans:

 root/
       Parent/
              pom.xml
              Project 1/
                        pom.xml
              Project 2/
                        pom.xml
              ....
              Project x/
                        pom.xml

When I try the release:perform it fails when attempting to deploy:

 [ERROR] The build could not read 1 project -> [Help 1]
    [ERROR]   
    [ERROR]   The project  (C:\checkout\pom.xml) has 1 error
    [ERROR]     Non-readable POM C:\checkout\pom.xml: C:\checkout\pom.xml (The system cannot find the file specified)

It looks like the plugin expects the pom to be on the root folder. I was unable to find a customization point on the plug-in to specify the pom.xml location.

Is this not possible, or did I organize the project wrong?

javydreamercsw
  • 5,363
  • 13
  • 61
  • 106

2 Answers2

2

Searching on the net I found this post which pointed me to a question with the answer here.

Community
  • 1
  • 1
javydreamercsw
  • 5,363
  • 13
  • 61
  • 106
1

It looks like you are trying to run mvn release:perform from your checkout root directory, while you should cd to Parent instead.

I assume that your project is indeed stored under Subversion or some other Maven-supported version control tool and that you checked it out in your C:\checkout directory.

Nicola Musatti
  • 17,834
  • 2
  • 46
  • 55
  • I ran the release:perform goal from the parent folder, and yes, I'm using Mercurial. is just that the repository layout is as described in the question when the plug-in does the checkout, the pom is not in the root folder. – javydreamercsw Sep 06 '12 at 16:13
  • But do you have a `Parent` folder in `C:\checkout` or is `C:\checkout` the direct parent folder of your `Project` folders? – Nicola Musatti Sep 06 '12 at 16:15
  • Parent folder is Simple Marauroa Parent. I'm testing the way specified referenced answer on my own answer. – javydreamercsw Sep 06 '12 at 16:18