[
https://issues.apache.org/jira/browse/NIFI-15633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-15633:
----------------------------------
Status: Patch Available (was: Open)
> NiFi Maven - address deprecations
> ---------------------------------
>
> Key: NIFI-15633
> URL: https://issues.apache.org/jira/browse/NIFI-15633
> Project: Apache NiFi
> Issue Type: Task
> Affects Versions: nifi-nar-maven-plugin-2.2.0
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> h3. Deprecations fixed
> * @Component annotation (10+ occurrences). Replaced with JSR-330 @Inject /
> @Named across NarMojo, NarDuplicateDependenciesMojo, and
> NarProvidedDependenciesMojo
> * ArtifactFactory, Replaced with
> org.apache.maven.repository.RepositorySystem in NarMojo
> * MavenArchiver.configureReproducible(), Replaced with
> configureReproducibleBuild() plus parseBuildOutputTimestamp() in NarMojo
> * AbstractArchiver.addDirectory(). Replaced with addFileSet(DefaultFileSet)
> in NarMojo
> * MavenProject.getDependencyArtifacts(). Replaced with getDependencies() in
> NarMojo and NarDependencyUtils
> h3. Deprecations not addressed (no fix available in Maven 3.9.x)
> * ArtifactRepository. ProjectBuildingRequest and ArtifactResolutionRequest
> still require this type; there is no Aether-based alternative for these APIs
> until Maven 4.x
> * ArtifactHandlerManager.addHandlers(). Deprecated with no replacement API
> provided; needed to register the custom NAR artifact handler at runtime
--
This message was sent by Atlassian Jira
(v8.20.10#820010)