This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git
The following commit(s) were added to refs/heads/trunk by this push:
new 87190e0 Drop TomcatManagerException
87190e0 is described below
commit 87190e0aab9fc6d483ed3a6db924c9c96dbcd03f
Author: remm <[email protected]>
AuthorDate: Thu Jun 4 23:09:10 2026 +0200
Drop TomcatManagerException
Co-authored by OpenCode.
---
.../maven/common/deployer/TomcatManager.java | 127 +++++++++------------
.../common/deployer/TomcatManagerException.java | 65 -----------
.../maven/plugin/tomcat/AbstractCatalinaMojo.java | 11 +-
.../plugin/tomcat/deploy/AbstractDeployMojo.java | 26 ++---
.../tomcat/deploy/AbstractDeployWarMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/ListMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/ReloadMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/ResourcesMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/ServerInfoMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/SessionsMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/StartMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/StopMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/UndeployMojo.java | 3 +-
.../maven/plugin/tomcat/deploy/WaitMojo.java | 3 +-
14 files changed, 74 insertions(+), 185 deletions(-)
diff --git
a/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManager.java
b/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManager.java
index 289b102..98dfc70 100644
--- a/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManager.java
+++ b/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManager.java
@@ -231,10 +231,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse deploy(String path, URL war) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse deploy(String path, URL war) throws
IOException {
return deploy(path, war, false);
}
@@ -248,11 +247,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deploy(String path, URL war, boolean update)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deploy(path, war, update, null);
}
@@ -267,11 +265,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deploy(String path, URL war, boolean update,
String tag)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployImpl(path, null, war, null, update, tag);
}
@@ -283,10 +280,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse deploy(String path, File war) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse deploy(String path, File war) throws
IOException {
return deploy(path, war, false);
}
@@ -300,11 +296,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deploy(String path, File war, boolean update)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deploy(path, war, update, null);
}
@@ -319,11 +314,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deploy(String path, File war, boolean update,
String tag)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployImpl(path, null, null, war, update, tag);
}
@@ -339,13 +333,12 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*
* @since 2.0
*/
public TomcatManagerResponse deploy(String path, File war, boolean update,
String tag, long length)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployImpl(path, null, null, war, update, tag, length);
}
@@ -357,10 +350,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse deployContext(String path, URL config) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse deployContext(String path, URL config) throws
IOException {
return deployContext(path, config, false);
}
@@ -374,11 +366,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deployContext(String path, URL config,
boolean update)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployContext(path, config, update, null);
}
@@ -393,11 +384,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deployContext(String path, URL config,
boolean update, String tag)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployContext(path, config, null, update, tag);
}
@@ -410,11 +400,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deployContext(String path, URL config, URL
war)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployContext(path, config, war, false);
}
@@ -429,11 +418,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deployContext(String path, URL config, URL
war, boolean update)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployContext(path, config, war, update, null);
}
@@ -449,11 +437,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
public TomcatManagerResponse deployContext(String path, URL config, URL
war, boolean update, String tag)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployImpl(path, config, war, null, update, tag);
}
@@ -468,10 +455,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse undeploy(String path) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse undeploy(String path) throws IOException {
return invoke("/undeploy?path=" + URLEncoder.encode(path, charset));
}
@@ -482,10 +468,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse reload(String path) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse reload(String path) throws IOException {
return invoke("/reload?path=" + URLEncoder.encode(path, charset));
}
@@ -496,10 +481,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse start(String path) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse start(String path) throws IOException {
return invoke("/start?path=" + URLEncoder.encode(path, charset));
}
@@ -510,10 +494,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse stop(String path) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse stop(String path) throws IOException {
return invoke("/stop?path=" + URLEncoder.encode(path, charset));
}
@@ -522,10 +505,9 @@ public class TomcatManager {
*
* @return the list of currently deployed applications
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse list() throws TomcatManagerException,
IOException {
+ public TomcatManagerResponse list() throws IOException {
return invoke("/list");
}
@@ -534,10 +516,9 @@ public class TomcatManager {
*
* @return the server information
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse getServerInfo() throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse getServerInfo() throws IOException {
return invoke("/serverinfo");
}
@@ -546,10 +527,9 @@ public class TomcatManager {
*
* @return the list of all global JNDI resources
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse getResources() throws TomcatManagerException,
IOException {
+ public TomcatManagerResponse getResources() throws IOException {
return getResources(null);
}
@@ -560,10 +540,9 @@ public class TomcatManager {
*
* @return the list of global JNDI resources of the given type
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse getResources(String type) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse getResources(String type) throws IOException {
StringBuilder buffer = new StringBuilder();
buffer.append("/resources");
@@ -580,10 +559,9 @@ public class TomcatManager {
*
* @return the default session timeout and the number of currently active
sessions
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- public TomcatManagerResponse getSessions(String path) throws
TomcatManagerException, IOException {
+ public TomcatManagerResponse getSessions(String path) throws IOException {
return invoke("/sessions?path=" + URLEncoder.encode(path, charset));
}
@@ -598,10 +576,9 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
- protected TomcatManagerResponse invoke(String path) throws
TomcatManagerException, IOException {
+ protected TomcatManagerResponse invoke(String path) throws IOException {
return invoke(path, null, -1);
}
@@ -610,7 +587,7 @@ public class TomcatManager {
// ----------------------------------------------------------------------
private TomcatManagerResponse deployImpl(String path, URL config, URL war,
File data, boolean update, String tag)
- throws TomcatManagerException, IOException {
+ throws IOException {
return deployImpl(path, config, war, data, update, tag, -1);
}
@@ -626,11 +603,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
private TomcatManagerResponse deployImpl(String path, URL config, URL war,
File data, boolean update, String tag,
- long length) throws TomcatManagerException, IOException {
+ long length) throws IOException {
StringBuilder buffer = new StringBuilder("/deploy");
buffer.append("?path=").append(URLEncoder.encode(path, charset));
@@ -663,11 +639,10 @@ public class TomcatManager {
*
* @return the Tomcat manager response
*
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
+ * @throws IOException if an i/o error occurs
*/
protected TomcatManagerResponse invoke(String path, File data, long length)
- throws TomcatManagerException, IOException {
+ throws IOException {
String urlString = url.toString();
if (urlString.endsWith("/") && path.startsWith("/")) {
urlString = urlString.substring(0, urlString.length() - 1);
diff --git
a/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManagerException.java
b/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManagerException.java
deleted file mode 100644
index 795a050..0000000
---
a/src/main/java/org/apache/tomcat/maven/common/deployer/TomcatManagerException.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.tomcat.maven.common.deployer;
-
-/**
- * Indicates an error received from Tomcat manager.
- *
- * @author Mark Hobson ([email protected])
- */
-public class TomcatManagerException extends Exception {
- // ----------------------------------------------------------------------
- // Constants
- // ----------------------------------------------------------------------
-
- /**
- * The Java serialization UID for this class.
- */
- private static final long serialVersionUID = 4167819069046408371L;
-
- // ----------------------------------------------------------------------
- // Constructors
- // ----------------------------------------------------------------------
-
- /**
- * Creates a new <code>TomcatManagerException</code> with no message or
cause.
- */
- public TomcatManagerException() {
- super();
- }
-
- /**
- * Creates a new <code>TomcatManagerException</code> with the specified
message and no cause.
- *
- * @param message the message for this exception
- */
- public TomcatManagerException(String message) {
- super(message);
- }
-
- /**
- * Creates a new <code>TomcatManagerException</code> with the specified
message and cause.
- *
- * @param message the message for this exception
- * @param cause the cause of this exception
- */
- public TomcatManagerException(String message, Throwable cause) {
- super(message, cause);
- }
-}
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/AbstractCatalinaMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/AbstractCatalinaMojo.java
index 7e87149..b8ade83 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/AbstractCatalinaMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/AbstractCatalinaMojo.java
@@ -22,7 +22,6 @@ import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.settings.Server;
import org.apache.tomcat.maven.common.deployer.TomcatManager;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import java.io.IOException;
@@ -124,9 +123,6 @@ public abstract class AbstractCatalinaMojo extends
AbstractTomcatMojo {
public void execute() throws MojoExecutionException {
try {
invokeManager();
- } catch (TomcatManagerException exception) {
- throw new MojoExecutionException(
-
messagesProvider.getMessage("AbstractCatalinaMojo.managerError",
exception.getMessage()));
} catch (IOException exception) {
throw new
MojoExecutionException(messagesProvider.getMessage("AbstractCatalinaMojo.managerIOError"),
exception);
@@ -140,11 +136,10 @@ public abstract class AbstractCatalinaMojo extends
AbstractTomcatMojo {
/**
* Invokes Tomcat manager when this Mojo is executed.
*
- * @throws org.apache.maven.plugin.MojoExecutionException
if there was a problem executing this goal
- * @throws org.apache.tomcat.maven.common.deployer.TomcatManagerException
if the Tomcat manager request fails
- * @throws java.io.IOException
if an i/o error occurs
+ * @throws org.apache.maven.plugin.MojoExecutionException if there was a
problem executing this goal
+ * @throws java.io.IOException if an i/o error
occurs
*/
- protected abstract void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException;
+ protected abstract void invokeManager() throws MojoExecutionException,
IOException;
/**
* Gets the Tomcat manager wrapper object configured for this goal.
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
index cadd93b..70d2283 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractWarCatalinaMojo;
@@ -77,7 +76,7 @@ public abstract class AbstractDeployMojo extends
AbstractWarCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
if ("war".equals(mode)) {
deployWar();
} else if ("context".equals(mode)) {
@@ -146,11 +145,10 @@ public abstract class AbstractDeployMojo extends
AbstractWarCatalinaMojo {
/**
* Deploys the WAR to Tomcat.
*
- * @throws org.apache.maven.plugin.MojoExecutionException
if there was a problem locating the WAR
- * @throws org.apache.tomcat.maven.common.deployer.TomcatManagerException
if the Tomcat manager request fails
- * @throws java.io.IOException
if an i/o error occurs
+ * @throws org.apache.maven.plugin.MojoExecutionException if there was a
problem locating the WAR
+ * @throws java.io.IOException if an i/o error
occurs
*/
- protected void deployWar() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void deployWar() throws MojoExecutionException, IOException {
validateWarFile();
getLog().info(messagesProvider.getMessage("AbstractDeployMojo.deployingWar",
getDeployedURL()));
@@ -164,12 +162,10 @@ public abstract class AbstractDeployMojo extends
AbstractWarCatalinaMojo {
/**
* Deploys the context XML file to Tomcat.
*
- * @throws org.apache.maven.plugin.MojoExecutionException
if there was a problem locating the
- *
context XML file
- * @throws org.apache.tomcat.maven.common.deployer.TomcatManagerException
if the Tomcat manager request fails
- * @throws java.io.IOException
if an i/o error occurs
+ * @throws org.apache.maven.plugin.MojoExecutionException if there was a
problem locating the context XML file
+ * @throws java.io.IOException if an i/o error
occurs
*/
- protected void deployContext() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void deployContext() throws MojoExecutionException, IOException {
validateContextFile();
getLog().info(messagesProvider.getMessage("AbstractDeployMojo.deployingContext",
getDeployedURL()));
@@ -183,12 +179,10 @@ public abstract class AbstractDeployMojo extends
AbstractWarCatalinaMojo {
/**
* Deploys the WAR and context XML file to Tomcat.
*
- * @throws org.apache.maven.plugin.MojoExecutionException
if there was a problem locating either the
- *
WAR or the context XML file
- * @throws org.apache.tomcat.maven.common.deployer.TomcatManagerException
if the Tomcat manager request fails
- * @throws java.io.IOException
if an i/o error occurs
+ * @throws org.apache.maven.plugin.MojoExecutionException if there was a
problem locating either the WAR or the context XML file
+ * @throws java.io.IOException if an i/o error
occurs
*/
- protected void deployWarAndContext() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void deployWarAndContext() throws MojoExecutionException,
IOException {
validateWarFile();
validateContextFile();
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployWarMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployWarMojo.java
index 92c8c42..4f16d6e 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployWarMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployWarMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import java.io.File;
@@ -75,7 +74,7 @@ public class AbstractDeployWarMojo extends AbstractDeployMojo
{
* {@inheritDoc}
*/
@Override
- protected void deployWar() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void deployWar() throws MojoExecutionException, IOException {
validateWarFile();
getLog().info(messagesProvider.getMessage("AbstractDeployMojo.deployingWar",
getDeployedURL()));
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ListMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ListMojo.java
index af182f4..7cd025c 100644
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ListMojo.java
+++ b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ListMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -48,7 +47,7 @@ public class ListMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("ListMojo.listApps",
getURL()));
TomcatManagerResponse tomcatResponse = getManager().list();
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ReloadMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ReloadMojo.java
index d9f9fd9..7142a9c 100644
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ReloadMojo.java
+++ b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ReloadMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -47,7 +46,7 @@ public class ReloadMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("ReloadMojo.reloadingApp",
getDeployedURL()));
TomcatManagerResponse tomcatResponse = getManager().reload(getPath());
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ResourcesMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ResourcesMojo.java
index 0c10c25..ae6a61a 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ResourcesMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ResourcesMojo.java
@@ -21,7 +21,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -58,7 +57,7 @@ public class ResourcesMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
if (type == null) {
getLog().info(messagesProvider.getMessage("ResourcesMojo.listAllResources",
getURL()));
} else {
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ServerInfoMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ServerInfoMojo.java
index e2194d1..8fd5bb9 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ServerInfoMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/ServerInfoMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -47,7 +46,7 @@ public class ServerInfoMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("ServerInfoMojo.listInfo",
getURL()));
TomcatManagerResponse tomcatResponse = getManager().getServerInfo();
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/SessionsMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/SessionsMojo.java
index 83f2cfb..18d647d 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/SessionsMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/SessionsMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -46,7 +45,7 @@ public class SessionsMojo extends AbstractCatalinaMojo {
// ----------------------------------------------------------------------
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("SessionsMojo.listSessions",
getURL()));
TomcatManagerResponse tomcatResponse =
getManager().getSessions(getPath());
checkTomcatResponse(tomcatResponse);
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StartMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StartMojo.java
index 67a9e55..8e330b3 100644
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StartMojo.java
+++ b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StartMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -47,7 +46,7 @@ public class StartMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("StartMojo.startingApp",
getDeployedURL()));
TomcatManagerResponse tomcatResponse = getManager().start(getPath());
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StopMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StopMojo.java
index f55b7a2..f109ba8 100644
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StopMojo.java
+++ b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/StopMojo.java
@@ -20,7 +20,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
@@ -47,7 +46,7 @@ public class StopMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("StopMojo.stoppingApp",
getDeployedURL()));
TomcatManagerResponse tomcatResponse = getManager().stop(getPath());
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/UndeployMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/UndeployMojo.java
index 3b14490..d8bc896 100644
---
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/UndeployMojo.java
+++
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/UndeployMojo.java
@@ -21,7 +21,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.common.deployer.TomcatManagerResponse;
import org.apache.tomcat.maven.plugin.tomcat.AbstractWarCatalinaMojo;
@@ -59,7 +58,7 @@ public class UndeployMojo extends AbstractWarCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
getLog().info(messagesProvider.getMessage("UndeployMojo.undeployingApp",
getDeployedURL()));
try {
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/WaitMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/WaitMojo.java
index 197633e..ccfbe23 100644
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/WaitMojo.java
+++ b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/WaitMojo.java
@@ -21,7 +21,6 @@ package org.apache.tomcat.maven.plugin.tomcat.deploy;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.tomcat.maven.common.deployer.TomcatManagerException;
import org.apache.tomcat.maven.plugin.tomcat.AbstractCatalinaMojo;
import java.io.IOException;
@@ -72,7 +71,7 @@ public class WaitMojo extends AbstractCatalinaMojo {
* {@inheritDoc}
*/
@Override
- protected void invokeManager() throws MojoExecutionException,
TomcatManagerException, IOException {
+ protected void invokeManager() throws MojoExecutionException, IOException {
URL deployedURL = getDeployedURL();
getLog().info(messagesProvider.getMessage("WaitMojo.waitingForApp",
deployedURL, timeout));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]