Build Fails

Help
2007-08-09
2013-04-17
  • I am getting the following errors when trying to build.  Setting checkstyle.version=4.3 in default.properties does not get me much farther.

    C:\Temp\clearantlib-src-1.1.2>%ANT_HOME%\bin\ant.bat dist
    Buildfile: build.xml
    [artifact:dependencies] Downloading: checkstyle/checkstyle/${checkstyle.version}
    /checkstyle-${checkstyle.version}.pom
    [artifact:dependencies] An error has occurred while processing the Maven artifac
    t tasks.
    [artifact:dependencies]  Diagnosis:
    [artifact:dependencies]
    [artifact:dependencies] Unable to resolve artifact: Unable to get dependency inf
    ormation: Unable to read the metadata file for artifact 'checkstyle:checkstyle:j
    ar': Error getting POM for 'checkstyle:checkstyle' from the repository: Error tr
    ansferring file
    [artifact:dependencies]   checkstyle:checkstyle:pom:${checkstyle.version}
    [artifact:dependencies]
    [artifact:dependencies] from the specified remote repositories:
    [artifact:dependencies]   central (http://repo1.maven.org/maven2)
    [artifact:dependencies]
    [artifact:dependencies]   checkstyle:checkstyle:jar:${checkstyle.version}
    [artifact:dependencies]
    [artifact:dependencies] from the specified remote repositories:
    [artifact:dependencies]   central (http://repo1.maven.org/maven2)
    [artifact:dependencies] Path to dependency:
    [artifact:dependencies]         1) unspecified:unspecified:jar:0.0
    [artifact:dependencies]
    [artifact:dependencies]
    [artifact:dependencies]

    BUILD FAILED
    C:\Temp\clearantlib-src-1.1.2\build.xml:26: Unable to resolve artifact: Unable t
    o get dependency information: Unable to read the metadata file for artifact 'che
    ckstyle:checkstyle:jar': Error getting POM for 'checkstyle:checkstyle' from the
    repository: Error transferring file
      checkstyle:checkstyle:pom:${checkstyle.version}

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

      checkstyle:checkstyle:jar:${checkstyle.version}

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)
    Path to dependency:
            1) unspecified:unspecified:jar:0.0

    Total time: 3 seconds
    C:\Temp\clearantlib-src-1.1.2>

     
    • buildmeister
      buildmeister
      2007-08-13

      Do you have a library.properties file?

      This is the file that lists the versions of the third parties to use.
      It is on the trunk: http://clearantlib.svn.sourceforge.net/viewvc/clearantlib/trunk/

      Try getting/creating this file and see if the build works

      Kevin

       
      • I did not have the file, but the build is still not working.  It appears it is trying to download something.  Unfortunately I am behind a proxy.  Where do I configure my proxy?

        C:\Temp\clearantlib-src-1.1.2>%ANT_HOME%\bin\ant.bat dist
        Buildfile: build.xml
        [artifact:dependencies] Downloading: checkstyle/checkstyle/4.1/checkstyle-4.1.po
        m
        [artifact:dependencies] An error has occurred while processing the Maven artifac
        t tasks.
        [artifact:dependencies]  Diagnosis:
        [artifact:dependencies]
        [artifact:dependencies] Unable to resolve artifact: Unable to get dependency inf
        ormation: Unable to read the metadata file for artifact 'checkstyle:checkstyle:j
        ar': Error getting POM for 'checkstyle:checkstyle' from the repository: Error tr
        ansferring file
        [artifact:dependencies]   checkstyle:checkstyle:pom:4.1
        [artifact:dependencies]
        [artifact:dependencies] from the specified remote repositories:
        [artifact:dependencies]   central (http://repo1.maven.org/maven2)
        [artifact:dependencies]
        [artifact:dependencies]   checkstyle:checkstyle:jar:4.1
        [artifact:dependencies]
        [artifact:dependencies] from the specified remote repositories:
        [artifact:dependencies]   central (http://repo1.maven.org/maven2)
        [artifact:dependencies] Path to dependency:
        [artifact:dependencies]         1) unspecified:unspecified:jar:0.0
        [artifact:dependencies]
        [artifact:dependencies]
        [artifact:dependencies]

        BUILD FAILED
        C:\Temp\clearantlib-src-1.1.2\build.xml:26: Unable to resolve artifact: Unable t
        o get dependency information: Unable to read the metadata file for artifact 'che
        ckstyle:checkstyle:jar': Error getting POM for 'checkstyle:checkstyle' from the
        repository: Error transferring file
          checkstyle:checkstyle:pom:4.1

        from the specified remote repositories:
          central (http://repo1.maven.org/maven2)

          checkstyle:checkstyle:jar:4.1

        from the specified remote repositories:
          central (http://repo1.maven.org/maven2)
        Path to dependency:
                1) unspecified:unspecified:jar:0.0

        Total time: 4 seconds

         
    • buildmeister
      buildmeister
      2007-08-13

      The Ant tasks for Apache Maven are used to resolve and download the required versions of third party libraries to build against. If you are behind a firewall and need to setup a proxy then the instructions are as required for Maven to work:

      http://maven.apache.org/guides/mini/guide-proxies.html

      Have not tried this myself though...

      Kevin