cstamas commented on code in PR #1299:
URL: https://github.com/apache/maven/pull/1299#discussion_r1387849231
##########
maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenRepositorySystemUtils.java:
##########
@@ -59,8 +62,37 @@ private MavenRepositorySystemUtils() {
* the session with authentication, mirror, proxy and other information
required for your environment.
*
* @return The new repository system session, never {@code null}.
+ * @deprecated This method is deprecated.
*/
+ @Deprecated
public static DefaultRepositorySystemSession newSession() {
+ DefaultArtifactTypeRegistry stereotypes = new
DefaultArtifactTypeRegistry();
+ stereotypes.add(new DefaultArtifactType("pom"));
Review Comment:
Deprecation is probably wrong.... is "deprecated" from Maven POV as it wants
to inject own TypeRegistry, but again, code integrating Maven Resolver (like
MIMA) does not have new Maven API on classpath, and it will want to stick to
"pure" resolver classes...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]