cstamas commented on code in PR #1299:
URL: https://github.com/apache/maven/pull/1299#discussion_r1387788298


##########
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:
   This method is deprecated and meant NOT to be used in Maven, only outside 
(like MIMA). Hence, there is no Maven API present either, "only" resolver 
stuff, so this is good as is IMHO.



-- 
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]

Reply via email to