cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

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

Open iumairhasan opened this issue 2 years ago • 3 comments

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

iumairhasan avatar Aug 21 '23 15:08 iumairhasan

Getting the same error

shivankgoel avatar Aug 25 '23 00:08 shivankgoel

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?

mircealam avatar Oct 06 '23 23:10 mircealam

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

Duddddd avatar Apr 16 '24 15:04 Duddddd