Closed dlaskaratos closed 1 year ago
To compile in Windows temporarly replace this
<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 dir="target/wildfly-${version.wildfly}/bin" executable="${jboss-cli.executable}" inputstring="">
<arg value="--file=adapter-elytron-install-offline.cli" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
with this
<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 dir="target/wildfly-${version.wildfly}/bin" executable="cmd" inputstring="">
<arg value="/c"/>
<arg value="${jboss-cli.executable}"/>
<arg value="--file=adapter-elytron-install-offline.cli" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
Thanks for the report. Closing as outdated. The repository has changed and the issue no longer is valid.
Please look at https://github.com/keycloak/keycloak-quickstarts/tree/latest/jakarta/servlet-authz-client.
If the same issue exists in the new version of the repository, please open a new issue.
Describe the bug
I'm following the tutorial here and when I type "mvn clean package wildfly:deploy" I get the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (install-adapters) on project keycloak-app-authz-jee-vanilla: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "set nopause=true & call .\jboss-cli.bat" (in directory "C:\Users\user\Desktop\keycloak-quickstarts\app-authz-jee-vanilla\target\wildfly-17.0.1.Final\bin"): CreateProcess error=2, The system cannot find the file specified [ERROR] around Ant part ...... @ 4:119 in C:\Users\user\Desktop\keycloak-quickstarts\app-authz-jee-vanilla\target\antrun\build-run.xml
I assume it cannot find jboss-cli.bat?
What am I missing? I have Java, Maven and Git already installed
Version
21.1.1
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Anything else?
No response