Skip to content

Instantly share code, notes, and snippets.

@szymonk92
Created September 13, 2019 12:06
Show Gist options
  • Save szymonk92/99108ad682a47cf76a7b56fa46ae0cc4 to your computer and use it in GitHub Desktop.
Save szymonk92/99108ad682a47cf76a7b56fa46ae0cc4 to your computer and use it in GitHub Desktop.
[DEBUG] Configuring mojo org.wildfly.plugins:wildfly-maven-plugin:2.0.1.Final:execute-commands from plugin realm ClassRealm[plugin>org.wildfly.plugins:wildfly-maven-plugin:2.0.1.Final, parent: sun.misc.Launcher$AppClassLoader@18b4aac2]
[DEBUG] Configuring mojo 'org.wildfly.plugins:wildfly-maven-plugin:2.0.1.Final:execute-commands' with basic configurator -->
[DEBUG] (f) batch = false
[DEBUG] (f) buildDir = ...\xp-distribution\target
[DEBUG] (f) commands = [embed-server, module add --name=org.postgresql
--dependencies=javax.api,javax.transaction.api
--resources=...\target\lib\postgresql-42.2.6.jar, /subsystem=datasources/jdbc-driver=postgres:add(driver-name="postgres",driver-module-name="org.postgresql", driver-class-name="org.postgresql.Driver"), data-source add
--name=xpDS
--driver-name=postgres
--connection-url=jdbc:postgresql://localhost:5432/xp_test
--jndi-name=java:jboss/datasources/xpDS
--use-java-context=true
--user-name=postgres
--password=postgres
--max-pool-size=25
--blocking-timeout-wait-millis=5000
--idle-timeout-minutes=5
--enabled=true, stop-embedded-server]
[DEBUG] (f) failOnError = true
[DEBUG] (f) fork = false
[DEBUG] (f) hostname = localhost
[DEBUG] (f) javaOpts = []
[DEBUG] (f) jbossHome = ...\xp-distribution\target\wildfly-16.0.0.Final
[DEBUG] (f) offline = true
[DEBUG] (f) port = 9990
[DEBUG] (f) repositories = [repo (http://artifactory.camline.com/artifactory/repo, default, releases+snapshots)]
[DEBUG] (f) scripts = []
[DEBUG] (f) session = org.eclipse.aether.DefaultRepositorySystemSession@7fc1fd31
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@5af97169
[DEBUG] (f) skip = false
[DEBUG] (f) stdout = System.out
[DEBUG] (f) timeout = 60
[DEBUG] -- end configuration --
[DEBUG] Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property
[DEBUG] Executing CLI scripts
[DEBUG] No <id> element was found in the POM - Getting credentials from CLI entry
[INFO] JBoss Threads version 2.3.2.Final
[DEBUG] java opts: []
[DEBUG] process parameters: ["C:\Program Files\Java\jdk1.8.0_201\bin\java", -Dlogging.configuration=file:...\target\wildfly-16.0.0.Final\bin\jboss-cli-logging.properties, -jar, ...\target\wildfly-16.0.0.Final\jboss-modules.jar, -mp, ...\target\wildfly-16.0.0.Final\modules, org.jboss.as.cli, -Djboss.home.dir=...\target\wildfly-16.0.0.Final, --file=C:\Users\user\AppData\Local\Temp\cli-scrpts2433152944026375570.cli]
You must specify at least one resource: use --resources or --absolute-resources parameter
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56.101 s
[INFO] Finished at: 2019-09-13T13:51:53+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:2.0.1.Final:execute-commands (Configure1) on project xp-distribution: Failed to execute commands: See previous messages for failure messages. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:2.0.1.Final:execute-commands (Configure1) on project xp-distribution: Failed to execute commands: See previous messages for failure messages.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
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 sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute commands: See previous messages for failure messages.
at org.wildfly.plugin.cli.ExecuteCommandsMojo.executeInNewProcess (ExecuteCommandsMojo.java:297)
at org.wildfly.plugin.cli.ExecuteCommandsMojo.executeInNewProcess (ExecuteCommandsMojo.java:249)
at org.wildfly.plugin.cli.ExecuteCommandsMojo.execute (ExecuteCommandsMojo.java:220)
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 sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
at org.codehaus.classworlds.Launcher.main (Launcher.java:47)
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment