Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4269

Infinispan quickstarts clustered-cache does not compile

XMLWordPrintable

    • Hide

      mvn clean compile dependency:copy-dependencies -DstripVersion

      Show
      mvn clean compile dependency:copy-dependencies -DstripVersion
    • Interactive Demo/Tutorial

      Using https://github.com/infinispan/infinispan-quickstart and trying to build the clustered-cache example I get the following compilation error-

      [sappleto@localhost clustered-cache]$ mvn clean compile dependency:copy-dependencies -DstripVersion
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Infinispan Clustered Cache Quickstart 5.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ clustered-cache-quickstart —
      [INFO] Deleting /home/sappleto/git/infinispan-quickstart/clustered-cache/target
      [INFO]
      [INFO] — maven-resources-plugin:2.4.3:resources (default-resources) @ clustered-cache-quickstart —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ clustered-cache-quickstart —
      [INFO] Compiling 2 source files to /home/sappleto/git/infinispan-quickstart/clustered-cache/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/sappleto/git/infinispan-quickstart/clustered-cache/src/main/java/org/infinispan/quickstart/clusteredcache/Node.java:[126,13] cannot find symbol
      symbol : method sort(<anonymous java.util.Comparator<java.util.Map.Entry<java.lang.String,java.lang.String>>>)
      location: class java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>>
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.472s
      [INFO] Finished at: Tue May 06 15:36:48 BST 2014
      [INFO] Final Memory: 10M/102M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project clustered-cache-quickstart: Compilation failure
      [ERROR] /home/sappleto/git/infinispan-quickstart/clustered-cache/src/main/java/org/infinispan/quickstart/clusteredcache/Node.java:[126,13] cannot find symbol
      [ERROR] symbol : method sort(<anonymous java.util.Comparator<java.util.Map.Entry<java.lang.String,java.lang.String>>>)
      [ERROR] location: class java.util.ArrayList<java.util.Map.Entry<java.lang.String,java.lang.String>>
      [ERROR] -> [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/MojoFailureException

              dberinde@redhat.com Dan Berindei (Inactive)
              rhn-support-sappleton Shaun Appleton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: