# \[Proteja suas aplicações com Spring Security OAuth2 Cap. 03\] - Erro executar mvn spring-boot:run

**URL:** <https://forum.casadocodigo.com.br/t/proteja-suas-aplicacoes-com-spring-security-oauth2-cap-03-erro-executar-mvn-spring-boot-run/1884>\
**Category:** Livros\
**Created:** [Junho 28, 2021, 8:05am UTC](https://forum.casadocodigo.com.br/t/proteja-suas-aplicacoes-com-spring-security-oauth2-cap-03-erro-executar-mvn-spring-boot-run/1884 "2021-06-28T08:05:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo.Agostinho](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.casadocodigo.com.br/eduardo.agostinho/32/14746_2.png) [@Eduardo.Agostinho](https://forum.casadocodigo.com.br/u/Eduardo.Agostinho)\
**Post date:** [Junho 28, 2021, 8:05am UTC](https://forum.casadocodigo.com.br/t/proteja-suas-aplicacoes-com-spring-security-oauth2-cap-03-erro-executar-mvn-spring-boot-run/1884/1 "2021-06-28T08:05:43Z")

</div>

Prezados bom dia.

Estou tentando executar o exemplo do capitulo 03, porém, tenho o seguinte erro:  
Por favor alguém pode me ajudar?

MacBook-Pro-de-Macbook:bookserver eduardo\_agostinho$ mvn spring-boot:run  
[**INFO**] Scanning for projects…  
[**WARNING**]  
[**WARNING**] Some problems were encountered while building the effective model for br.com.casadocodigo:bookserver:jar:1.0.0-SNAPSHOT  
[**WARNING**] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.  
[**WARNING**]  
[**WARNING**] It is highly recommended to fix these problems because they threaten the stability of your build.  
[**WARNING**]  
[**WARNING**] For this reason, future Maven versions might no longer support building such malformed projects.  
[**WARNING**]  
[**INFO**]  
[**INFO**] **-------------------\<** br.com.casadocodigo:bookserver **\>-------------------**  
[**INFO**] **Building bookserver 1.0.0-SNAPSHOT**  
[**INFO**] **--------------------------------[jar]---------------------------------**  
[**INFO**]  
[**INFO**] **\>\>\>** spring-boot-maven-plugin:1.4.3.RELEASE:run **(default-cli) \> test-compile** @ bookserver **\>\>\>**  
[**INFO**]  
[**INFO**] **—** maven-resources-plugin:2.6:resources **(default-resources)** @ bookserver **—**  
[**INFO**] Using ‘UTF-8’ encoding to copy filtered resources.  
[**INFO**] Copying 1 resource  
[**INFO**] Copying 5 resources  
[**INFO**]  
[**INFO**] **—** maven-compiler-plugin:3.1:compile **(default-compile)** @ bookserver **—**  
[**INFO**] Changes detected - recompiling the module  
[**INFO**] Compiling 15 source files to /Users/eduardo\_agostinho/Documents/Estudos/OAuth2.0/livro-spring-oauth2-master/capitulo-3/bookserver/target/classes  
[**INFO**] **------------------------------------------------------------------------**  
[**INFO**] **BUILD FAILURE]**  
[**INFO**] **------------------------------------------------------------------------**  
[**INFO**] Total time: 3.363 s  
[**INFO**] Finished at: 2021-06-28T04:18:17-03:00  
[**INFO**] **------------------------------------------------------------------------**  
[**ERROR**] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile **(default-compile)** on project bookserver: **Fatal error compiling** : java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x5ec1963c) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x5ec1963c → **[Help 1]**  
[**ERROR**]  
[**ERROR**] To see the full stack trace of the errors, re-run Maven with the **-e** switch.  
[**ERROR**] Re-run Maven using the **-X** switch to enable full debug logging.  
[**ERROR**]  
[**ERROR**] For more information about the errors and possible solutions, please read the following articles:  
[**ERROR**] **[Help 1]** htt://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException  
MacBook-Pro-de-Macbook:bookserver eduardo\_agostinho$ mvn test  
[**INFO**] Scanning for projects…  
[**WARNING**]  
[**WARNING**] Some problems were encountered while building the effective model for br.com.casadocodigo:bookserver:jar:1.0.0-SNAPSHOT  
[**WARNING**] The expression ${parent.version} is deprecated. Please use ${project.parent.version} instead.  
[**WARNING**]  
[**WARNING**] It is highly recommended to fix these problems because they threaten the stability of your build.  
[**WARNING**]  
[**WARNING**] For this reason, future Maven versions might no longer support building such malformed projects.  
[**WARNING**]  
[**INFO**]  
[**INFO**] **-------------------\<** br.com.casadocodigo:bookserver **\>-------------------**  
[**INFO**] **Building bookserver 1.0.0-SNAPSHOT**  
[**INFO**] **--------------------------------[jar]---------------------------------**  
Downloading from central: htt://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.pom  
Downloaded from central: htt://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.pom (5.7 kB at 4.9 kB/s)  
Downloading from central: htt://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.18.1/surefire-2.18.1.pom  
Downloaded from central: htt://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.18.1/surefire-2.18.1.pom (17 kB at 55 kB/s)  
Downloading from central: htt://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/26/maven-parent-26.pom  
Downloaded from central: htt://repo.maven.apache.org/maven2/org/apache/maven/maven-parent/26/maven-parent-26.pom (40 kB at 118 kB/s)  
Downloading from central: htt://repo.maven.apache.org/maven2/org/apache/apache/16/apache-16.pom  
Downloaded from central: htt://repo.maven.apache.org/maven2/org/apache/apache/16/apache-16.pom (15 kB at 56 kB/s)  
Downloading from central: htt://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.jar  
Downloaded from central: htt://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.18.1/maven-surefire-plugin-2.18.1.jar (37 kB at 126 kB/s)  
[**INFO**]  
[**INFO**] **—** maven-resources-plugin:2.6:resources **(default-resources)** @ bookserver **—**  
[**INFO**] Using ‘UTF-8’ encoding to copy filtered resources.  
[**INFO**] Copying 1 resource  
[**INFO**] Copying 5 resources  
[**INFO**]  
[**INFO**] **—** maven-compiler-plugin:3.1:compile **(default-compile)** @ bookserver **—**  
[**INFO**] Changes detected - recompiling the module!  
[**INFO**] Compiling 15 source files to /Users/eduardo\_agostinho/Documents/Estudos/OAuth2.0/livro-spring-oauth2-master/capitulo-3/bookserver/target/classes  
[**INFO**] **------------------------------------------------------------------------**  
[**INFO**] **BUILD FAILURE**  
[**INFO**] **------------------------------------------------------------------------**  
[**INFO**] Total time: 5.467 s  
[**INFO**] Finished at: 2021-06-28T04:24:36-03:00  
[**INFO**] **------------------------------------------------------------------------**  
[**ERROR**] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile **(default-compile)** on project bookserver: **Fatal error compiling** : java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x7d3691e1) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x7d3691e1 → **[Help 1]**  
[**ERROR**]  
[**ERROR**] To see the full stack trace of the errors, re-run Maven with the **-e** switch.  
[**ERROR**] Re-run Maven using the **-X** switch to enable full debug logging.  
[**ERROR**]  
[**ERROR**] For more information about the errors and possible solutions, please read the following articles:  
[**ERROR**] **[Help 1]** htt://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
