[GraphHopper] R: Re: How to modify and rebuild GraphHopper.java (server side)

marcosi66 at virgilio.it marcosi66 at virgilio.it
Mon Feb 17 13:26:06 UTC 2014




  >Hey Marcosi,

      

      >it looks like your PARENT project already did not compile. We need
      the full logs to be helpful.

      

      > but when I do " ./graphhopper.sh web map.osm" nothing change

      

      >What do you mean here? What does not change?

---I mean that if I delete all the main code on graphhopper parent directory It still works and there isn't any warning/error, so I think that, as so you wrote, the problem is that I have to build the parent directory not the web directory but I didn't now how to do it.


      

      > I try to use the command "mvn clean war:war" on my
        project directory but there are so many error like this:

      

      >Maybe try: mvn clean install war:war

--I try but there and this the all risult:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] GraphHopper Parent Project
[INFO] GraphHopper
[INFO] GraphHopper Tools
[INFO] GraphHopper Android
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphHopper Parent Project 0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] GraphHopper Parent Project ........................ FAILURE [0.002s]
[INFO] GraphHopper ....................................... SKIPPED
[INFO] GraphHopper Tools ................................. SKIPPED
[INFO] GraphHopper Android ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.623s
[INFO] Finished at: Mon Feb 17 14:17:49 CET 2014
[INFO] Final Memory: 14M/158M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "istall". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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/LifecyclePhaseNotFoundException
lisa at mypc:~/graphhopper$ mvn clean install war:war
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] GraphHopper Parent Project
[INFO] GraphHopper
[INFO] GraphHopper Tools
[INFO] GraphHopper Android
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building GraphHopper Parent Project 0.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ graphhopper-parent ---
[INFO] Deleting file set: /home/lisa/graphhopper/target (included: [**], excluded: [])
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ graphhopper-parent ---
[INFO] 
[INFO] --- maven-failsafe-plugin:2.15:integration-test (default) @ graphhopper-parent ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-failsafe-plugin:2.15:verify (default) @ graphhopper-parent ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-install-plugin:2.3:install (default-install) @ graphhopper-parent ---
[INFO] Installing /home/lisa/graphhopper/pom.xml to /home/lisa/.m2/repository/com/graphhopper/graphhopper-parent/0.3-SNAPSHOT/graphhopper-parent-0.3-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-war-plugin:2.4:war (default-cli) @ graphhopper-parent ---
[INFO] Packaging webapp
[INFO] Assembling webapp [graphhopper-parent] in [/home/lisa/graphhopper/target/graphhopper-parent-0.3-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in [20 msecs]
[INFO] Building war: /home/lisa/graphhopper/target/graphhopper-parent-0.3-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] GraphHopper Parent Project ........................ FAILURE [1.392s]
[INFO] GraphHopper ....................................... SKIPPED
[INFO] GraphHopper Tools ................................. SKIPPED
[INFO] GraphHopper Android ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.048s
[INFO] Finished at: Mon Feb 17 14:18:01 CET 2014
[INFO] Final Memory: 15M/161M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.4:war (default-cli) on project graphhopper-parent: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) -> [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

Thank you.



      

      Regards,

      Peter.

      

      

    
    Hello
      everybody,

      I want to add a function to modify a file text that an user send
      me, to do that, first of all, I try to create a function to
      open/reader a file text in my GraphHopper.java file(in the
      GRaphhopper main project), but when I do " ./graphhopper.sh web
      map.osm" nothing change(even if I cancel all the code in
      GraohHopper.java) .... I try to use the command "mvn clean
        war:war" on my project directory but there are so many error
        like this:

        

        [INFO]
            Reactor Summary:

            [INFO] 

            [INFO] GraphHopper Parent Project ........................
            FAILURE [0.569s]

            [INFO] GraphHopper .......................................
            SKIPPED

            [INFO] GraphHopper Tools .................................
            SKIPPED

            [INFO] GraphHopper Android ...............................
            SKIPPED

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

            [INFO] BUILD FAILURE

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

            [INFO] Total time: 2.118s

            [INFO] Finished at: Mon Feb 17 12:42:18 CET 2014

            [INFO] Final Memory: 14M/162M

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

            [ERROR] Failed to execute goal
            org.apache.maven.plugins:maven-war-plugin:2.4:war
            (default-cli) on project graphhopper-parent: Error
            assembling WAR: webxml attribute is required (or
            pre-existing WEB-INF/web.xml if executing in update mode)
            -> [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

          

        

        What I have to do? And why there is this problem?

    
    

  





   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140217/3fe99af9/attachment.html>


More information about the GraphHopper mailing list