javydreamercsw
javydreamercsw

Reputation: 5139

Maven deploy fails on Maven parent project

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?

Upvotes: 2

Views: 6076

Answers (2)

javydreamercsw
javydreamercsw

Reputation: 5139

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

Upvotes: 2

Nicola Musatti
Nicola Musatti

Reputation: 18236

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.

Upvotes: 1

Related Questions