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.x Dependency Plugin
  • MDEP-113

Unable to find the mojo 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0
  • Component/s: unpack-dependencies
  • Labels:
    None

Description

I encountered the following error when running an "install" on a pom project that where one of the child modules used the "dependency:unpack" goal. I can set up a simple project structure to reproduce if necessary.

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-site-plugin:2.0-beta-6-SNAPSHOT:attach-descriptor': Unable to find the mojo 'org.apache.maven.plugins:maven-site-plugin:2.0-SNAPSHOT:attach-descriptor' in the plugin 'org.apache.maven.plugins:maven-site-plugin'
Component descriptor cannot be found in the component repository: org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-site-plugin:2.0-beta-6-SNAPSHOT:att
ach-descriptor.

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

Attachments

  1. Hide
    Zip Archive
    MDEP-113.zip
    20/Sep/07 11:31 AM
    269 kB
    Matt Read
    1. File
      dep-problem-child/.classpath 0.4 kB
    2. File
      dep-problem-child/.project 0.3 kB
    3. XML File
      dep-problem-child/pom.xml 2 kB
    4. Java Source File
      dep-problem-child/src/main/.../test/App.java 0.2 kB
    5. Java Source File
      dep-problem-child/src/.../test/AppTest.java 0.6 kB
    6. File
      dep-problem-child/target/.../test/App.class 0.5 kB
    7. File
      dep-problem-child/target/.../MANIFEST.MF 0.0 kB
    8. File
      dep-problem-child/.../AboutDialog$1.class 0.7 kB
    9. File
      dep-problem-child/.../AboutDialog$2.class 0.6 kB
    10. File
      dep-problem-child/.../AboutDialog.class 2 kB
    11. File
      dep-problem-child/target/.../Logo.class 2 kB
    12. File
      dep-problem-child/.../ProgressBar.class 3 kB
    13. File
      dep-problem-child/.../TestRunner$1.class 0.7 kB
    14. File
      dep-problem-child/.../TestRunner$10.class 2 kB
    15. File
      dep-problem-child/.../TestRunner$2.class 0.6 kB
    16. File
      dep-problem-child/.../TestRunner$3.class 0.7 kB
    17. File
      dep-problem-child/.../TestRunner$4.class 0.7 kB
    18. File
      dep-problem-child/.../TestRunner$5.class 1 kB
    19. File
      dep-problem-child/.../TestRunner$6.class 0.7 kB
    20. File
      dep-problem-child/.../TestRunner$7.class 0.7 kB
    21. File
      dep-problem-child/.../TestRunner$8.class 0.7 kB
    22. File
      dep-problem-child/.../TestRunner$9.class 0.5 kB
    23. File
      dep-problem-child/.../TestRunner.class 15 kB
    24. File
      dep-problem-child/.../ActiveTestSuite$1.class 0.9 kB
    25. File
      dep-problem-child/.../ActiveTestSuite.class 2 kB
    26. File
      dep-problem-child/.../ExceptionTestCase.class 1 kB
    27. File
      dep-problem-child/.../RepeatedTest.class 1 kB
    28. File
      dep-problem-child/.../TestDecorator.class 1 kB
    29. File
      dep-problem-child/.../TestSetup$1.class 0.9 kB
    30. File
      dep-problem-child/target/.../TestSetup.class 1 kB
    Showing 30 of 236 items Download Zip
    Show
    Zip Archive
    MDEP-113.zip
    20/Sep/07 11:31 AM
    269 kB
    Matt Read

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. MNG-3217 a plugin's dependencies can influence other plugins in a build

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brian Fox added a comment - 20/Sep/07 11:02 AM

Can you try clearing your repo and see if this happens again? I don't believe it has anything directly to do with the dependency plugin. It doesn't use site at all except to generate its own site, but wouldn't be used in your build time.

Show
Brian Fox added a comment - 20/Sep/07 11:02 AM Can you try clearing your repo and see if this happens again? I don't believe it has anything directly to do with the dependency plugin. It doesn't use site at all except to generate its own site, but wouldn't be used in your build time.
Hide
Permalink
Matt Read added a comment - 20/Sep/07 11:13 AM

I've tried that and I'm currently building you a zip that reproduces it. The dependency plugin does use "attach-descriptor" when you call the unpack goal, that's where the problem appears to arise.

Show
Matt Read added a comment - 20/Sep/07 11:13 AM I've tried that and I'm currently building you a zip that reproduces it. The dependency plugin does use "attach-descriptor" when you call the unpack goal, that's where the problem appears to arise.
Hide
Permalink
Matt Read added a comment - 20/Sep/07 11:31 AM

Unzip the attached and run "mvn install" from the dep-problem-parent project.

Show
Matt Read added a comment - 20/Sep/07 11:31 AM Unzip the attached and run "mvn install" from the dep-problem-parent project.
Hide
Permalink
Brian Fox added a comment - 20/Sep/07 5:45 PM

I changed the site dependency in the plugin to a newer version and deployed. This should fix your problem for now, but the fact that this is occuring at all means something is wrong with maven. The plugin classpath should not affect the build classpath when executing other things.

Show
Brian Fox added a comment - 20/Sep/07 5:45 PM I changed the site dependency in the plugin to a newer version and deployed. This should fix your problem for now, but the fact that this is occuring at all means something is wrong with maven. The plugin classpath should not affect the build classpath when executing other things.
Hide
Permalink
Brian Fox added a comment - 20/Sep/07 5:59 PM

removed the dependency and wrote a core issue to investigate.

Show
Brian Fox added a comment - 20/Sep/07 5:59 PM removed the dependency and wrote a core issue to investigate.

People

  • Assignee:
    Brian Fox
    Reporter:
    Matt Read
Vote (0)
Watch (0)

Dates

  • Created:
    20/Sep/07 10:58 AM
    Updated:
    20/Sep/07 5:59 PM
    Resolved:
    20/Sep/07 5:59 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.