-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.4.0 chokes on BOM import #348
Comments
I'm seeing similar. |
Can you provide a simple project which reproduce it? |
This change was really needed - yes it can introduce some of bugs which was not covered by IT. |
I suppose you need a repo manager (e.g. nexus) and an artifact that only exists in that repo. |
I believe this is the problem right here: https://github.com/mojohaus/flatten-maven-plugin/pull/336/files#diff-9f8ec1d13bc75e576b6c21b96d277373eb856d5465ef87ef675a983b3ade36beR1154 |
Looks as is simple to fix, but reproduce project will be appreciated to have regression. |
I won't be able to provide a reproducer anytime soon, sorry. |
Same problem to me |
@slawekjaranowski <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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.github.zuisong</groupId>
<artifactId>flatten-maven-plugin-issue348</artifactId>
<version>0.0.1</version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.github.vert-x3.vertx-stack</groupId>
<artifactId>vertx-stack-depchain</artifactId>
<version>4.4.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<!-- it works on version 1.3.0 -->
<version>1.4.0</version>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> |
@zuisong - thanks for example I have created a fix - you can build locally plugin from branch fix-348 for your testing purpose I don't know how artifacts in jitpack are managed - so I don't add example as IT. |
It works now. ❤️ Could we use <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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.github.zuisong</groupId>
<artifactId>flatten-maven-plugin-issue348</artifactId>
<version>0.0.1</version>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.0.0-M5</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>repository.spring.milestone</id>
<name>Spring Milestone Repository</name>
<url>http://repo.spring.io/milestone</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<!-- <version>1.4.1-SNAPSHOT</version> -->
<version>1.4.0</version>
<!-- <version>1.3.0</version> -->
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|
Ok, test added, build pass. |
Thanks all! |
When trying to update from 1.3.0 to 1.4.0, I'm seeing the following errors (obfuscated, project is closed source):
Jenkins (mirror in settings):
Local (no mirror in settings):
So something is wrong with the repo selection while resolving a BOM artifact.
repositories
andpluginRepositories
defined inpom.xml
, pointing to corporate artifactory (credentials insettings.xml
)resolveCiFriendliesOnly
The text was updated successfully, but these errors were encountered: