Skip to content

Commit

Permalink
Update maven-core dependency
Browse files Browse the repository at this point in the history
Due to a bug in plexus-utils [1], there is an ArrayIndexOutOfBoundsException
if a big pom file is analyzed with the new M2Eclipse syntax for specifying
lifecycle mapping metadata [2]. The bug is already fixed in plexus-utils,
so only the maven-core and shrinkwrap-resolver* dependencies have to be
updated.

[1] codehaus-plexus/plexus-utils#22
[2] For example "<?m2e execute onConfiguration?>"
  • Loading branch information
Adrian Scherer authored and ltearno committed May 6, 2022
1 parent 49d6900 commit c111403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -55,7 +55,7 @@ public void init( String mavenSettingsFilePath )
repositories = callMethod( mavenSession, "getRemoteRepositories" );
s = getField( mavenSession, "session" );
system = getField( mavenSession, "system" );
settings = getField( mavenSession, "settings" );
settings = getField(getField(mavenSession, "settingsManager"), "settings");
localRepositoryPath = getField( settings, "localRepository" );
}

Expand Down
8 changes: 3 additions & 5 deletions pom.xml
Expand Up @@ -70,20 +70,18 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>3.1.0</version>
<version>3.6.3</version>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-depchain</artifactId>
<version>2.1.1</version>
<version>3.1.4</version>
<type>pom</type>
</dependency>
<!-- Should be upgraded but sadly MavenResolver depends on internal
structure which has changed -->
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<version>2.1.1</version>
<version>3.1.4</version>
</dependency>
<dependency>
<groupId>fr.lteconsulting</groupId>
Expand Down

0 comments on commit c111403

Please sign in to comment.