Warning in pom.xml and if you add maven-jar-plugin latest versions doesn't work but previous works fine.
Affected version
4.0.0
Bug description
In pom.xml (SpringBoot 3.5.6) in my Eclipse IDE (my Version: 2025-06 (4.36.0) my Build id: 20250605-1316) go out warning in pom in first line:
<?xml version="1.0" encoding="UTF-8"?>
Could you fix 3.4.2 library and latest to avoid warning in pom.xml? I need to use this property version in maven pom.xml and this works fine:
<properties>
<!-- to avoid warning on line 1 and 2 of pom.xml -->
<maven-jar-plugin.version>3.4.1</maven-jar-plugin.version>
....
</properties>
Thanks a lot.
- what warning do you have?
- how it can be reproduced?
I can't really tell, but maybe I am seeing the same problem in eclipse IDE when I just updated maven-jar-plugin to 3.5.0 (from 3.4.2)?
The error marker is attached to the first line of the pom.xml and reports this as the problem:
Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping block
When I revert back to the 3.4.2 release the error marker goes away.
I can't really tell, but maybe I am seeing the same problem in eclipse IDE when I just updated maven-jar-plugin to 3.5.0 (from 3.4.2)?
The error marker is attached to the first line of the pom.xml and reports this as the problem:
Cannot access Key[type=org.apache.maven.project.MavenProject, annotation=[none]] outside of a scoping blockWhen I revert back to the 3.4.2 release the error marker goes away.
This is an error in eclipse, as already mentioned https://github.com/apache/maven-jar-plugin/issues/507
This is an error in eclipse, as already mentioned #507
Thanks @Bukama, I will watch the other issues for updates.