Class 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 Detail

      • RacProvisioningMojo

        public RacProvisioningMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Executes the inspection inside all classes in the current classloader.
        Throws:
        org.apache.maven.plugin.MojoExecutionException