Skip to content

Commit

Permalink
Update to Maven 4
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Sep 13, 2024
1 parent e972652 commit 8794b56
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 69 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<plexusCompilerVersion>2.15.0</plexusCompilerVersion>
<pluginToolsVersion>3.15.0</pluginToolsVersion>
<jgit-version>7.0.0.202409031743-r</jgit-version>
<maven-version>3.9.9</maven-version>
<maven-version>4.0.0-beta-4</maven-version>
<sisu-version>0.9.0.M3</sisu-version>
<minimal-maven-version>3.9.6</minimal-maven-version>
<!-- When updating surefire version, double-check Import-Package statements generated by bnd-maven-plugin and possibly adapt instructions in various bnd.bnd files -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.apache.maven.model.PluginExecution;
import org.apache.maven.model.building.FileModelSource;
import org.apache.maven.model.building.ModelProcessor;
import org.apache.maven.model.io.ModelParseException;
import org.apache.maven.model.io.ModelReader;
import org.apache.maven.model.io.ModelWriter;
import org.codehaus.plexus.PlexusContainer;
Expand Down Expand Up @@ -150,6 +151,11 @@ public Model read(Reader input, Map<String, ?> options) throws IOException {
return read(input, file, options);
}

@Override
public Model read(Path input, Map<String, ?> options) throws IOException, ModelParseException {
return read(input.toFile(), options);
}

private Model read(Reader artifactReader, Path artifactFile, Map<String, ?> options) throws IOException {
Model model = new Model();
model.setModelVersion("4.0.0");
Expand Down

This file was deleted.

7 changes: 7 additions & 0 deletions tycho-spi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
<artifactId>tycho-api</artifactId>
<version>${project.version}</version>
</dependency>

<!-- legacy replace -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
<version>2.2.0</version>
</dependency>
</dependencies>
<build>
<resources>
Expand Down
8 changes: 7 additions & 1 deletion tycho-testing-harness/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
- Sonatype Inc. - initial API and implementation
-->

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -68,6 +69,11 @@
<artifactId>sisu-osgi-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>7.0.0</version>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit 8794b56

Please sign in to comment.