Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-312

Execution Reporting Duplicate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: tomcat7
    • Labels:

      Description

      Hi All,

      The Id on each of these is different but i get an error saying a have a duplicate id.

      Here is what i added to the plugins section of my pom file.

      <plugin>
      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat7-maven-plugin</artifactId>
      <version>2.2</version>

      <executions>

      <execution>
      <configuration>
      <id>execution1</id>
      <phase>default</phase>
      <path>/helloworld</path>
      <update>true</update>
      <url>http://test1:8080/manager/text</url>
      <timeout>15</timeout>
      <username>tomcat</username>
      <password>ommited</password>
      </configuration>
      </execution>

      <execution>
      <configuration>
      <id>execution2</id>
      <phase>default</phase>
      <path>/helloworld</path>
      <update>true</update>
      <url>http://test2:8080/manager/text</url>
      <timeout>15</timeout>
      <username>tomcat</username>
      <password>ommited</password>
      </configuration>
      </execution>

      </executions>

      </plugin>

      Error

      [ERROR] 'build.plugins.plugin[org.apache.tomcat.maven:tomcat7-maven-plugin].executions.execution.id' must be unique but found duplicate execution with id default @ line 55, column 21
      [WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. @ line 89, column 24

      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:382)
      at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:400)
      at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:391)
      at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:78)
      at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:511)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

        Attachments

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              bhood8755 Brian Hood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: