Skip to content

Cannot execute changes using graphhopper.sh #568

Closed

Description

@boldtrn

Hi,

I just checked out the current stat from the repository.

When I change something in the graphhopper core it run:

./graphhopper.sh clean
./graphhopper.sh web europe_germany_berlin.pbf

But my changes do not show up. I have the feeling that maven uses the snapshot from the repository and not my local version. Is this a known issue? I think this worked on my machine before I checked out the sources again.

Activity

  1. karussell commented on Nov 23, 2015

    @karussell
    Member

    Oh, this could be introduced in #562 ... can you check that after clean the core/target is empty and after the web command that there is a jar file?

  2. boldtrn commented on Nov 23, 2015

    @boldtrn
    MemberAuthor

    After executing the web command no core/target folder is created.

  3. karussell commented on Nov 23, 2015

    @karussell
    Member

    Okay, then my assumption for the --projects option was wrong. We need to fix that. As a temporary workaround just do --projects web,core,tools-lgpl for the web command (line ~226 of graphhopper.sh)

  4. boldtrn commented on Nov 23, 2015

    @boldtrn
    MemberAuthor

    Thanks, the workaround worked for me, but I had to remove tools-lgpl from the list. So I added only: --projects web,core

    When I add tools-pgpl, I get the following error:

    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO] 
    [INFO] GraphHopper Tools LGPL licensed
    [INFO] GraphHopper
    [INFO] GraphHopper Web
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building GraphHopper Tools LGPL licensed 0.6-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ graphhopper-tools-lgpl ---
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ graphhopper-tools-lgpl ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /Users/robin/workspace/graphhopper/tools-lgpl/src/main/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ graphhopper-tools-lgpl ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 1 source file to /Users/robin/workspace/graphhopper/tools-lgpl/target/classes
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ graphhopper-tools-lgpl ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /Users/robin/workspace/graphhopper/tools-lgpl/src/test/resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ graphhopper-tools-lgpl ---
    [INFO] No sources to compile
    [INFO] 
    [INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ graphhopper-tools-lgpl ---
    [INFO] Tests are skipped.
    [INFO] 
    [INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ graphhopper-tools-lgpl ---
    [INFO] Building jar: /Users/robin/workspace/graphhopper/tools-lgpl/target/graphhopper-tools-lgpl-0.6-SNAPSHOT.jar
    [INFO] 
    [INFO] --- maven-failsafe-plugin:2.18.1:integration-test (default) @ graphhopper-tools-lgpl ---
    [INFO] Tests are skipped.
    [INFO] 
    [INFO] --- maven-failsafe-plugin:2.18.1:verify (default) @ graphhopper-tools-lgpl ---
    [INFO] Tests are skipped.
    [INFO] 
    [INFO] --- maven-install-plugin:2.4:install (default-install) @ graphhopper-tools-lgpl ---
    [INFO] Installing /Users/robin/workspace/graphhopper/tools-lgpl/target/graphhopper-tools-lgpl-0.6-SNAPSHOT.jar to /Users/robin/.m2/repository/com/graphhopper/graphhopper-tools-lgpl/0.6-SNAPSHOT/graphhopper-tools-lgpl-0.6-SNAPSHOT.jar
    [INFO] Installing /Users/robin/workspace/graphhopper/tools-lgpl/pom.xml to /Users/robin/.m2/repository/com/graphhopper/graphhopper-tools-lgpl/0.6-SNAPSHOT/graphhopper-tools-lgpl-0.6-SNAPSHOT.pom
    [INFO] 
    [INFO] --- maven-assembly-plugin:2.5.5:single (default-cli) @ graphhopper-tools-lgpl ---
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] GraphHopper Tools LGPL licensed .................... FAILURE [  3.399 s]
    [INFO] GraphHopper ........................................ SKIPPED
    [INFO] GraphHopper Web .................................... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 3.904 s
    [INFO] Finished at: 2015-11-23T13:42:45+01:00
    [INFO] Final Memory: 18M/958M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.5:single (default-cli) on project graphhopper-tools-lgpl: Error reading assemblies: No assembly descriptors found. -> [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/MojoExecutionException
    
  5. karussell commented on Nov 23, 2015

    @karussell
    Member

    Ah, yes. That is ugly as the specific web mvn command creates an assembly and the tools-lgpl has no. So a two stage process is necessary: building the core&tools-lgpl without assembly and then tools&web with one. Uff ;)

  6. added this to the 0.6 milestone on Nov 23, 2015
  7. karussell commented on Nov 25, 2015

    @karussell
    Member

    It looks like -am is the solution

  8. karussell commented on Nov 25, 2015

    @karussell
    Member

    Should be fixed now, please reopen if not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions