簡體   English   中英

maven 發布:執行失敗甚至嘗試生成 javadoc 或源

[英]maven release:perform failing to even try to generate javadoc or sources

自從不久前遷移到 Java 11 以來,maven 發布插件無法在構建的工件旁邊生成 javadoc。 我在父 pom 中的配置(和編譯器插件,如果相關):

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <release>11</release>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>3.2.0</version>
                <configuration>
                    <doclint>none</doclint>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>3.0.0-M4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.2.1</version>
            </plugin>

如果我執行 mvn javadoc:javadoc,它工作正常。 如果我執行 mvn clean install -DperformRelease=true,它工作正常(javadoc 與主工件一起生成)。

但是,如果我嘗試進行真正的構建,使用 mvn release:prepare 后跟 mvn release:perform,我根本沒有得到任何錯誤,事實上我沒有任何跡象表明它甚至試圖調用 javadoc 插件。 我得到的唯一工件是主 JAR。

這是 mvn release:perform 輸出的結尾,在測試全部通過后,它通常會生成 javadoc 和源代碼,然后 maven-install-plugin 也會安裝它們:

W:\test\momime-gitutilstest>mvn release:prepare
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.ndg.common:git-utils >----------------------
[INFO] Building ndgUtils 0.4.5-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-release-plugin:3.0.0-M4:prepare (default-cli) @ git-utils ---
[INFO] phase verify-release-configuration
[INFO] starting prepare goal, composed of 17 phases: check-poms, scm-check-modifications, check-dependency-snapshots, create-backup-poms, map-release-versions, input-variables, map-development-versions, rewrite-poms-for-release, generate-release-poms, run-preparation-goals, scm-commit-release, scm-tag, rewrite-poms-for-development, remove-release-poms, run-completion-goals, scm-commit-development, end-release
[INFO] [prepare] 1/17 check-poms
[INFO] [prepare] 2/17 scm-check-modifications
[INFO] Verifying that there are no local modifications...
[INFO]   ignoring changes on: **\pom.xml.next, **\release.properties, **\pom.xml.branch, **\pom.xml.tag, **\pom.xml.backup, **\pom.xml.releaseBackup
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-prefix"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: W:\test\momime-gitutilstest
[WARNING] Ignoring unrecognized line: ?? release.properties
[INFO] [prepare] 3/17 check-dependency-snapshots
[INFO] Checking dependencies and plugins for snapshots ...
[INFO] [prepare] 4/17 create-backup-poms
[INFO] [prepare] 5/17 map-release-versions
What is the release version for "ndgUtils"? (com.ndg.common:git-utils) 0.4.5: :
[INFO] [prepare] 6/17 input-variables
What is the SCM release tag or label for "ndgUtils"? (com.ndg.common:git-utils) git-utils-0.4.5: :
[INFO] [prepare] 7/17 map-development-versions
What is the new development version for "ndgUtils"? (com.ndg.common:git-utils) 0.4.6-SNAPSHOT: :
[INFO] [prepare] 8/17 rewrite-poms-for-release
[INFO] Transforming 'ndgUtils'...
[INFO] [prepare] 9/17 generate-release-poms
[INFO] Not generating release POMs
[INFO] [prepare] 10/17 run-preparation-goals
[INFO] Executing goals 'clean verify'...
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]
[INFO] [INFO] ----------------------< com.ndg.common:git-utils >----------------------
[INFO] [INFO] Building ndgUtils 0.4.5
[INFO] [INFO] --------------------------------[ jar ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ git-utils ---
[INFO] [INFO]
[INFO] [INFO] --- maven-jaxb2-plugin:0.14.0:generate (main-xjc-generate) @ git-utils ---
[INFO] [INFO] Sources are not up-to-date, XJC will be executed.
[INFO] WARNING: An illegal reflective access operation has occurred
[INFO] WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/W:/maven/repository/org/glassfish/jaxb/jaxb-runtime/2.3.0/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
[INFO] WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
[INFO] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[INFO] WARNING: All illegal access operations will be denied in a future release
[INFO] [INFO] Episode file [W:\test\momime-gitutilstest\target\generated-sources\xjc-layoutmanagers\META-INF\layoutmanagers.episode] was augmented with if-exists="true" attributes.
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ git-utils ---
[INFO] [INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] [INFO] Using 'cp1252' encoding to copy filtered properties files.
[INFO] [INFO] Copying 1 resource
[INFO] [INFO] Copying 1 resource
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ git-utils ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 52 source files to W:\test\momime-gitutilstest\target\classes
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ git-utils ---
[INFO] [INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] [INFO] Using 'cp1252' encoding to copy filtered properties files.
[INFO] [INFO] Copying 2 resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ git-utils ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 20 source files to W:\test\momime-gitutilstest\target\test-classes
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ git-utils ---
[INFO] [INFO]
[INFO] [INFO] -------------------------------------------------------
[INFO] [INFO]  T E S T S
[INFO] [INFO] -------------------------------------------------------
[INFO] [INFO] Running com.ndg.math.TestRomanNumerals
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.144 s - in com.ndg.math.TestRomanNumerals
[INFO] [INFO] Running com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutContainerExImpl
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutContainerExImpl
[INFO] [INFO] Running com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutManager
[INFO] Jul. 11, 2021 11:27:48 A.M. com.ndg.swing.layoutmanagers.xmllayout.XmlLayoutManager layoutContainer
[INFO] WARNING: No entry in XML layout was found for component with name "ButtonFour"
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.894 s - in com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutManager
[INFO] [INFO] Running com.ndg.swing.TestJPanelWithConstantRepaints
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.07 s - in com.ndg.swing.TestJPanelWithConstantRepaints
[INFO] [INFO] Running com.ndg.swing.TestMouseClickListener
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.067 s - in com.ndg.swing.TestMouseClickListener
[INFO] [INFO] Running com.ndg.utils.FileNameUtilsTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.044 s - in com.ndg.utils.FileNameUtilsTest
[INFO] [INFO] Running com.ndg.utils.NumberUtilsTest
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.NumberUtilsTest
[INFO] [INFO] Running com.ndg.utils.ProcessUtilsImplTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.ProcessUtilsImplTest
[INFO] [INFO] Running com.ndg.utils.stream.BooleanTest
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 s - in com.ndg.utils.stream.BooleanTest
[INFO] [INFO] Running com.ndg.utils.stream.DelphiDateTest
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.DelphiDateTest
[INFO] [INFO] Running com.ndg.utils.stream.DoubleTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.DoubleTest
[INFO] [INFO] Running com.ndg.utils.stream.LengthAndStringTest
[INFO] [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.LengthAndStringTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed2ByteShortTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.ndg.utils.stream.Signed2ByteShortTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed4ByteIntTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.Signed4ByteIntTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed8ByteLongTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.Signed8ByteLongTest
[INFO] [INFO] Running com.ndg.utils.stream.Unsigned2ByteIntTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.Unsigned2ByteIntTest
[INFO] [INFO] Running com.ndg.utils.stream.Unsigned4ByteLongTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.Unsigned4ByteLongTest
[INFO] [INFO] Running com.ndg.utils.StringUtilsTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in com.ndg.utils.StringUtilsTest
[INFO] [INFO]
[INFO] [INFO] Results:
[INFO] [INFO]
[INFO] [INFO] Tests run: 49, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ git-utils ---
[INFO] [INFO] Building jar: W:\test\momime-gitutilstest\target\git-utils-0.4.5.jar
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD SUCCESS
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time:  22.750 s
[INFO] [INFO] Finished at: 2021-07-11T11:28:04-02:30
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [prepare] 11/17 scm-commit-release
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-prefix"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: W:\test\momime-gitutilstest
[WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
[WARNING] Ignoring unrecognized line: ?? release.properties
[WARNING] Ignoring unrecognized line: ?? target/
[INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\NIGELG~1\AppData\Local\Temp\maven-scm-1323264089.commit"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git push ssh:********@git.code.sf.net/p/momime/gitutilstest refs/heads/develop:refs/heads/develop"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] [prepare] 12/17 scm-tag
[INFO] Tagging release with the label git-utils-0.4.5...
[INFO] Executing: cmd.exe /X /C "git tag -F C:\Users\NIGELG~1\AppData\Local\Temp\maven-scm-79680122.commit git-utils-0.4.5"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git push ssh:********@git.code.sf.net/p/momime/gitutilstest refs/tags/git-utils-0.4.5"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git ls-files"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] [prepare] 13/17 rewrite-poms-for-development
[INFO] Transforming 'ndgUtils'...
[INFO] [prepare] 14/17 remove-release-poms
[INFO] Not removing release POMs
[INFO] [prepare] 15/17 run-completion-goals
[INFO] [prepare] 16/17 scm-commit-development
[INFO] Checking in modified POMs...
[INFO] Executing: cmd.exe /X /C "git add -- pom.xml"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git rev-parse --show-prefix"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git status --porcelain ."
[INFO] Working directory: W:\test\momime-gitutilstest
[WARNING] Ignoring unrecognized line: ?? pom.xml.releaseBackup
[WARNING] Ignoring unrecognized line: ?? release.properties
[WARNING] Ignoring unrecognized line: ?? target/
[INFO] Executing: cmd.exe /X /C "git commit --verbose -F C:\Users\NIGELG~1\AppData\Local\Temp\maven-scm-2027775157.commit"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git symbolic-ref HEAD"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] Executing: cmd.exe /X /C "git push ssh:********@git.code.sf.net/p/momime/gitutilstest refs/heads/develop:refs/heads/develop"
[INFO] Working directory: W:\test\momime-gitutilstest
[INFO] [prepare] 17/17 end-release
[INFO] Release preparation complete.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  49.197 s
[INFO] Finished at: 2021-07-11T11:28:14-02:30
[INFO] ------------------------------------------------------------------------

















W:\test\momime-gitutilstest>mvn release:perform
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< com.ndg.common:git-utils >----------------------
[INFO] Building ndgUtils 0.4.6-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-release-plugin:3.0.0-M4:perform (default-cli) @ git-utils ---
[INFO] phase verify-release-configuration
[INFO] starting perform goal, composed of 3 phases: verify-completed-prepare-phases, checkout-project-from-scm, run-perform-goals
[INFO] [perform] 1/3 verify-completed-prepare-phases
[INFO] [perform] 2/3 checkout-project-from-scm
[INFO] Checking out the project to perform the release ...
[INFO] Executing: cmd.exe /X /C "git clone --depth 1 --branch git-utils-0.4.5 ssh:********@git.code.sf.net/p/momime/gitutilstest checkout"
[INFO] Working directory: W:\test\momime-gitutilstest\target
[INFO] Executing: cmd.exe /X /C "git ls-remote ssh:********@git.code.sf.net/p/momime/gitutilstest"
[INFO] Working directory: C:\Users\NIGELG~1\AppData\Local\Temp
[INFO] Executing: cmd.exe /X /C "git fetch ssh:********@git.code.sf.net/p/momime/gitutilstest"
[INFO] Working directory: W:\test\momime-gitutilstest\target\checkout
[INFO] Executing: cmd.exe /X /C "git checkout git-utils-0.4.5"
[INFO] Working directory: W:\test\momime-gitutilstest\target\checkout
[INFO] Executing: cmd.exe /X /C "git ls-files"
[INFO] Working directory: W:\test\momime-gitutilstest\target\checkout
[INFO] [perform] 3/3 run-perform-goals
[INFO] Invoking perform goals in directory W:\test\momime-gitutilstest\target\checkout
[INFO] Executing goals 'deploy'...
[INFO] pomFileName is already set, ignoring the -f argument
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO]
[INFO] [INFO] ----------------------< com.ndg.common:git-utils >----------------------
[INFO] [INFO] Building ndgUtils 0.4.5
[INFO] [INFO] --------------------------------[ jar ]---------------------------------
[INFO] [INFO]
[INFO] [INFO] --- maven-jaxb2-plugin:0.14.0:generate (main-xjc-generate) @ git-utils ---
[INFO] [INFO] Sources are not up-to-date, XJC will be executed.
[INFO] WARNING: An illegal reflective access operation has occurred
[INFO] WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/W:/maven/repository/org/glassfish/jaxb/jaxb-runtime/2.3.0/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
[INFO] WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
[INFO] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[INFO] WARNING: All illegal access operations will be denied in a future release
[INFO] [INFO] Episode file [W:\test\momime-gitutilstest\target\checkout\target\generated-sources\xjc-layoutmanagers\META-INF\layoutmanagers.episode] was augmented with if-exists="true" attributes.
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ git-utils ---
[INFO] [INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] [INFO] Using 'cp1252' encoding to copy filtered properties files.
[INFO] [INFO] Copying 1 resource
[INFO] [INFO] Copying 1 resource
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ git-utils ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 52 source files to W:\test\momime-gitutilstest\target\checkout\target\classes
[INFO] [INFO]
[INFO] [INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ git-utils ---
[INFO] [INFO] Using 'cp1252' encoding to copy filtered resources.
[INFO] [INFO] Using 'cp1252' encoding to copy filtered properties files.
[INFO] [INFO] Copying 2 resources
[INFO] [INFO]
[INFO] [INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ git-utils ---
[INFO] [INFO] Changes detected - recompiling the module!
[INFO] [INFO] Compiling 20 source files to W:\test\momime-gitutilstest\target\checkout\target\test-classes
[INFO] [INFO]
[INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ git-utils ---
[INFO] [INFO]
[INFO] [INFO] -------------------------------------------------------
[INFO] [INFO]  T E S T S
[INFO] [INFO] -------------------------------------------------------
[INFO] [INFO] Running com.ndg.math.TestRomanNumerals
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.17 s - in com.ndg.math.TestRomanNumerals
[INFO] [INFO] Running com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutContainerExImpl
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutContainerExImpl
[INFO] [INFO] Running com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutManager
[INFO] Jul. 11, 2021 11:28:39 A.M. com.ndg.swing.layoutmanagers.xmllayout.XmlLayoutManager layoutContainer
[INFO] WARNING: No entry in XML layout was found for component with name "ButtonFour"
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.954 s - in com.ndg.swing.layoutmanagers.xmllayout.TestXmlLayoutManager
[INFO] [INFO] Running com.ndg.swing.TestJPanelWithConstantRepaints
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.054 s - in com.ndg.swing.TestJPanelWithConstantRepaints
[INFO] [INFO] Running com.ndg.swing.TestMouseClickListener
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.043 s - in com.ndg.swing.TestMouseClickListener
[INFO] [INFO] Running com.ndg.utils.FileNameUtilsTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.049 s - in com.ndg.utils.FileNameUtilsTest
[INFO] [INFO] Running com.ndg.utils.NumberUtilsTest
[INFO] [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.NumberUtilsTest
[INFO] [INFO] Running com.ndg.utils.ProcessUtilsImplTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.ProcessUtilsImplTest
[INFO] [INFO] Running com.ndg.utils.stream.BooleanTest
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s - in com.ndg.utils.stream.BooleanTest
[INFO] [INFO] Running com.ndg.utils.stream.DelphiDateTest
[INFO] [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.DelphiDateTest
[INFO] [INFO] Running com.ndg.utils.stream.DoubleTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.DoubleTest
[INFO] [INFO] Running com.ndg.utils.stream.LengthAndStringTest
[INFO] [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.LengthAndStringTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed2ByteShortTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.Signed2ByteShortTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed4ByteIntTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.Signed4ByteIntTest
[INFO] [INFO] Running com.ndg.utils.stream.Signed8ByteLongTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.Signed8ByteLongTest
[INFO] [INFO] Running com.ndg.utils.stream.Unsigned2ByteIntTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.ndg.utils.stream.Unsigned2ByteIntTest
[INFO] [INFO] Running com.ndg.utils.stream.Unsigned4ByteLongTest
[INFO] [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.ndg.utils.stream.Unsigned4ByteLongTest
[INFO] [INFO] Running com.ndg.utils.StringUtilsTest
[INFO] [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.ndg.utils.StringUtilsTest
[INFO] [INFO]
[INFO] [INFO] Results:
[INFO] [INFO]
[INFO] [INFO] Tests run: 49, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO]
[INFO] [INFO]
[INFO] [INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ git-utils ---
[INFO] [INFO] Building jar: W:\test\momime-gitutilstest\target\checkout\target\git-utils-0.4.5.jar
[INFO] [INFO]
[INFO] [INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ git-utils ---
[INFO] [INFO] Installing W:\test\momime-gitutilstest\target\checkout\target\git-utils-0.4.5.jar to W:\maven\repository\com\ndg\common\git-utils\0.4.5\git-utils-0.4.5.jar
[INFO] [INFO] Installing W:\test\momime-gitutilstest\target\checkout\pom.xml to W:\maven\repository\com\ndg\common\git-utils\0.4.5\git-utils-0.4.5.pom
[INFO] [INFO]
[INFO] [INFO] --- maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) @ git-utils ---

已經無休止地尋找解決方案,但大多數帖子要么是a)javadoc生成失敗的人,因為他們沒有doclint=none,要么b)人們想要完全改變javadoc生成。 我找不到有關如何打開它的任何信息,因為默認情況下它應該打開。 任何建議將不勝感激,謝謝。

(編輯:也為 maven-source-plugin 添加了父 pom 配置和 SO 標記,因為它具有完全相同的問題,因為它無法運行)

經過大量搜索和嘗試不起作用的事情,最終將其跟蹤到必須添加的此設置。 雖然我仍然感到困惑,在過去沒有這個的情況下,這可以正常工作,所以他們一定將默認值從 true 更改為 false。

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>3.0.0-M4</version>
                <configuration>
                    <useReleaseProfile>true</useReleaseProfile>
                </configuration>
            </plugin>

更新:是的,在 3.0.0-M4 中,useReleaseProfile 默認為 true,在 2.5.3(最新的 2.xx)中,它默認為 false。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM