mvn dependency:analyze
无法处理文件(请参阅下面的日志)。我不明白为什么,编译看起来没问题,因为我可以很好地运行应用程序。
父 pom.xml 将
maven.compiler.plugin.version=3.10.0
与 release=17
和 -Xlint:all
配置为编译器参数。
可以在此处获取回购协议。该日志用于项目
modules/Phrase
,但所有模块都存在相同的问题。 Win10,cygwin,JDK17,我是Maven的初学者......
$ mvn dependency:analyze -Dmaven.plugin.validation=VERBOSE
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< org.jjazzlab:org-jjazz-phrase >--------------------
[INFO] Building Phrase 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ nbm ]---------------------------------
[INFO]
[INFO] >>> dependency:2.8:analyze (default-cli) > test-compile @ org-jjazz-phrase >>>
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ org-jjazz-phrase ---
[INFO] Copying 1 resource from src\main\resources to target\classes
[INFO]
[INFO] --- compiler:3.10.0:compile (default-compile) @ org-jjazz-phrase ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- nbm:4.8:manifest (default-manifest) @ org-jjazz-phrase ---
[INFO] NBM Plugin generates manifest
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ org-jjazz-phrase ---
[INFO] skip non existing resourceDirectory D:\JeromeDocs\NetBeansProjects\JJazzLab\modules\Phrase\src\test\resources
[INFO]
[INFO] --- compiler:3.10.0:testCompile (default-testCompile) @ org-jjazz-phrase ---
[INFO] No sources to compile
[INFO]
[INFO] <<< dependency:2.8:analyze (default-cli) < test-compile @ org-jjazz-phrase <<<
[INFO]
[INFO]
[INFO] --- dependency:2.8:analyze (default-cli) @ org-jjazz-phrase ---
Unable to process: org.jjazz.phrase.api.CyclicPositions
Unable to process: org.jjazz.phrase.api.Grid
Unable to process: org.jjazz.phrase.api.NoteEvent$AsNoteKey
Unable to process: org.jjazz.phrase.api.NoteEvent
Unable to process: org.jjazz.phrase.api.Phrase$6
Unable to process: org.jjazz.phrase.api.Phrase
Unable to process: org.jjazz.phrase.api.Phrases
Unable to process: org.jjazz.phrase.api.PhraseSamples
Unable to process: org.jjazz.phrase.api.SizedPhrase
Unable to process: org.jjazz.phrase.api.SourcePhrase
Unable to process: org.jjazz.phrase.api.SourcePhraseSet
[WARNING] Used undeclared dependencies found:
[WARNING] com.google.guava:guava:jar:23.6-jre:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.jjazzlab:org-jjazz-guava:jar:1.0-SNAPSHOT:compile
[WARNING] org.jjazzlab:org-jjazz-chordleadsheet:jar:1.0-SNAPSHOT:compile
[WARNING] org.jjazzlab:org-jjazz-midi:jar:1.0-SNAPSHOT:compile
[WARNING] org.netbeans.api:org-openide-dialogs:jar:RELEASE170:compile
[WARNING] org.netbeans.api:org-openide-util:jar:RELEASE170:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.754 s
[INFO] Finished at: 2023-05-21T16:24:36+02:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 4 plugin(s)
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-site-plugin:3.12.1
[WARNING] Plugin issue(s):
[WARNING] * Plugin depends on the deprecated Maven 2.x compatibility layer, which may not be supported in Maven 4.x
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-compiler-plugin:3.10.0
[WARNING] Declared at location(s):
[WARNING] * org.jjazzlab:jjazzlab-parent:1.0-SNAPSHOT (C:\Users\Jerome\.m2\repository\org\jjazzlab\jjazzlab-parent\1.0-SNAPSHOT\jjazzlab-parent-1.0-SNAPSHOT.pom) @ line 35
[WARNING] Used in module(s):
[WARNING] * org.jjazzlab:org-jjazz-phrase:1.0-SNAPSHOT (pom.xml)
[WARNING] Plugin issue(s):
[WARNING] * Plugin should declare these Maven artifacts in `provided` scope: [org.apache.maven:maven-plugin-api:3.2.5, org.apache.maven:maven-model:3.2.5, org.apache.maven:maven-core:3.2.5, org.apache.maven:
maven-settings:3.2.5, org.apache.maven:maven-model-builder:3.2.5, org.apache.maven:maven-repository-metadata:3.2.5, org.apache.maven:maven-aether-provider:3.2.5, org.apache.maven:maven-settings-builder:3.2.5, o
rg.apache.maven:maven-artifact:3.2.5]
[WARNING]
[WARNING] * org.apache.netbeans.utilities:nbm-maven-plugin:4.8
[WARNING] Declared at location(s):
[WARNING] * org.jjazzlab:org-jjazz-phrase:1.0-SNAPSHOT (pom.xml) @ line 16
[WARNING] Used in module(s):
[WARNING] * org.jjazzlab:org-jjazz-phrase:1.0-SNAPSHOT (pom.xml)
[WARNING] Plugin issue(s):
[WARNING] * Plugin depends on the deprecated Maven 2.x compatibility layer, which may not be supported in Maven 4.x
[WARNING] * Plugin depends on plexus-container-default, which is EOL
[WARNING] Mojo issue(s):
[WARNING] * Mojo nbm:manifest (org.apache.netbeans.nbm.NetBeansManifestUpdateMojo)
[WARNING] - Parameter 'localRepository' uses deprecated parameter expression '${localRepository}': ArtifactRepository type is deprecated and its use in Mojos should be avoided.
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-dependency-plugin:2.8
[WARNING] Declared at location(s):
[WARNING] * unknown
[WARNING] Used in module(s):
[WARNING] * org.jjazzlab:org-jjazz-phrase:1.0-SNAPSHOT (pom.xml)
[WARNING] Plugin issue(s):
[WARNING] * Plugin is a Maven 2.x plugin, which will be not supported in Maven 4.x
[WARNING] * Plugin depends on plexus-container-default, which is EOL
[WARNING] Mojo issue(s):
[WARNING] * Mojo dependency:analyze (org.apache.maven.plugin.dependency.analyze.AnalyzeMojo)
[WARNING] - Implements `Contextualizable` interface from Plexus Container, which is EOL.
[WARNING]
[WARNING]
[WARNING] Fix reported issues by adjusting plugin configuration or by upgrading above listed plugins. If no upgrade available, please notify plugin maintainers about reported issues.
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
使用最新版本的依赖插件。 将其添加到 pom 的pluginManagement 部分:
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</pluginManagement>