Ok, made some progress. cd ~/.m2 and rename the existing repositories and
settings.xml, copy in the jboss-as-quickstarts/settings.xml and then cd
back to hellowworld and re-run maven w/the new settings and empty repo.
Now I'm getting this:
[ERROR] Failed to execute goal
org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:deploy (default-cli)
on project jboss-helloworld: Could not execute goal deploy on
C:\Development\jboss-as-quickstart\helloworld\target\jboss-helloworld.war.
Reason: I/O Error could not execute operation '{
[ERROR] "address" => [],
[ERROR] "operation" => "read-attribute",
[ERROR] "name" => "launch-type"
[ERROR] }': java.net.ConnectException: JBAS012174: Could not connect to
remote://localhost:9999. The connection failed: Authentication failed: all
available authentication mechanisms failed
One thing to note: I'm not running as admin, but even when I try this in a
cygwin prompt running as admin, it doesn't work. When running as admin, I
get this (even after copying the correct settings.xml to ~/.m2, where ~ is
/home/Administrator):
*Phobos#* mvn package jboss-as:deploy
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project
org.jboss.quickstarts.eap:jboss-helloworld:6.2.0-redhat-SNAPSHOT
(C:\Development\jboss-as-quickstart\helloworld\pom.xml) has 4 errors
[ERROR] Non-resolvable import POM: Failure to find
org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-4 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced @ line 68, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for
javax.enterprise:cdi-api:jar is missing. @ line 81, column 21
[ERROR] 'dependencies.dependency.version' for
org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is
missing. @ line 89, column 21
[ERROR] 'dependencies.dependency.version' for
org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @
line 96, column 21
On Fri, Nov 8, 2013 at 11:49 PM, John Lusk <
john-nabble(a)how-hard-can-it-be.com> wrote:
Quickstart obtained via:
git clone --recursive
git://github.com/jboss-jdf/jboss-as-quickstart.git--branch
jdf-2.1.8.Final
*Phobos$ *mvn package jboss-as:deploy
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project
org.jboss.quickstarts.eap:jboss-helloworld:6.2.0-redhat-SNAPSHOT
(C:\Development\jboss-as-quickstart\helloworld\pom.xml) has 4 errors
[ERROR] Non-resolvable import POM: Failure to find
org.jboss.spec:jboss-javaee-6.0:pom:3.0.2.Final-redhat-4 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced @ line 68, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for
javax.enterprise:cdi-api:jar is missing. @ line 81, column 21
[ERROR] 'dependencies.dependency.version' for
org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is
missing. @ line 89, column 21
[ERROR] 'dependencies.dependency.version' for
org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @
line 96, column 21
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
*Phobos$ *pwd
/Development/jboss-as-quickstart/helloworld
*Phobos$ *mvn --version
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17
11:22:22-0400)
Maven home: C:\usr\local\Maven\3.1.1
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: C:\java\jdk1.7.0_45\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family:
"windows"
Running Wildfly 8.0.0.Beta1 (or at least, attempting to).
Someday RSN, when I give up on this maven thing, I'll be editing with
Eclipse 4.3 (Kepler).
John.