Details
-
Task
-
Status: Resolved
-
High
-
Resolution: Fixed
-
None
-
Operability
-
Normal
-
None
-
Description
Cassandra resolves dependencies and generates maven pom files through the use of maven-ant-tasks. This is no longer a supported project.
The recommended upgrade is to resolver-ant-tasks. It follows similar APIs so shouldn't be too impactful a change.
The existing maven-ant-tasks has caused some headaches already with internal super poms referencing insecure http:// central maven repository URLs that are no longer supported.
We should also take the opportunity to
- define the "test" scope (classpath) for those dependencies only used for tests (currently we are packaging test dependencies into the release binary artefact),
- remove the jar files stored in the git repo under the "lib/" folder.
These two above points have to happen in tandem, as the jar files under lib/ are those that get bundled into the build/dist/lib/ and hence the binary artefact. That is, all jar files under lib/ are the project's "compile" scope, and all other dependencies defined in build.xml are either "provided" or "test" scope. These different scopes for dependencies are currently configured in different maven-ant-tasks poms. See https://github.com/apache/cassandra/commit/d43b9ce5092f8879a1a66afebab74d86e9e127fb#r45659668
Attachments
Attachments
Issue Links
- causes
-
CASSANDRA-16563 When behind a firewall trunk is not buildable, need to allow overriding URLs
- Resolved
-
CASSANDRA-16560 Update IDE and Eclipse classpaths for tests (after migration to resolver-ant-tasks)
- Resolved
-
CASSANDRA-16572 j8_dtest_jars_build is broken in CI
- Resolved
-
CASSANDRA-16559 Enable offline builds with resolver-ant-tasks
- Resolved
- fixes
-
CASSANDRA-16179 gen-doc depends on jar
- Resolved
- is cloned by
-
CASSANDRA-16557 (3.0,3.11) Migrate dependency handling from maven-ant-tasks to resolver-ant-tasks
- Resolved
- is duplicated by
-
CASSANDRA-16359 mvn-install fails if no repo mirror is defined in settings.xml
- Resolved
-
CASSANDRA-16379 do not use http maven repo defined by MAT
- Resolved
- is related to
-
CASSANDRA-16597 Introduce Maven wrapper to build for Maven-less build environments
- Changes Suggested