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

BUG: Foundation Maven Plugins MDA Maven Plugin fails to find all its neccessary dependencies #390

Open
cwoods-cpointe opened this issue Oct 3, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@cwoods-cpointe
Copy link
Contributor

Description

The build fails on foundation maven plugins MDA maven plugin when running without org.apache.maven.plugins:maven-dependency-plugin in the m2.
Failure logs:

[ERROR] As an aiSSEMBLE user, I want pipeline artifacts derived from MDA models so I don't have to manually manage the pom.Discover python data-record artifacts -- Time elapsed: 0.178 s <<< ERROR!
java.lang.RuntimeException: Failed to configure the Pipeline Artifacts Mojo and read in the pipeline models
	at com.boozallen.mda.maven.PipelineTest.the_copy_pipeline_artifacts_goal_is_run(PipelineTest.java:153)
Caused by: java.lang.RuntimeException: Failed to copy JAR for DataDeliverySparkPipeline
	at com.boozallen.mda.maven.util.PipelineArtifactCopier.copyArtifact(PipelineArtifactCopier.java:43)
	...
        ...
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins:maven-dependency-plugin:pom:3.6.1 from/to central (https://repo.maven.apache.org/maven2): No connector factories available
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:521)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:402)
	... 71 more
Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: No connector factories available
	at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:167)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:512)
	... 72 more

Steps to Reproduce

  1. clear the dependency from your m2 - rm -rf ~/.m2/repository/org/apache/maven/plugins/
  2. Build MDA maven plugin module - mvn clean install -Dmaven.build.cache.skipCache -pl :mda-maven-plugin
  3. See test failures

Expected Behavior

The tests pass and the build succeeds.

Actual Behavior

The tests fail to complete.

Additional Context

Github action showing this behavior - https://github.com/boozallen/aissemble/actions/runs/11156774022

@cwoods-cpointe cwoods-cpointe added the bug Something isn't working label Oct 3, 2024
@cwoods-cpointe cwoods-cpointe added this to the 1.10.0 milestone Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant