jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3685

Dependency can't be resolved but has been found in the reactor.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 2.0.9
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate

Description

Since I upgraded maven to 2.0.9, I get messages like the following endlessly:

Downloading: http://m-m-m.sourceforge.net/repository/net/sf/m-m-m/mmm-util-core/1.0.2-SNAPSHOT/mmm-util-core-1.0.2-SNAPSHOT.jar
[WARNING] The dependency: net.sf.m-m-m:mmm-util-core:jar:1.0.2-SNAPSHOT can't be resolved but has been found in the reactor.
This dependency has been excluded from the plugin execution. You should rerun this mojo after executing mvn install.

This also happens, if someone checks out the project and does "mvn eclipse:eclipse". The process still works but takes extraordinary long to proceed because it scales about n^2 with n beiing the number of modules in your reactor.
You should also take into account that "mvn install" aborts if some tests fail.
Sorry to say so, but this behaviour of maven is absolutely inacceptable. I hope there is a chance to fix this in the next release(s). Thanks!

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    sample-MNG-3685.tgz
    09/Apr/09 9:44 AM
    0.9 kB
    Jochen Hinrichsen

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. MJAVADOC-116 Impossible to aggregate javadoc if snapshot never built

  • Major - Major loss of function.
  • Reopened - This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brett Porter added a comment - 05/Aug/08 11:28 PM

it looks like this got missed for 2.0.10 so we should review for 2.0.11.

Do you have a sample project?

Show
Brett Porter added a comment - 05/Aug/08 11:28 PM it looks like this got missed for 2.0.10 so we should review for 2.0.11. Do you have a sample project?
Hide
Permalink
Brett Porter added a comment - 06/Aug/08 12:02 AM

Ah, I've now seen this myself.

I think this is a failure condition - it's a resolution error - at the least.

Though I don't understand why it isn't sufficient to use the one from the reactor - it sounds like it is just being precautionary against goals that need the actual artifacts.

Show
Brett Porter added a comment - 06/Aug/08 12:02 AM Ah, I've now seen this myself. I think this is a failure condition - it's a resolution error - at the least. Though I don't understand why it isn't sufficient to use the one from the reactor - it sounds like it is just being precautionary against goals that need the actual artifacts.
Hide
Permalink
Jörg Hohwiller added a comment - 06/Aug/08 1:42 PM

This only happens for SNAPSHOT versions if that helps. Anyhow if it is a module in the reactor there can be no more actual place than that.

Show
Jörg Hohwiller added a comment - 06/Aug/08 1:42 PM This only happens for SNAPSHOT versions if that helps. Anyhow if it is a module in the reactor there can be no more actual place than that.
Hide
Permalink
Kaizer Sogiawala added a comment - 22/Aug/08 6:22 PM

We have seen this happen with release artifacts too.

Show
Kaizer Sogiawala added a comment - 22/Aug/08 6:22 PM We have seen this happen with release artifacts too.
Hide
Permalink
Borut Bolcina added a comment - 08/Oct/08 6:24 AM

We are having this issue too. When doing mvn release:prepare and the artifact was not installed previously, it complains with "...SNAPSHOT can't be resolved but has been found in the reactor.". We use Maven 2.0.9.

Show
Borut Bolcina added a comment - 08/Oct/08 6:24 AM We are having this issue too. When doing mvn release:prepare and the artifact was not installed previously, it complains with "...SNAPSHOT can't be resolved but has been found in the reactor.". We use Maven 2.0.9.
Hide
Permalink
Torben S. Giesselmann added a comment - 02/Feb/09 12:52 PM

Could someone provide a sample project?

Show
Torben S. Giesselmann added a comment - 02/Feb/09 12:52 PM Could someone provide a sample project?
Hide
Permalink
Jochen Hinrichsen added a comment - 09/Apr/09 9:43 AM

Attached a sample project. It consists of two modules, module-1 depending on module-common. Executing 'mvn release:prepare' produces:

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Module Common
[INFO] Module #1
[INFO] Simple Maven Multi-Module Project
[INFO] Searching repository for plugin with prefix: 'release'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Simple Maven Multi-Module Project
[INFO] task-segment: [release:prepare] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: (some repo)
Downloading: (more repos)
[WARNING] The dependency: name.hinrichsen.jochen:module-common:jar:1 can't be resolved but has been found in the reactor.
This dependency has been excluded from the plugin execution. You should rerun this mojo after executing mvn install.

[INFO] [release:prepare]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE

I tried both maven 2.0.8, 2.0.10 and 2.1.0 - same problem. I also ran the sonatype 'Definitive Guide' multi-module example in chapter 6 - same problem.

Not sure if this is a release plugin or a maven issue. The proposed solution from thread http://www.mail-archive.com/users@maven.apache.org/msg75486.html is to make the release plugin execute an 'install' lifecycle:

<configuration>
<preparationGoals>clean install</preparationGoals>
</configuration>

Also does not work for me.

Show
Jochen Hinrichsen added a comment - 09/Apr/09 9:43 AM Attached a sample project. It consists of two modules, module-1 depending on module-common. Executing 'mvn release:prepare' produces: [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Module Common [INFO] Module #1 [INFO] Simple Maven Multi-Module Project [INFO] Searching repository for plugin with prefix: 'release'. [INFO] ------------------------------------------------------------------------ [INFO] Building Simple Maven Multi-Module Project [INFO] task-segment: [release:prepare] (aggregator-style) [INFO] ------------------------------------------------------------------------ Downloading: (some repo) Downloading: (more repos) [WARNING] The dependency: name.hinrichsen.jochen:module-common:jar:1 can't be resolved but has been found in the reactor. This dependency has been excluded from the plugin execution. You should rerun this mojo after executing mvn install. [INFO] [release:prepare] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE I tried both maven 2.0.8, 2.0.10 and 2.1.0 - same problem. I also ran the sonatype 'Definitive Guide' multi-module example in chapter 6 - same problem. Not sure if this is a release plugin or a maven issue. The proposed solution from thread http://www.mail-archive.com/users@maven.apache.org/msg75486.html is to make the release plugin execute an 'install' lifecycle: <configuration> <preparationGoals>clean install</preparationGoals> </configuration> Also does not work for me.
Hide
Permalink
Jochen Hinrichsen added a comment - 11/May/09 4:38 AM

Any new insights regarding this issue after one month?

Show
Jochen Hinrichsen added a comment - 11/May/09 4:38 AM Any new insights regarding this issue after one month?
Hide
Permalink
Zac Thompson added a comment - 16/Jun/09 1:19 PM - edited

-Is this the same root cause as MRELEASE-3 ?-
The above has existed since 2005; described as 'an MNG issue' – is this correct? Can the MNG people and the MRELEASE people get together to determine where the root problem is?

I think that some of the following may be related as well (but likely not all):
MNG-3283
MNG-3023
MNG-3260
MJAVADOC-116
... however, I'm not confident enough in the relationship to create the links myself-

please ignore my text above ... seems like there was a good reason I was unsure of myself

Show
Zac Thompson added a comment - 16/Jun/09 1:19 PM - edited -Is this the same root cause as MRELEASE-3 ?- The above has existed since 2005; described as 'an MNG issue' – is this correct? Can the MNG people and the MRELEASE people get together to determine where the root problem is? I think that some of the following may be related as well (but likely not all): MNG-3283 MNG-3023 MNG-3260 MJAVADOC-116 ... however, I'm not confident enough in the relationship to create the links myself- please ignore my text above ... seems like there was a good reason I was unsure of myself
Hide
Permalink
Wim Deblauwe added a comment - 06/Jul/09 9:39 AM

I am having the same issue, also with

mvn release:prepare -DpreparationGoals="clean install"

Show
Wim Deblauwe added a comment - 06/Jul/09 9:39 AM I am having the same issue, also with mvn release:prepare -DpreparationGoals="clean install"
Hide
Permalink
Antony Stubbs added a comment - 20/Jul/09 1:11 AM

I've also hit the problem, even using
mvn release:prepare -DautoVersionSubmodules=true -DpreparationGoals="clean install"
work around I used was to checkout the commit with the release versions separately and do a mvn install

Show
Antony Stubbs added a comment - 20/Jul/09 1:11 AM I've also hit the problem, even using mvn release:prepare -DautoVersionSubmodules=true -DpreparationGoals="clean install" work around I used was to checkout the commit with the release versions separately and do a mvn install
Hide
Permalink
Anthony Whitford added a comment - 27/Nov/09 1:26 AM

I seem to be experiencing this problem with the latest Javadoc plugin. I would characterize the issue as a Blocker!

Show
Anthony Whitford added a comment - 27/Nov/09 1:26 AM I seem to be experiencing this problem with the latest Javadoc plugin. I would characterize the issue as a Blocker!
Hide
Permalink
Brett Porter added a comment - 30/Dec/09 9:53 PM

sorry, but I can't reproduce this in 2.2.1 or 3.0-alpha-5.

With the given test project, running release:prepare is expected to fail - there are no snapshots. Changing the versions to all be 1-SNAPSHOT, it succeeds. Yes, the error message is present - but that's a problem with the release plugin requiring the artifacts, and not just the projects. This is well documented in issues in MRELEASE as a separate issue.

I couldn't get eclipse:eclipse or javadoc:aggregate to fail. javadoc:javadoc does fail because it requires the JAR to be built, much as above. I think the warning is correct.

Show
Brett Porter added a comment - 30/Dec/09 9:53 PM sorry, but I can't reproduce this in 2.2.1 or 3.0-alpha-5. With the given test project, running release:prepare is expected to fail - there are no snapshots. Changing the versions to all be 1-SNAPSHOT, it succeeds. Yes, the error message is present - but that's a problem with the release plugin requiring the artifacts, and not just the projects. This is well documented in issues in MRELEASE as a separate issue. I couldn't get eclipse:eclipse or javadoc:aggregate to fail. javadoc:javadoc does fail because it requires the JAR to be built, much as above. I think the warning is correct.

People

  • Assignee:
    Unassigned
    Reporter:
    Jörg Hohwiller
Vote (18)
Watch (19)

Dates

  • Created:
    25/Jul/08 3:48 PM
    Updated:
    30/Dec/09 9:53 PM
    Resolved:
    30/Dec/09 9:53 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.