Skip to content

poconnor-lab49/maven-4-install-with-parent-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maven 4 install issue

Install fails when using mirrors and profile activation using bare negation of a <property><name> when the parent is not available in the mirror

Start a repository manager

Use some kind of repository manager. Everything is currently configured to use Reposilite listening on port 8080 as a repository manager.

It can be brought up with docker compose up using the provided compose.yaml file.

Deploy the parent pom

We’ll do the install to a local maven repo so the artifact won’t be available to the dependent-project later.

$ git checkout v1.0.0
$ cd parent-project
$ ./mvnw --version
$ ./mvnw clean deploy -Dmaven.repo.local=mavenRepoLocal
$ cd ..
$ git checkout main

Install dependent-project with maven 3

You should be back on main branch now

$ cd dependent-project
$ ./mvnw --version
$ ./mvnw help:active-profiles
$ ./mvnw clean install
$ cd ..

Install dependent-project with maven 4 RC-4

Time to see what maven 4 does

$ git checkout maven-4
$ cd dependent-project
$ ./mvnw --version
$ ./mvnw help:active-profiles
$ ./mvnw clean install
$ cd ..

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published