6 Replies Latest reply on Mar 7, 2016 4:37 PM by Yoshimasa Tanabe

    swarm quickstart

    ravi gupta Newbie

      Trying to simply build the swarm example: https://github.com/arun-gupta/wildfly-samples/tree/master/swarm

       

      Do I need another repo in my settings.xml?

       

       

      [INFO] ------------------------------

      ------------------------------------------
      [INFO] Total time: 0.139 s
      [INFO] Finished at: 2016-03-07T11:08:56-05:00
      [INFO] Final Memory: 5M/147M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Plugin org.wildfly.swarm:wildfly-swarm-plugin:1.0.0.Alpha2-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact org.wildfly.swarm:wildfly-swarm-plugin:jar:1.0.0.Alpha2-SNAPSHOT ->

        • 1. Re: swarm quickstart
          Yoshimasa Tanabe Newbie

          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
            ravi gupta Newbie

            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
              Yoshimasa Tanabe Newbie

              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
                ravi gupta Newbie

                '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
                  ravi gupta Newbie

                  disregard, all good from command line, it was an eclipse issue

                  • 6. Re: swarm quickstart
                    Yoshimasa Tanabe Newbie

                    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.