# Error building action-token-authenticator

**URL:** <https://forum.keycloak.org/t/error-building-action-token-authenticator/650>\
**Category:** Getting advice\
**Created:** [December 11, 2019, 4:55am UTC](https://forum.keycloak.org/t/error-building-action-token-authenticator/650 "2019-12-11T04:55:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijay](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vijay](https://forum.keycloak.org/u/vijay)\
**Post date:** [December 11, 2019, 4:55am UTC](https://forum.keycloak.org/t/error-building-action-token-authenticator/650/1 "2019-12-11T04:55:07Z")

</div>

While building action-token-authenticator available in quickstarts I am getting below error.  
(Windows 7 env)  
Built using the command  
mvn -Pwildfly-managed clean wildfly:deploy -Dkeycloak.management.port=10090

run:  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 06:24 min  
[INFO] Finished at: 2019-12-11T10:20:35+05:30  
[INFO] Final Memory: 62M/435M  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:  
run (install-adapters) on project provider-action-token-authenticator: An Ant Bu  
ildException has occured: Execute failed: java.io.IOException: Cannot run progra  
m “set nopause=true & call .\jboss-cli.bat” (in directory “D:\build\_tools\KeyClo  
ak\keycloak-8.0.1\keycloak-quickstarts-latest1\action-token-authenticator\target  
\wildfly-14.0.1.Final\bin”): CreateProcess error=2, The system cannot find the f  
ile specified  
[ERROR] around Ant part …… @ 4:119 in D:  
\build\_tools\KeyCloak\keycloak-8.0.1\keycloak-quickstarts-latest1\action-token-a  
uthenticator\target\antrun\build-run.xml  
[ERROR] -\> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit  
ch.  
[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 rea  
d the following articles:  
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE)  
xception

D:\build\_tools\KeyCloak\keycloak-8.0.1\keycloak-quickstarts-latest1\action-token  
-authenticator\>

---

<div class="post-metadata">

**Author:** ![fegorama](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/fegorama/32/2120_2.png) [@fegorama](https://forum.keycloak.org/u/fegorama)\
**Post date:** [January 15, 2021, 3:07pm UTC](https://forum.keycloak.org/t/error-building-action-token-authenticator/650/2 "2021-01-15T15:07:23Z")

</div>

Hi!

I have the same problem.

---

<div class="post-metadata">

**Author:** ![fegorama](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/fegorama/32/2120_2.png) [@fegorama](https://forum.keycloak.org/u/fegorama)\
**Post date:** [January 19, 2021, 11:33am UTC](https://forum.keycloak.org/t/error-building-action-token-authenticator/650/3 "2021-01-19T11:33:25Z")

</div>

Hi!

I create a batch file and I call from pom.xml:

> ```
> ...
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>${version.antrun.maven.plugin}</version>
> <executions>
> <execution>
> <id>install-adapters</id>
> <phase>process-test-classes</phase>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <target name="run">
> <exec executable="C:\codigofuente\keycloak-quickstarts-latest\action-token-authenticator\maven-antrun-plugin.bat">
> </exec>
> </target>
> </configuration>
> </execution>
> </executions>
> </plugin>
> ...
> 
> ```

My batch file: maven-antrun-plugin.bat

> @echo off  
> set nopause=true  
> cd C:\keycloak\bin  
> jboss-cli.bat --file=adapter-install-offline.cli  
> cd C:\codigofuente\keycloak-quickstarts-latest\action-token-authenticator

And before I copied files from keycloak-oidc-wildfly-adapter-11.0.0.zip (I have wildfly 11.0.0) in keycloak directory.

Regards,  
FëGôR
