aws-cloudformation / cloudformation-cli

The CloudFormation Provider Development Toolkit allows you to author your own resource providers and modules that can be used by CloudFormation.
Apache License 2.0
318 stars 161 forks source link

[ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127) #1019

Open iumairhasan opened 1 year ago

iumairhasan commented 1 year ago

rpdk.txt

I'm facing this below error while running mvn package

[WARNING] Parameter 'localRepository' is deprecated core expression; Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.
=== Unhandled exception ===
Please report this issue to the team.
Issue tracker: github.com/aws-cloudformation/cloudformation-cli/issues
Please include the log file 'rpdk.log'
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)

My dependency in pom.xml file

        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>3.0.0</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${project.basedir}/target/generated-sources/rpdk</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

I'm trying to build this project in GNU/Linux

shivankgoel commented 1 year ago

Getting the same error

mircealam commented 12 months ago

this could be lack on python 3.11 support (which was just added) or lack of including the java plugin. Can you please provide a small self contained repo to see if we can help investigate this further?

Duddddd commented 5 months ago

I had the same error. I run this command(from README file) and it was resolved. pip install cloudformation-cli cloudformation-cli-java-plugin cloudformation-cli-go-plugin cloudformation-cli-python-plugin cloudformation-cli-typescript-plugin