Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

chore(cli): fix Java dist integ tests (#5695) #5699

Merged
merged 1 commit into from
Jan 7, 2020

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jan 7, 2020

The Java integ test which is run against the dist is failing because
the local cdk-cx-api Maven artifact cannot be found. Error message:

[ERROR] Failed to execute goal on project cdk-init-test: Could not
resolve dependencies for project com.myorg:cdk-init-test:jar:0.1: Failed
to collect dependencies at software.amazon.awscdk:core:jar:1.20.0 ->
software.amazon.awscdk:cdk-cx-api:jar:[1.20.0]: No versions available
for software.amazon.awscdk:cdk-cx-api:jar:[1.20.0] within specified
range -> [Help 1]

It is not clear to me why just this artifact cannot be found while for
example core can be found correctly, or why this problem only shows up
on the release branch, but after some reading of the Maven source and
local experimentation I have concluded that the proper filename of the
Maven metadata file should be maven-metadata-local.xml (instead of
just maven-metadata.xml), so we rename the files before rsync'ing them
into the repository now.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The Java integ test which is run against the dist is failing because
the local `cdk-cx-api` Maven artifact cannot be found. Error message:

```
[ERROR] Failed to execute goal on project cdk-init-test: Could not
resolve dependencies for project com.myorg:cdk-init-test:jar:0.1: Failed
to collect dependencies at software.amazon.awscdk:core:jar:1.20.0 ->
software.amazon.awscdk:cdk-cx-api:jar:[1.20.0]: No versions available
for software.amazon.awscdk:cdk-cx-api:jar:[1.20.0] within specified
range -> [Help 1]
```

It is not clear to me why just this artifact cannot be found while for
example `core` can be found correctly, or why this problem only shows up
on the `release` branch, but after some reading of the Maven source and
local experimentation I have concluded that the proper filename of the
Maven metadata file should be `maven-metadata-local.xml` (instead of
just `maven-metadata.xml`), so we rename the files before rsync'ing them
into the repository now.
@rix0rrr rix0rrr requested a review from RomainMuller as a code owner January 7, 2020 22:05
@rix0rrr rix0rrr self-assigned this Jan 7, 2020
@rix0rrr
Copy link
Contributor Author

rix0rrr commented Jan 7, 2020

Copy of #5695 but based against the "release" branch

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 7, 2020
@rix0rrr rix0rrr requested a review from shivlaks January 7, 2020 22:06
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 7, 2020

Thank you for contributing! Your pull request is now being automatically merged.

@mergify mergify bot merged commit 021c521 into release Jan 7, 2020
@mergify mergify bot deleted the huijbers/java-dist-tests-2 branch January 7, 2020 22:42
nija-at added a commit that referenced this pull request Jan 8, 2020
* v1.20.0

* chore(cli): fix Java dist integ tests (#5695) (#5699)

The Java integ test which is run against the dist is failing because
the local `cdk-cx-api` Maven artifact cannot be found. Error message:

```
[ERROR] Failed to execute goal on project cdk-init-test: Could not
resolve dependencies for project com.myorg:cdk-init-test:jar:0.1: Failed
to collect dependencies at software.amazon.awscdk:core:jar:1.20.0 ->
software.amazon.awscdk:cdk-cx-api:jar:[1.20.0]: No versions available
for software.amazon.awscdk:cdk-cx-api:jar:[1.20.0] within specified
range -> [Help 1]
```

It is not clear to me why just this artifact cannot be found while for
example `core` can be found correctly, or why this problem only shows up
on the `release` branch, but after some reading of the Maven source and
local experimentation I have concluded that the proper filename of the
Maven metadata file should be `maven-metadata-local.xml` (instead of
just `maven-metadata.xml`), so we rename the files before rsync'ing them
into the repository now.

* remove breaking change that didn't really happen

* chore: fixup entries in the CHANGELOG (#5706)

Co-authored-by: Rico Huijbers <rix0rrr@gmail.com>
Co-authored-by: Elad Ben-Israel <benisrae@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants