Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Maven build failing #5

Open
miparnisari opened this issue Jul 14, 2020 · 1 comment
Open

Maven build failing #5

miparnisari opened this issue Jul 14, 2020 · 1 comment

Comments

@miparnisari
Copy link

miparnisari commented Jul 14, 2020

build:
commands:
- pre-commit run --all-files
# - cd "$CODEBUILD_SRC_DIR/my_resource"
# - mvn clean verify --no-transfer-progress
# finally:
# - cat "$CODEBUILD_SRC_DIR/my_resource/rpdk.log"

Your CodeBuild config is not building anything. Please change this to something like:

  build:
    commands:
      - pre-commit run --all-files
      - |
        for directory in $CODEBUILD_SRC_DIR/aws-*; do
          cd "$directory"
          mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B clean verify --no-transfer-progress
        done
@PatMyron PatMyron changed the title CodeBuild Maven build failing Feb 6, 2021
@PatMyron
Copy link

PatMyron commented Feb 6, 2021

Maven builds are failing due to only updating internal Brazil Config file(s) without also updating external Maven pom.xml file(s):

$ grep -L 'software.amazon.awssdk' */*/pom.xml # SDK missing from Maven dependencies
aws-cloudformation-resource-providers-acmpca/aws-acmpca-certificate/pom.xml
aws-cloudformation-resource-providers-acmpca/aws-acmpca-certificateauthority/pom.xml
aws-cloudformation-resource-providers-acmpca/aws-acmpca-certificateauthorityactivation/pom.xml
aws-cloudformation-resource-providers-cloudformation/aws-cloudformation-moduleversion/pom.xml
aws-cloudformation-resource-providers-ec2-cagw/aws-ec2-carriergateway/pom.xml
aws-cloudformation-resource-providers-ec2-prefix-list/aws-ec2-prefixlist/pom.xml
aws-cloudformation-resource-providers-globalaccelerator/aws-globalaccelerator-accelerator/pom.xml
aws-cloudformation-resource-providers-globalaccelerator/aws-globalaccelerator-endpointgroup/pom.xml
aws-cloudformation-resource-providers-globalaccelerator/aws-globalaccelerator-listener/pom.xml
aws-cloudformation-resource-providers-iot/aws-iot-authorizer/pom.xml
aws-cloudformation-resource-providers-iot/aws-iot-certificate/pom.xml
aws-cloudformation-resource-providers-iot/aws-iot-provisioningtemplate/pom.xml
aws-cloudformation-resource-providers-rds-proxy/aws-rds-dbproxy/pom.xml
aws-cloudformation-resource-providers-rds-proxy/aws-rds-dbproxytargetgroup/pom.xml
aws-cloudformation-resource-providers-timestream/aws-timestream-database/pom.xml
aws-cloudformation-resource-providers-timestream/aws-timestream-table/pom.xml

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants