Skip to content

Commit

Permalink
fix: NoSuchMethodException: org.eclipse.m2e.core.internal.embedder.Fi…
Browse files Browse the repository at this point in the history
…lterRepositorySystemSession.getSystemProperties (#14)
  • Loading branch information
sebthom authored Oct 23, 2024
1 parent b314e29 commit c03d1d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void injectRepositorySession(Logger logger, MavenSession session, Map<Str
// Both interfaces have getSystemProperties() accessor method that returns Map<String, String>.
final Object repoSession = session.getRepositorySession();
final Class<?> cls = repoSession.getClass();
final Method getSystemPropertiesMethod = cls.getDeclaredMethod("getSystemProperties");
final Method getSystemPropertiesMethod = cls.getMethod("getSystemProperties");
repoSessionProps = (Map<String, String>) getSystemPropertiesMethod.invoke(repoSession);
try {
repoSessionProps.putAll(dict);
Expand Down

0 comments on commit c03d1d7

Please sign in to comment.