Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I make the plugin more chatty? #1104

Open
FromirDread opened this issue Sep 12, 2023 · 2 comments
Open

Can I make the plugin more chatty? #1104

FromirDread opened this issue Sep 12, 2023 · 2 comments

Comments

@FromirDread
Copy link

Hi,
I'm receiving following error since my angular upgrade on my jenkins pipeline but local build is fine.
Can I get more details from plugin what's going wrong on jenkins? -X don't give me further details :-(

<plugin>
				<groupId>com.github.eirslett</groupId>
				<artifactId>frontend-maven-plugin</artifactId>
				<version>${frontend-maven-plugin.version}</version>
				<executions>
					<execution>
						<id>install-node-and-npm</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>install-node-and-npm</goal>
						</goals>
					</execution>
					<execution>
						<id>install</id>
						<goals>
							<goal>npm</goal>
						</goals>
						<configuration>
							<arguments>install</arguments>
						</configuration>
					</execution>
					<execution>
						<id>build</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>npm</goal>
						</goals>
						<configuration>
							<arguments>run release-prod</arguments>
						</configuration>
					</execution>
					<execution>
						<id>dev-mode</id>
						<phase>none</phase>
						<goals>
							<goal>npm</goal>
						</goals>
						<configuration>
							<arguments>start</arguments>
						</configuration>
					</execution>
				</executions>
				<configuration>
					<workingDirectory>./</workingDirectory>
					<installDirectory>target</installDirectory>
					<nodeVersion>${frontend-maven-plugin.node.version}</nodeVersion>
					<npmVersion>${frontend-maven-plugin.npm.version}</npmVersion>
				</configuration>
			</plugin>
08:39:16  [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.13.4:npm (install) on project frontend: Failed to run task: 'npm install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
08:39:16  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.13.4:npm (install) on project tsm3-frontend: Failed to run task
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
08:39:16      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
08:39:16      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
08:39:16      at java.lang.Thread.run (Thread.java:834)
08:39:16  Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:100)
08:39:16      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
08:39:16      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
08:39:16      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
08:39:16      at java.lang.Thread.run (Thread.java:834)
08:39:16  Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install' failed.
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute (NodeTaskExecutor.java:76)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute (NpmMojo.java:62)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
08:39:16      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
08:39:16      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
08:39:16      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
08:39:16      at java.lang.Thread.run (Thread.java:834)
08:39:16  Caused by: com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutionException: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.execute (ProcessExecutor.java:82)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.executeAndRedirectOutput (ProcessExecutor.java:64)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.NodeExecutor.executeAndRedirectOutput (NodeExecutor.java:29)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute (NodeTaskExecutor.java:71)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute (NpmMojo.java:62)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
08:39:16      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
08:39:16      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
08:39:16      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
08:39:16      at java.lang.Thread.run (Thread.java:834)
08:39:16  Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
08:39:16      at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
08:39:16      at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.execute (ProcessExecutor.java:74)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.ProcessExecutor.executeAndRedirectOutput (ProcessExecutor.java:64)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.NodeExecutor.executeAndRedirectOutput (NodeExecutor.java:29)
08:39:16      at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute (NodeTaskExecutor.java:71)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute (NpmMojo.java:62)
08:39:16      at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:94)
08:39:16      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
08:39:16      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
08:39:16      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
08:39:16      at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
08:39:16      at java.util.concurrent.FutureTask.run (FutureTask.java:264)
08:39:16      at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
08:39:16      at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
08:39:16      at java.lang.Thread.run (Thread.java:834)
08:39:16  [ERROR] 
08:39:16  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
08:39:16  [ERROR] 
08:39:16  [ERROR] For more information about the errors and possible solutions, please read the following articles:
08:39:16  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
08:39:16  [ERROR] 
08:39:16  [ERROR] After correcting the problems, you can resume the build with the command
08:39:16  [ERROR]   mvn <args> -rf :frontend

Thx for any hints

@eirslett
Copy link
Owner

It's supposed to show the full npm error by default. Have you tried scrolling further up in the build log?

@MarkPWorld
Copy link

What helped me was to run maven single-threaded (mvn -T 1 [...]) in the jenkinsfile (only while debugging the build failure). Together with the configuration argument install --verbose (yarn in my case) made the logs show up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants