[ https://issues.apache.org/jira/browse/MTOMCAT-273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14069920#comment-14069920 ]
Hudson commented on MTOMCAT-273: -------------------------------- SUCCESS: Integrated in TomcatMavenPlugin-mvn3.x #277 (See [https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/277/]) [MTOMCAT-273] redeploy-only goal is broken for Tomcat 6 Submitted by Dennis Lundberg (olamy: http://svn.apache.org/viewvc/?view=rev&rev=1612483) * /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/RedeployOnlyMojo.java > redeploy-only goal is broken for Tomcat 6 > ----------------------------------------- > > Key: MTOMCAT-273 > URL: https://issues.apache.org/jira/browse/MTOMCAT-273 > Project: Apache Tomcat Maven Plugin > Issue Type: Bug > Components: tomcat6 > Affects Versions: 2.2 > Reporter: Dennis Lundberg > Assignee: Olivier Lamy (*$^¨%`£) > Fix For: 2.3 > > Attachments: MTOMCAT-273.patch > > > The redeploy-only goal for the tomcat6 plugin is broken since > [r1418095|http://svn.apache.org/viewvc?view=revision&revision=1418095]. That > modification [removed the > inheritance|http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/RedeployOnlyMojo.java?r1=1418095&r2=1418091&pathrev=1418095] > which renders this exception when run: > {noformat} > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] org.apache.tomcat.maven.plugin.tomcat6.RedeployOnlyMojo cannot be cast > to org.apache.maven.plugin.Mojo > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.ClassCastException: > org.apache.tomcat.maven.plugin.tomcat6.RedeployOnlyMojo cannot be cast to > org.apache.maven.plugin.Mojo > at > org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:652) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > 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:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > {noformat} > It also removed the explicit setting of the update parameter. > Note that the tomcat7 plugin is not affected by this bug. > Patch for this is coming shortly. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org