Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-6740

FIWARE.Question.Tech.Data.BigData-Analysis.how to compile cygnus 1.1.0 from sources?

    Details

      Description

      Created question in FIWARE Q/A platform on 07-06-2016 at 15:06
      Please, ANSWER this question AT http://stackoverflow.com/questions/37680260/how-to-compile-cygnus-1-1-0-from-sources

      Question:
      how to compile cygnus 1.1.0 from sources?

      Description:
      I follow the guide doing this steps:

      git clone https://github.com/telefonicaid/fiware-cygnus.git

      cd fiware-cygnus/cygnus-common

      mvn clean compile exec:exec assembly:single

      cp target/cygnus-common-1.1.0-jar-with-dependencies.jar /usr/cygnus/plugins.d/cygnus/libext

      mvn install:install-file -Dfile=/usr/cygnus/plugins.d/cygnus/libext/cygnus-common-1.1.0-jar-with-dependencies.jar -DgroupId=com.telefonica.iot -DartifactId=cygnus-common -Dversion=1.1.0 -Dpackaging=jar -DgeneratePom=false

      cp target/classes/cygnus-flume-ng /usr/cygnus/bin/cygnus-flume-ng

      cd ../cygnus-ngsi

      mvn clean compile exec:exec assembly:single

      but in the last step compiling cygnus-ngsi I'm getting the following error:

      OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building cygnus-ngsi 1.1.0
      [INFO] ------------------------------------------------------------------------
      [WARNING] The POM for com.telefonica.iot:cygnus-common:jar:1.1.0 is missing, no dependency information available
      [INFO]
      [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ cygnus-ngsi —
      [INFO]
      [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ cygnus-ngsi —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 2 resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.3.2:compile (default-compile) @ cygnus-ngsi —
      [INFO] Compiling 20 source files to /home/FiWare-VM014cen-Admin/fiware-cygnus/cygnus-ngsi/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] error: error reading /root/.m2/repository/com/telefonica/iot/cygnus-common/1.1.0/cygnus-common-1.1.0.jar; zip file is empty
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.953 s
      [INFO] Finished at: 2016-06-07T07:56:53-05:00
      [INFO] Final Memory: 9M/25M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project cygnus-ngsi: Compilation failure
      [ERROR] error: error reading /root/.m2/repository/com/telefonica/iot/cygnus-common/1.1.0/cygnus-common-1.1.0.jar; zip file is empty
      [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

      I installed maven following this guide with the recommended version in the docs(3.2.5) How do I install Maven with Yum?

      Flume is already installed from cygnus 0.13 that is what i want to upgrade to 1.1.0

      I also tried most of the answers from this topic Maven : error in opening zip file when running maven

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2016-06-07 18:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2016-06-07 18:05|CREATED monitor | # answers= 0, accepted answer= False

          People

          • Assignee:
            frb Francisco Romero
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: