Closed helayoty closed 1 year ago
It seems this issue was not tracked properly in the early days.
For the "Target file does not exist or is not executable, please check the configuration." please check if the JAR file is properly generated in the target
folder, and confirm the /deployment/resources
configuration for the azure-spring-apps-maven-plugin
is properly configured:
<configuration>
...
<deployment>
...
<resources>
<resource>
<filtering/>
<mergeId/>
<targetPath/>
<directory>${project.basedir}/target</directory>
<includes>
<include>*.jar</include>
</includes>
</resource>
</resources>
</deployment>
</configuration>
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Pre-steps: I followed the steps here to login into az and configure my spring-cloud service
az extension add -y --source https://azureclitemp.blob.core.windows.net/spring-cloud/spring_cloud-0.1.0-py2.py3-none-any.whl
mvn clean package -DskipTests
mvn com.microsoft.azure:azure-spring-cloud-maven-plugin:0.1.0-SNAPSHOT:config
and follow steps by entering the app name and expose public access.mvn com.microsoft.azure:azure-spring-cloud-maven-plugin:0.1.0-SNAPSHOT:deploy
The result:
[ERROR] Failed to execute goal com.microsoft.azure:azure-spring-cloud-maven-plugin:0.1.0-SNAPSHOT:deploy (default-cli) on project<my_project_name>: Target file does not exist or is not executable, please check the configuration. ->
Expected behavior
Screenshots
Additional context