Open hanczaryk opened 11 months ago
The Maven plugin warnings have to do with using a Maven 3.9.x
version. These warnings get printed by default now and will show plugins that you did not configure directly, but are transitively pulled in. The intent is to make plugin owners aware of potential issues for the upcoming Maven 4.0
release I believe. This is not a Liberty Tools issue.
Thanks for the clarification. Is there a reason these warning were printed when I used IntelliJ but not when I used VSCode, even though both used Maven 3.9.x ?
I would expect it for all three IDEs. Perhaps IntelliJ uses a different default level of logging? But I do see some of those types of warnings in VS Code in the terminal window.
Update: This happened with Maven 3.9.2, but not with 3.9.5 for me.
I'm going to move this to the repo for LMP and see what if anything we can do to get rid of these warnings. Some of them can be pulled in by plugin configuration in your pom.xml besides the liberty-maven-plugin
though.
@hanczaryk Can you verify that the terminal window in IntelliJ is actually using Maven 3.9.5? I just tried one of my projects locally, and with 3.9.5
those plugin validation warnings went away. You can verify the version by specifying -V
after the mvn
command.
From my Windows CMD window and from the IntelliJ terminal mvn -v
returned the following showing 3.9.5.
C:\Users\XXXXXX\git\MPProShop>mvn -v
Failed to load native library:jansi.dll. osinfo: Windows/x86_64
java.lang.UnsatisfiedLinkError: Failed to load library "C:\maven\apache-maven-3.9.5\lib\jansi-native\Windows\x86_64\jansi.dll"
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: C:\maven\apache-maven-3.9.5
Java version: 17.0.6, vendor: IBM Corporation, runtime: C:\java17
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
If I attempt to execute 'mvn -v' command from a PowerShell window, I observe the following Access is denied message.
PS C:\Users\XXXXXXXXX> mvn -v
Program 'mvn.cmd' failed to run: Access is deniedAt line:1 char:1
+ mvn -v
+ ~~~~~~.
At line:1 char:1
+ mvn -v
+ ~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
I don't know if that is having any impact on the warning.
@hanczaryk Was that in the same IntelliJ terminal window that Liberty Tools ran the mvn
command? That access denied message is the same as you got in your other issue in VS Code related to Powershell vs CMD.
The IntelliJ terminal window shows the valid 3.9.5 output that I pasted above. The access denied message was only when I attempted to execute in a separate PowerShell window not related to IntelliJ. I just wanted to mention that it seems to be an issue with my PowerShell.
SVT: Plugin validation issue warning message printed for a plugin not specified in pom.xml
On my Windows 11 laptop, I've installed IntelliJ 2023.2.3 with the 10/21 liberty-tools-intellij-23.0.7-SNAPSHOT.zip extension from box folder installed. I installed maven 3.9.5 on my laptop.
Under the Liberty view, I expanded my application, MPProShop, selected 'Start' and clicked the green triangle (Liberty : Run Liberty action).
The Liberty server started successfully.
I performed similar actions to stop the server. Under the Liberty view, I expanded my application, MPProShop, selected 'Stop' and clicked the green triangle (Liberty : Run Liberty action).
I was able to successfully stop the server but the terminal printed out some warning messages specifying plugin validation issues for a plugin that isn't referenced in my pom.xml. This might be a valid warning but I'm confused since I never specify maven-resources-plugin:3.3.0.
Here are my pom.xml contents.
I ran a similar test with this same application using VSCode that didn't print these warning messages. I only observed these warning messages in IntelliJ terminal.