-
Task
-
Resolution: Done
-
Minor
-
JDG 7.1.0 ER6
-
None
-
CR2
Under 16.4.3. Build and Deploy the CarMart Quickstart to JBoss EAP
It says:
Use the following command to build and deploy the application to the running instance of JBoss EAP using Maven:
$ mvn clean package jboss-as:deploy
It should be
$ mvn clean package wildfly:deploy
As it is in the Hello World Quickstart. If you use 'jboss-as' it fails to start:
[jbrier@jb-t460p jboss-datagrid-7.1.0-quickstarts]$ cd carmart
[jbrier@jb-t460p carmart]$ mvn clean package jboss-as:deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jboss.quickstarts.jdg:jboss-carmart:war:7.1.0.ER6-redhat-1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 232, column 29
[WARNING] 'build.plugins.plugin.version' for org.wildfly.plugins:wildfly-maven-plugin is missing. @ line 227, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/org/codehaus/mojo/build-helper-maven-plugin/1.7/build-helper-maven-plugin-1.7.pom
<snip>
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 285.6 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.521 s
[INFO] Finished at: 2017-04-04T13:59:53-04:00
[INFO] Final Memory: 13M/246M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jboss-as' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/jbrier/.m2/repository), jboss-datagrid-repository (file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/NoPluginFoundForPrefixException
using 'wildfly' it works:
[jbrier@jb-t460p carmart]$ mvn -U clean wildfly:deploy
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jboss.quickstarts.jdg:jboss-carmart:war:7.1.0.ER6-redhat-1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 232, column 29
[WARNING] 'build.plugins.plugin.version' for org.wildfly.plugins:wildfly-maven-plugin is missing. @ line 227, column 29
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/org/wildfly/plugins/wildfly-maven-plugin/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/wildfly/plugins/wildfly-maven-plugin/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/wildfly/plugins/wildfly-maven-plugin/maven-metadata.xml (2 KB at 3.7 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building JBoss JDG Quickstart: carmart 7.1.0.ER6-redhat-1
[INFO] ------------------------------------------------------------------------
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/commons-codec/commons-codec/1.10/commons-codec-1.10.pom
<snip>
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/com/ocpsoft/prettyfaces-parent/3.3.2/prettyfaces-parent-3.3.2.pom
Downloading: https://repo.maven.apache.org/maven2/com/ocpsoft/prettyfaces-parent/3.3.2/prettyfaces-parent-3.3.2.pom
Downloaded: https://repo.maven.apache.org/maven2/com/ocpsoft/prettyfaces-parent/3.3.2/prettyfaces-parent-3.3.2.pom (10 KB at 191.5 KB/sec)
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/org/infinispan/infinispan-embedded/8.4.0.ER6-redhat-1/infinispan-embedded-8.4.0.ER6-redhat-1.pom
Downloading: https://repo.maven.apache.org/maven2/org/infinispan/infinispan-embedded/8.4.0.ER6-redhat-1/infinispan-embedded-8.4.0.ER6-redhat-1.pom
[WARNING] The POM for org.infinispan:infinispan-embedded:jar:8.4.0.ER6-redhat-1 is missing, no dependency information available
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/com/ocpsoft/prettyfaces-jsf2/3.3.2/prettyfaces-jsf2-3.3.2.jar
Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
Downloading: https://repo.maven.apache.org/maven2/com/ocpsoft/prettyfaces-jsf2/3.3.2/prettyfaces-jsf2-3.3.2.jar
Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar (278 KB at 1927.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/ocpsoft/prettyfaces-jsf2/3.3.2/prettyfaces-jsf2-3.3.2.jar (677 KB at 2560.8 KB/sec)
[INFO]
[INFO] — maven-clean-plugin:2.5:clean (default-clean) @ jboss-carmart —
[INFO]
[INFO] >>> wildfly-maven-plugin:1.2.0.Alpha4:deploy (default-cli) > package @ jboss-carmart >>>
[INFO]
[INFO] — build-helper-maven-plugin:1.7:add-source (add-source) @ jboss-carmart —
Downloading: file:///home/jbrier/JDG/jboss-datagrid-7.1.0-maven-repository-er7/maven-repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar (262 KB at 3534.8 KB/sec)
[INFO] Source directory: /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/src/local/java added.
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @ jboss-carmart —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ jboss-carmart —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 9 source files to /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/target/classes
[WARNING] /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/src/local/java/org/jboss/as/quickstarts/datagrid/carmart/session/LocalCacheContainerProvider.java: /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/src/local/java/org/jboss/as/quickstarts/datagrid/carmart/session/LocalCacheContainerProvider.java uses or overrides a deprecated API.
[WARNING] /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/src/local/java/org/jboss/as/quickstarts/datagrid/carmart/session/LocalCacheContainerProvider.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ jboss-carmart —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jboss-carmart —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/target/test-classes
[INFO]
[INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ jboss-carmart —
[INFO] Tests are skipped.
[INFO]
[INFO] — maven-war-plugin:2.2:war (default-war) @ jboss-carmart —
[INFO] Packaging webapp
[INFO] Assembling webapp [jboss-carmart] in [/home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/target/jboss-carmart]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/src/main/webapp]
[INFO] Webapp assembled in [43 msecs]
[INFO] Building war: /home/jbrier/JDG/jboss-datagrid-7.1.0-quickstarts/carmart/target/jboss-carmart.war
[INFO]
[INFO] <<< wildfly-maven-plugin:1.2.0.Alpha4:deploy (default-cli) < package @ jboss-carmart <<<
[INFO]
[INFO] — wildfly-maven-plugin:1.2.0.Alpha4:deploy (default-cli) @ jboss-carmart —
Apr 04, 2017 2:03:56 PM org.xnio.Xnio <clinit>
INFO: XNIO version 3.5.0.Beta2
Apr 04, 2017 2:03:56 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.5.0.Beta2
Apr 04, 2017 2:03:56 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 5.0.0.Beta18
Apr 04, 2017 2:03:56 PM org.wildfly.security.Version <clinit>
INFO: ELY00001: WildFly Elytron version 1.1.0.Beta24
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.830 s
[INFO] Finished at: 2017-04-04T14:04:00-04:00
[INFO] Final Memory: 37M/444M
[INFO] ------------------------------------------------------------------------
[jbrier@jb-t460p carmart]$