Announcement

Collapse
No announcement yet.

Projekt - "Traveling Salesman" - Maven 2

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Projekt - "Traveling Salesman" - Maven 2

    Hallo,

    ich versuche zur Zeit mit NetBeans IDE 7.0.1 das Teilprojekt https://travelingsales.svn.sourceforge.net/svnroot/travelingsales/trunk/libosm/ von Traveling Salesman zu kompilieren. Bis zum kompilieren komme ich aber erst gar nicht, weil Maven ein paar Dinge anmeckert.

    Weiß jemand von euch wie man die folgenden Probleme auflöst?

    Code:
    cd D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\libosm; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.6.0_25" "\"C:\\Program Files\\NetBeans 7.0.1\\java\\maven\\bin\\mvn.bat\"" install
    Scanning for projects...
    
    Some problems were encountered while building the effective model for net.sourceforge.travelingsales:libosm:jar:2.5.2-RC1-SNAPSHOT
    'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 99, column 21
    'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 115, column 21
    'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 125, column 21
    'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 134, column 21
    'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-changelog-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 146, column 21
    'repositories.repository.layout' for astrogrid uses the unsupported value 'legacy', artifact resolution might fail. @ line 106, column 21
    
    It is highly recommended to fix these problems because they threaten the stability of your build.
    
    For this reason, future Maven versions might no longer support building such malformed projects.
    
                                                                            
    ------------------------------------------------------------------------
    Building TravelingSalesman - LibOSM 2.5.2-RC1-SNAPSHOT
    ------------------------------------------------------------------------
    ------------------------------------------------------------------------
    BUILD FAILURE
    ------------------------------------------------------------------------
    Total time: 2.534s
    Finished at: Mon Sep 26 21:23:50 CEST 2011
    Final Memory: 2M/15M
    ------------------------------------------------------------------------
    Failed to execute goal on project libosm: Could not resolve dependencies for project net.sourceforge.travelingsales:libosm:jar:2.5.2-RC1-SNAPSHOT: Failed to collect dependencies for [mysql:mysql-connector-java:jar:5.0.7 (compile), org.openstreetmap.osmosis:osmosis:jar:0.35-20100225 (compile), hsqldb:hsqldb:jar:1.8.0.10 (compile), l2fprod:l2fprod-common-all:jar:7.3 (compile), com.h2database:h2:jar:1.3.154 (compile), junit:junit:jar:4.4 (test)]: Failed to read artifact descriptor for l2fprod:l2fprod-common-all:jar:7.3: Could not transfer artifact l2fprod:l2fprod-common-all:pom:7.3 from/to astrogrid (http://www.astrogrid.org/maven): No connector available to access repository astrogrid (http://www.astrogrid.org/maven) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
    
    To see the full stack trace of the errors, re-run Maven with the -e switch.
    Re-run Maven using the -X switch to enable full debug logging.
    
    For more information about the errors and possible solutions, please read the following articles:
    [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

  • #2
    Diese Bibliothek

    net.sourceforge.travelingsales:libosm:jar:2.5.2-RC1-SNAPSHOT

    ist nicht vohanden ev. nur mit einer falschen Version

    Zeige deine Pom(s)

    Christian

    Comment


    • #3
      Hi, die POM-Datei liegt hier https://travelingsales.svn.sourcefor...libosm/pom.xml.

      Comment


      • #4
        Das Projekt traveling salesman habe ich nun in Eclipse mit m2e geöffnet mit folgendem Erfolg:

        Code:
        [INFO] Scanning for projects...
        [WARNING] 
        [WARNING] Some problems were encountered while building the effective model for net.sourceforge.travelingsales:libosm:jar:2.5.2-RC1-SNAPSHOT
        [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 99, column 21
        [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-jxr-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 115, column 21
        [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-checkstyle-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 125, column 21
        [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-report-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 134, column 21
        [WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-changelog-plugin is missing. @ net.sourceforge.travelingsales.all:all:2.5.2-RC1-SNAPSHOT, D:\Entwicklung\Projekte\TravelingSalesman\travelingsales\trunk\pom.xml, line 146, column 21
        [WARNING] 'repositories.repository.layout' for astrogrid uses the unsupported value 'legacy', artifact resolution might fail. @ line 106, column 21
        [WARNING] 
        [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
        [WARNING] 
        [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
        [WARNING] 
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 1.423s
        [INFO] Finished at: Wed Sep 28 22:15:32 CEST 2011
        [INFO] Final Memory: 4M/15M
        [INFO] ------------------------------------------------------------------------
        [ERROR] No goals have been specified for this build. 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-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/NoGoalSpecifiedException
        Es kommen immer soiviele schön klingende Hinweise, aber ich kann aus und mit dem ganzen Informationshaufen keine Lösung finden. Mit Maven habe ich noch nicht viel angestellt. Diese Links habe ich bereits besucht http://maven.apache.org/guides/getti...e-minutes.html, http://maven.apache.org/guides/getti...ted/index.html

        Comment


        • #5
          In dem Ausgabeprotokoll steht doch die Zeile

          Code:
          Failed to read artifact descriptor for l2fprod:l2fprod-common-all:jar:7.3: Could not transfer artifact l2fprod:l2fprod-common-all:pom:7.3 from/to astrogrid (http://www.astrogrid.org/maven): No connector available to access repository astrogrid (http://www.astrogrid.org/maven) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
          in astrogrid scheint er l2fprod nicht zu finden. Hier steht aber das jar http://www.astrogrid.org/maven/l2fprod/jars/
          Und hier steht l2fprod mit den Quellen http://java.net/projects/l2fprod-com...ON_7_3?rev=673

          Ist es notwendig das man Maven beibringt das Repository des zweiten Links zu nehmen oder reicht der erste aus? Wie kann man Maven das beibringen?

          Comment


          • #6
            Die Fehlermeldung gibt doch recht viele Informationen her.
            Code:
            Failed to read artifact descriptor for l2fprod:l2fprod-common-all:jar:7.3: Could not transfer artifact l2fprod:l2fprod-common-all:pom:7.3 from/to astrogrid (http://www.astrogrid.org/maven): No connector available to access repository astrogrid (http://www.astrogrid.org/maven) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
            Ich verwende Maven 3.x und mit dieser Version ist es nicht möglich auf Repositorys mit
            Code:
            <layout>legacy</layout>
            zuzugreifen. Ganz am Ende des ersten Code-Blocks steht der entscheidene Hinweis. Hinweis in Doku

            Also entwender man lässt das Projekt mit einer älteren Maven-Version erstellen oder man findet heraus wie man mit Maven 3.x das Projekt erstellt. Mich interessiert die letzte Variante. Könnte jemand eine kurze Anleitung geben? Natürlich versuche ich es anhand der umfangreichen Dokus und Suchergebnise von Google selber herauszufinden, aber vielleicht kommt mir jemand netterweise zuvor. Danke.

            Comment

            Working...
            X