You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Brian Hood (JIRA)" <ji...@apache.org> on 2017/09/28 16:39:00 UTC
[jira] [Created] (MTOMCAT-312) Execution Reporting Duplicate
Brian Hood created MTOMCAT-312:
----------------------------------
Summary: Execution Reporting Duplicate
Key: MTOMCAT-312
URL: https://issues.apache.org/jira/browse/MTOMCAT-312
Project: Apache Tomcat Maven Plugin
Issue Type: Bug
Components: tomcat7
Affects Versions: 2.2
Reporter: Brian Hood
Assignee: Olivier Lamy (*$^¨%`£)
Priority: Blocker
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)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org