maven-jar-plugin icon indicating copy to clipboard operation
maven-jar-plugin copied to clipboard

Warning in pom.xml and if you add maven-jar-plugin latest versions doesn't work but previous works fine.

Open skyblackhawk opened this issue 2 months ago • 1 comments

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. Image

skyblackhawk avatar Oct 17 '25 09:10 skyblackhawk

  • what warning do you have?
  • how it can be reproduced?

slawekjaranowski avatar Nov 09 '25 17:11 slawekjaranowski

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.

enapps-enorman avatar Nov 22 '25 01:11 enapps-enorman

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.

This is an error in eclipse, as already mentioned https://github.com/apache/maven-jar-plugin/issues/507

Bukama avatar Nov 22 '25 07:11 Bukama

This is an error in eclipse, as already mentioned #507

Thanks @Bukama, I will watch the other issues for updates.

enapps-enorman avatar Nov 22 '25 21:11 enapps-enorman