Maven 1.x Eclipse Plugin
  1. Maven 1.x Eclipse Plugin
  2. MPECLIPSE-15

Plugin fails, if cactus plugin is not present

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Labels:
      None
    • Environment:
      Maven 1.0-branch, no cactus-plugin, CVS version of eclipse-plugin
    • Number of attachments :
      0

      Description

      eclipse:generate-classpath stops with an exception, if the cactus-plugin is not present. Using Maven 1.0 RC1, the exception does not occur, but the generated .classpath has an invalid entry.

      ========== snip ==========
      $ maven eclipse:generate-classpath
      __ __

      \/ __ Apache_ ___
        \/ / ` \ V / -) ' \ ~ intelligent projects ~
      _   _,_ _/___ _ _ v. 1.0-rc2-SNAPSHOT

      You are working offline so the build will continue, but maven-junit-report-plugin-1.4-SNAPSHOT.jar may be out of date!
      Tag library requested that is not present: 'http://xmlns.oracle.com/jdeveloper/903/jproject'
      Tag library requested that is not present: 'release'
      Tag library requested that is not present: 'cactus'
      Tag library requested that is not present: 'dashboard'
      Tag library requested that is not present: 'dist'
      [echo] Creating C:\Work\research\validation/.classpath ...
      error
      org.apache.maven.plugin.UnknownPluginException: Unknown plugin "maven-cactus-plugin"
      at org.apache.maven.plugin.PluginManager.getPluginProject(PluginManager.java:835)
      at org.apache.maven.project.Project.getPluginContext(Project.java:369)
      at org.apache.maven.jelly.tags.maven.PluginVarTag.doTag(PluginVarTag.java:96)
      ========== snap ==========

        Activity

        Hide
        Vincent Massol added a comment -

        Fixed in CVS

        Show
        Vincent Massol added a comment - Fixed in CVS
        Hide
        Jörg Schaible added a comment -

        Hi Vincent,

        running with Maven 1.0-SNAPSHOT I stall have an exceotion although the .classpath and .project is generated properly:

        ========= snip ==========

        [1] jos@JOS ~/Elsag/research/validation
        $ maven eclipse
        __ __

        \/ __ Apache_ ___
          \/ / ` \ V / -) ' \ ~ intelligent projects ~
        _   _,_ _/___ _ _ v. 1.0-rc2-SNAPSHOT

        You are working offline so the build will continue, but maven-junit-report-plugin-1.4-SNAPSHOT.jar may be out of date!
        Tag library requested that is not present: 'cactus' in plugin: 'maven-eclipse-plugin-1.6-SNAPSHOT'
        Tag library requested that is not present: 'dist' in plugin: 'maven-nsis-plugin-1.0-SNAPSHOT'
        <test:dependency-handle></test:dependency-handle><cactus:dependency-handle></cactus:dependency-handle><java:dependency-handle></java:dependency-handle><test:dependency-handle></test:dependency-handle>>eclipse:generate-project:
        [echo] Creating C:\Work\research\validation/.project ...

        eclipse:generate-classpath:
        [echo] Creating C:\Work\research\validation/.classpath ...
        error
        org.apache.maven.plugin.UnknownPluginException: Unknown plugin "cactus-maven"
        at org.apache.maven.plugin.PluginManager.getPluginProject(PluginManager.java:812)
        at org.apache.maven.project.Project.getPluginContext(Project.java:371)
        at org.apache.maven.jelly.tags.maven.PluginVarTag.doTag(PluginVarTag.java:96)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111)
        at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.WhitespaceTag.doTag(WhitespaceTag.java:93)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:634)
        at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:595)
        at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:128)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.FileTag.writeBody(FileTag.java:207)
        at org.apache.commons.jelly.tags.core.FileTag.doTag(FileTag.java:103)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
        at com.werken.werkz.Goal.attain(Goal.java:573)
        at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:660)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:275)
        at org.apache.maven.cli.App.doMain(App.java:543)
        at org.apache.maven.cli.App.main(App.java:1116)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
        [echo] Setting default output directory to target\classes

        eclipse:
        [echo] Now refresh your project in Eclipse (right click on the project and select "Refresh")
        BUILD SUCCESSFUL
        Total time: 13 seconds

        ========= snap ==========

        Regards,
        J?rg

        Show
        Jörg Schaible added a comment - Hi Vincent, running with Maven 1.0-SNAPSHOT I stall have an exceotion although the .classpath and .project is generated properly: ========= snip ========== [1] jos@JOS ~/Elsag/research/validation $ maven eclipse __ __ \/ __ Apache _ ___   \/ / ` \ V / - ) ' \ ~ intelligent projects ~ _   _ ,_ _/___ _ _ v. 1.0-rc2-SNAPSHOT You are working offline so the build will continue, but maven-junit-report-plugin-1.4-SNAPSHOT.jar may be out of date! Tag library requested that is not present: 'cactus' in plugin: 'maven-eclipse-plugin-1.6-SNAPSHOT' Tag library requested that is not present: 'dist' in plugin: 'maven-nsis-plugin-1.0-SNAPSHOT' <test:dependency-handle></test:dependency-handle><cactus:dependency-handle></cactus:dependency-handle><java:dependency-handle></java:dependency-handle><test:dependency-handle></test:dependency-handle>>eclipse:generate-project: [echo] Creating C:\Work\research\validation/.project ... eclipse:generate-classpath: [echo] Creating C:\Work\research\validation/.classpath ... error org.apache.maven.plugin.UnknownPluginException: Unknown plugin "cactus-maven" at org.apache.maven.plugin.PluginManager.getPluginProject(PluginManager.java:812) at org.apache.maven.project.Project.getPluginContext(Project.java:371) at org.apache.maven.jelly.tags.maven.PluginVarTag.doTag(PluginVarTag.java:96) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:111) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:145) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.WhitespaceTag.doTag(WhitespaceTag.java:93) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:634) at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:595) at org.apache.commons.jelly.tags.core.ImportTag.doTag(ImportTag.java:128) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at org.apache.commons.jelly.tags.core.FileTag.writeBody(FileTag.java:207) at org.apache.commons.jelly.tags.core.FileTag.doTag(FileTag.java:103) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128) at com.werken.werkz.Goal.fire(Goal.java:639) at com.werken.werkz.Goal.attain(Goal.java:575) at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) at com.werken.werkz.Goal.attain(Goal.java:573) at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:660) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:275) at org.apache.maven.cli.App.doMain(App.java:543) at org.apache.maven.cli.App.main(App.java:1116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) [echo] Setting default output directory to target\classes eclipse: [echo] Now refresh your project in Eclipse (right click on the project and select "Refresh") BUILD SUCCESSFUL Total time: 13 seconds ========= snap ========== Regards, J?rg

          People

          • Assignee:
            Vincent Massol
            Reporter:
            Jörg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: