You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (JIRA)" <ji...@apache.org> on 2019/08/18 09:48:00 UTC
[jira] [Updated] (ARCHETYPE-580) The build fails with integration
test (build-and-run-its) to find expected text in 'build.log'
[ https://issues.apache.org/jira/browse/ARCHETYPE-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tibor Digana updated ARCHETYPE-580:
-----------------------------------
Summary: The build fails with integration test (build-and-run-its) to find expected text in 'build.log' (was: The build fails with integration test (build-and-run-its) to find expected test in 'build.log')
> The build fails with integration test (build-and-run-its) to find expected text in 'build.log'
> ----------------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-580
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-580
> Project: Maven Archetype
> Issue Type: Test
> Reporter: Tibor Digana
> Assignee: Tibor Digana
> Priority: Major
> Fix For: 3.1.2
>
>
> {{CommandLineUtils}} may not catch up with written stream of a sub-process while the sub-process is about to exit.
> The stream is written by
> {{maven-archetype-plugin\target\it\projects\build-and-run-its\target\test-classes\projects\basic/verify.groovy}}
> and read in
> {{maven-archetype-plugin\target\it\projects\build-and-run-its\verify.bsh}}.
> Error in {{build.log}}:
> {noformat}
> Running post-build script: C:\vcs\github\maven-archetype\maven-archetype-plugin\target\it\projects\build-and-run-its\verify.bsh
> java.lang.Exception: build.log missing System.out.println from verify.groovy
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
> at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
> at bsh.Reflect.constructObject(Unknown Source)
> at bsh.BSHAllocationExpression.constructObject(Unknown Source)
> at bsh.BSHAllocationExpression.objectAllocation(Unknown Source)
> at bsh.BSHAllocationExpression.eval(Unknown Source)
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
> at bsh.BSHThrowStatement.eval(Unknown Source)
> at bsh.BSHBlock.evalBlock(Unknown Source)
> at bsh.BSHBlock.eval(Unknown Source)
> at bsh.BSHBlock.eval(Unknown Source)
> at bsh.BSHIfStatement.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
> at bsh.Interpreter.eval(Unknown Source)
> at org.apache.maven.shared.scriptinterpreter.BeanShellScriptInterpreter.evaluateScript(BeanShellScriptInterpreter.java:116)
> at org.apache.maven.shared.scriptinterpreter.ScriptRunner.executeRun(ScriptRunner.java:256)
> at org.apache.maven.shared.scriptinterpreter.ScriptRunner.run(ScriptRunner.java:180)
> at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runPostBuildHook(AbstractInvokerMojo.java:2051)
> at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:2036)
> at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:1649)
> at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuilds(AbstractInvokerMojo.java:1358)
> at org.apache.maven.plugins.invoker.AbstractInvokerMojo.execute(AbstractInvokerMojo.java:768)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:567)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:567)
> at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)