Maven 2.x Release Plugin

Cant Release project due to non released dependencies

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: prepare
  • Labels:
    None
  • Number of attachments :
    1

Description

Hi,
I am running /sbcimp/run/pd/maven/2.0.6/bin/mvn release:prepare --batch-mode -P fast ( profile to ignore tests). But it fails with the below error message. but the fact is we dont have any SNAPSHOT dependency setup in projects pom.xml file. But still we are getting this. Also, it started happened recently not from the beggining. So, can some one tell on which cases we will get this error? But sure that nothing has dependency like <SNAPSHOT> etc.,

If I remove the --batch-mode option and chose to resolve the project depedencies while it asks it runs fine. So, if anyone has any info of what it tries to remove as well will be great.

[INFO] ----------------------------------------------------------------------------
[INFO] Building fmm-credit
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: svn --non-interactive status
[INFO] Working directory: /sbclocal/teamcity/QABuild/07_10_2009_16_05/credit-1.4.2.x
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Can't release project due to non released dependencies :
active project artifact:
artifact = com.ubs.fmm.core:fmm-core-common:jar:1.4.2.1-SNAPSHOT:compile;
project: org.apache.maven.project.MavenProject@137052d8
in project 'fmm-sec-pricing-web' (com.ubs.fmm.securities:fmm-sec-pricing-web:jar:1.4.2.1-SNAPSHOT)

Activity

Hide
Rajesh Sivagurunathan added a comment -

Forgot mention. I am using maven version 2.0.6

Show
Rajesh Sivagurunathan added a comment - Forgot mention. I am using maven version 2.0.6
Hide
Mark Struberg added a comment -

Rajesh, maybe you have a snapshot dependency in your parent pom?

Please try

mvn help:effective-pom

and search the output for the dependency.

You can also try

mvn dependency:tree

to show all the dependencies of your project as a tree.

Show
Mark Struberg added a comment - Rajesh, maybe you have a snapshot dependency in your parent pom? Please try
mvn help:effective-pom
and search the output for the dependency. You can also try
mvn dependency:tree
to show all the dependencies of your project as a tree.
Hide
Rajesh Sivagurunathan added a comment -

Hi. Attached the effective pom with this. Its the current dev version and I would expect release:prepare will stripe off these snapshot during the build.
But I couldn't run dependency:tree

Required goal not found: dependency:tree

Show
Rajesh Sivagurunathan added a comment - Hi. Attached the effective pom with this. Its the current dev version and I would expect release:prepare will stripe off these snapshot during the build. But I couldn't run dependency:tree Required goal not found: dependency:tree
Hide
Mark Struberg added a comment -

looks good so far. Have you set the versions of the other modules you use manually in your pom or in the <dependencyManagement> section of your parent pom (which is the way to go)?

Show
Mark Struberg added a comment - looks good so far. Have you set the versions of the other modules you use manually in your pom or in the <dependencyManagement> section of your parent pom (which is the way to go)?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: