This is an automated email from the ASF dual-hosted git repository.
remm 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 f608264 Drop /roles command
f608264 is described below
commit f608264de08ba1192b012bdef2d47ae51b308d9d
Author: remm <[email protected]>
AuthorDate: Tue Apr 14 20:32:58 2026 +0200
Drop /roles command
It was removed by Mark 15 years ago, since it was difficult to implement
properly.
---
.../maven/common/deployer/TomcatManager.java | 13 -----
.../maven/plugin/tomcat/deploy/RolesMojo.java | 55 ----------------------
src/site/apt/container-goals.apt | 9 ----
3 files changed, 77 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 201e2ff..6a8d728 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
@@ -662,19 +662,6 @@ public class TomcatManager
return invoke( buffer.toString() );
}
- /**
- * Lists the security role names and corresponding descriptions that are
available.
- *
- * @return the list of security role names and corresponding descriptions
- * @throws TomcatManagerException if the Tomcat manager request fails
- * @throws IOException if an i/o error occurs
- */
- public TomcatManagerResponse getRoles()
- throws TomcatManagerException, IOException
- {
- return invoke( "/roles" );
- }
-
/**
* Lists the default session timeout and the number of currently active
sessions for the given context path.
*
diff --git
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/RolesMojo.java
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/RolesMojo.java
deleted file mode 100644
index 248f700..0000000
--- a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/RolesMojo.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package org.apache.tomcat.maven.plugin.tomcat.deploy;
-
-/*
- * 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.
- */
-
-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.plugin.tomcat.AbstractWarCatalinaMojo;
-
-import java.io.IOException;
-
-/**
- * List the security roles available in Tomcat.
- *
- * @since 3.0
- */
-@Mojo( name = "roles", threadSafe = true )
-public class RolesMojo
- extends AbstractWarCatalinaMojo
-{
- // ----------------------------------------------------------------------
- // Protected Methods
- // ----------------------------------------------------------------------
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected void invokeManager()
- throws MojoExecutionException, TomcatManagerException, IOException
- {
- getLog().info( messagesProvider.getMessage( "RolesMojo.listRoles",
getURL() ) );
-
- String responseBody = getManager().getRoles().getHttpResponseBody();
-
- log( responseBody );
- }
-}
\ No newline at end of file
diff --git a/src/site/apt/container-goals.apt b/src/site/apt/container-goals.apt
index a8e3ec7..1a9d7ef 100644
--- a/src/site/apt/container-goals.apt
+++ b/src/site/apt/container-goals.apt
@@ -34,7 +34,6 @@ Container Goals
* {{{#Listing deployed applications}Listing deployed applications}}
* {{{#Getting server information}Getting server information}}
* {{{#Listing JNDI resources}Listing JNDI resources}}
- * {{{#Listing security roles}Listing security roles}}
[]
These are described in more detail below.
@@ -68,14 +67,6 @@ mvn tomcat:resources
+--
mvn -Dmaven.tomcat.type=my.class.name tomcat:resources
-+--
-
-* {Listing security roles}
-
- To list the available security roles available within Tomcat you can type:
-
-+--
-mvn tomcat:roles
+--
Note: For detailed information about container management, please refer to
the
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]