Package com.totvs.tjf.rac.maven.plugin
Class RacProvisioningMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.totvs.tjf.rac.maven.plugin.RacProvisioningMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="rac-provisioning", requiresDependencyResolution=TEST, requiresProject=true, defaultPhase=COMPILE) public class RacProvisioningMojo extends org.apache.maven.plugin.AbstractMojo
RAC Maven Plugin main class.The plugin is responsible to inspect all classes with
@RestController
annotation inside the current classloader and recover all roles and resources informed inside the@RolesAllowed
and@PreAuthorize
and send them to RAC.To use this plugin, besides adding it to the project dependencies, is necessary to inform the host project itself as a dependency and to inform RAC product id, url, client id and client secret.
<plugin> <groupId>com.totvs.tjf.rac.maven.plugin</groupId> <artifactId>tjf-maven-plugin</artifactId> <configuration> <!-- Pacote do projeto --> <packageName></packageName> <!-- RAC URL --> <racUrl></racUrl> <!-- RAC client id --> <clientId></clientId> <!-- RAC client secret --> <clientSecret></clientSecret> <!-- Export to Json --> <exportToJson></exportToJson> <!-- Output Directory --> <outputDirectory></outputDirectory> </configuration> </plugin>
- Author:
- Diego N. da Silveira
-
-
Constructor Summary
Constructors Constructor Description RacProvisioningMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Executes the inspection inside all classes in the current classloader.
-