# Compiling error when running mvn clean wildfly:deploy

**URL:** <https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374>\
**Category:** Configuring the server\
**Tags:** quickstarts\
**Created:** [June 18, 2020, 3:31pm UTC](https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374 "2020-06-18T15:31:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![laumarot](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/laumarot/32/1031_2.png) [@laumarot](https://forum.keycloak.org/u/laumarot)\
**Post date:** [June 18, 2020, 3:31pm UTC](https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374/1 "2020-06-18T15:31:08Z")

</div>

Hello,

Following “Geting Started Guide”, I’ve launched

mvn clean wildfly:deploy

and I’m getting the following compiling error (using java 13)

Any advice ?

Thank you

[DEBUG] Command line options:  
[DEBUG] -d C:\keycloak-quickstarts\app-profile-jee-vanilla\target\classes -classpath C:\keycloak-quickstarts\app-profile-jee-vanilla\target\classes;C:\Users\forge.m2\repository\org\jboss\spec\javax\servlet\jboss-servlet-api\_3.0\_spec\1.0.2.Final\jboss-servlet-api\_3.0\_spec-1.0.2.Final.jar;C:\Users\forge.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.9.5\jackson-databind-2.9.5.jar;C:\Users\forge.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;C:\Users\forge.m2\repository\com\fasterxml\jackson\core\jackson-core\2.9.5\jackson-core-2.9.5.jar; -sourcepath C:\keycloak-quickstarts\app-profile-jee-vanilla\src\main\java; -g -nowarn -target 1.5 -source 1.5  
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!  
[DEBUG] incrementalBuildHelper#beforeRebuildExecution  
[INFO] Compiling 1 source file to C:\keycloak-quickstarts\app-profile-jee-vanilla\target\classes  
[DEBUG] incrementalBuildHelper#afterRebuildExecution  
[INFO] -------------------------------------------------------------  
[ERROR] COMPILATION ERROR :  
[INFO] -------------------------------------------------------------  
[ERROR] Source option 5 is no longer supported. Use 7 or later.  
[ERROR] Target option 5 is no longer supported. Use 7 or later.  
[INFO] 2 errors  
[INFO] -------------------------------------------------------------  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------

---

<div class="post-metadata">

**Author:** ![vsmolik](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@vsmolik](https://forum.keycloak.org/u/vsmolik)\
**Post date:** [September 11, 2020, 7:00pm UTC](https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374/2 "2020-09-11T19:00:11Z")

</div>

I had the same problem. Updating to the latest version of the maven compiler plugin did not work but adding this to the properties in pom.xml did:

```
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
```

---

<div class="post-metadata">

**Author:** ![Block](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/block/32/2365_2.png) [@Block](https://forum.keycloak.org/u/Block)\
**Post date:** [February 11, 2021, 8:28pm UTC](https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374/3 "2021-02-11T20:28:18Z")

</div>

Can you please explain where and how to modify the pom.xml?  
As far as understanding you, the pom.xml of the app-profile-jee-vanilla has to be modified…

Having also referred [Maven – Example: Injecting POM Properties via Settings.xml](https://maven.apache.org/examples/injecting-properties-via-settings.html) for help, but without success so far.

---

<div class="post-metadata">

**Author:** ![Block](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/block/32/2365_2.png) [@Block](https://forum.keycloak.org/u/Block)\
**Post date:** [February 12, 2021, 3:55pm UTC](https://forum.keycloak.org/t/compiling-error-when-running-mvn-clean-wildfly-deploy/3374/4 "2021-02-12T15:55:27Z")

</div>

Allright, got it: POM.xml within the root of Keycloak Quickstarts needs a fix…
