Skip to content

Initial Infrastructure setup doesn't work on a Windows machine #272

Open

Description

@jeastham1993

Running the infrastructure-setup.sh doesn't work on a Windows machine. The issue is with the cdk.json file and how the app is specified. Currently, it is set to:

./mvnw -e -q compile exec:java

This fails on Windows due to the forward slash.

If I run a brand new cdk init app --language=java on a Windows machine the cdk.json file is set to:

mvn -e -q compile exec:java

Propose updating the default to support Windows, Mac and Linux.

Activity

  1. jeastham1993 commented on Nov 11, 2022

    @jeastham1993
    Author

    Going through the rest of the workshop, none of the commands starting with ./mvnw work on a Windows machine.

  2. deki commented on Nov 11, 2022

    @deki
    Contributor

    Currently the workshop is supposed to run within AWS Cloud9 only. But as I'm a Windows user as well, it's definitely an improvement to work on...

  3. jandykiger commented on Dec 15, 2023

    @jandykiger

    I found that if I only changed labs/unicorn-store/infrastructure/cdk/cdk.json line 2 - it would work just fine on my Windows machine.
    "app": "mvn -e -q compile exec:java",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions