-
1. Re: swarm quickstart
emag Mar 7, 2016 2:04 PM (in response to rkgupta12)The repo's swarm version is too old.
I recommend you to check the latest official examples.
GitHub - wildfly-swarm/wildfly-swarm-examples: Examples of how to write applications using Swarm.
The above example repo has SNAPSHOT repository in pom.xml, so you don't have to add something to your settings.xml.
-
2. Re: swarm quickstart
rkgupta12 Mar 7, 2016 3:45 PM (in response to emag)Thanks, still issues? Everything seems to import fine
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WildFly Swarm Examples: Static Content .war 1.0.0.CR1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> wildfly-swarm-plugin:1.0.0.CR1-SNAPSHOT:run (default-cli) @ example-static-war >>>
[WARNING] The POM for org.wildfly.swarm.examples:examples-base:jar:1.0.0.CR1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.364 s
[INFO] Finished at: 2016-03-07T15:44:07-05:00
[INFO] Final Memory: 19M/213M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project example-static-war: Could not resolve dependencies for project org.wildfly.swarm.examples:example-static-war:war:1.0.0.CR1-SNAPSHOT: Failure to find org.wildfly.swarm.examples:examples-base:jar:1.0.0.CR1-SNAPSHOT in https://repository-projectodd.forge.cloudbees.com/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of projectodd-snapshots has elapsed or updates are forced -> [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/DependencyResolutionException
-
3. Re: swarm quickstart
emag Mar 7, 2016 3:59 PM (in response to rkgupta12)Ah, all examples depend on base project, so
If you want to build these examples as they stand (using the snapshot) then you should start by either running mvn install (use -DskipTests if you only want to run a specific test(s) at a time) or mvn install inside base/ first and then you can build each individually.
GitHub - wildfly-swarm/wildfly-swarm-examples: Examples of how to write applications using Swarm.
-
4. Re: swarm quickstart
rkgupta12 Mar 7, 2016 4:02 PM (in response to emag)'mvn install' on example-static-war gives me:
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WildFly Swarm Examples: Static Content .war 1.0.0.CR1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.wildfly.swarm.examples:examples-base:jar:1.0.0.CR1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.380 s
[INFO] Finished at: 2016-03-07T16:01:39-05:00
[INFO] Final Memory: 19M/214M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project example-static-war: Could not resolve dependencies for project org.wildfly.swarm.examples:example-static-war:war:1.0.0.CR1-SNAPSHOT: Failure to find org.wildfly.swarm.examples:examples-base:jar:1.0.0.CR1-SNAPSHOT in https://repository-projectodd.forge.cloudbees.com/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of projectodd-snapshots has elapsed or updates are forced -> [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/DependencyResolutionException
-
5. Re: swarm quickstart
rkgupta12 Mar 7, 2016 4:22 PM (in response to rkgupta12)disregard, all good from command line, it was an eclipse issue
-
6. Re: swarm quickstart
emag Mar 7, 2016 4:37 PM (in response to rkgupta12)Please try mvn package -pl static/static-war -am on the repo root dir since all projects depend on base project.
Or, mvn install -DskipTests on the root dir: if you want to package all examples at once.