You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Thomas Leonard (JIRA)" <ji...@apache.org> on 2008/01/30 12:05:35 UTC

[jira] Commented: (BUILDR-2) Buildr fails to download Axis 1.4

    [ https://issues.apache.org/jira/browse/BUILDR-2?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563974#action_12563974 ] 

Thomas Leonard commented on BUILDR-2:
-------------------------------------

BTW, I'm not suggesting that buildr should silently pretend the jar has no dependencies and continue like Maven does. That just leads to unreliable builds.

But, there should be a way to flag that a particular artifact is known not to have a pom. Also, buildr should give a better error message.

> Buildr fails to download Axis 1.4
> ---------------------------------
>
>                 Key: BUILDR-2
>                 URL: https://issues.apache.org/jira/browse/BUILDR-2
>             Project: Buildr
>          Issue Type: Bug
>          Components: Dependency management
>    Affects Versions: 1.2.10
>            Reporter: Thomas Leonard
>            Assignee: Assaf Arkin
>             Fix For: 1.3
>
>
> We have a Maven 2 project with 76 pom.xml files. Due to random build failures, we're looking at alternatives. However, buildr fails to even create the buildfile. It seems that it doesn't like Axis 1.4.
> Steps to reproduce:
> 1. Create a new directory, containing a single pom.xml file:
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
>         <groupId>test-buildr</groupId>
>         <artifactId>test-buildr</artifactId>
>         <packaging>jar</packaging>
>         <name>Test Buildr</name>
>         <description>Test Buildr.</description>
>         <version>1.0</version>
>         <dependencies>
>                 <dependency>
>                         <groupId>axis</groupId>
>                         <artifactId>axis</artifactId>
>                         <version>1.4</version>
>                 </dependency>
>         </dependencies>
> </project>
> 2. Run "buildr".
> The output is:
> To use Buildr you need a buildfile. Do you want me to create one?:
> 1. From maven2 pom file
> 2. From directory structure
> 3. Skip
> ?  1
> Downloading axis:axis-jaxrpc:pom:1.4
> rake aborted!
> Failed to download axis:axis-jaxrpc:pom:1.4, tried the following repositories:
> http://www.ibiblio.org/maven2//
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:363:in `fail_download'
> (See full trace by running task with --trace)
> Creating a buildfile manually has the same effect. With --trace:
> ** Invoke generate (first_time)
> ** Execute generate
> To use Buildr you need a buildfile. Do you want me to create one?:
> 1. From maven2 pom file
> 2. From directory structure
> 3. Skip
> ?  1
> Loading m2 pom file from /home/tal/tmp/test-buildr/pom.xml
> ** Invoke /home/tal/.m2/repository/axis/axis/1.4/axis-1.4.pom (first_time, not_needed)
> Loading m2 pom file from /home/tal/.m2/repository/axis/axis/1.4/axis-1.4.pom
> ** Invoke /home/tal/.m2/repository/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom (first_time)
> ** Execute /home/tal/.m2/repository/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
> Downloading axis:axis-jaxrpc:pom:1.4
> Downloading axis:axis-jaxrpc:pom:1.4
> Requesting http://www.ibiblio.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
> Redirected to http://mirrors.ibiblio.org/pub/mirrors/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
> Requesting http://mirrors.ibiblio.org/pub/mirrors/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
> rake aborted!
> Failed to download axis:axis-jaxrpc:pom:1.4, tried the following repositories:
> http://www.ibiblio.org/maven2//
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:363:in `fail_download'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:328:in `download'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:258:in `initialize'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:30:in `load'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:27:in `load'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:83:in `dependencies'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:72:in `map'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:72:in `dependencies'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:83:in `dependencies'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:72:in `map'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/java/pom.rb:72:in `dependencies'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/generate.rb:145:in `from_maven2_pom'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/generate.rb:11
> /var/lib/gems/1.8/gems/highline-1.4.0/lib/highline/menu.rb:314:in `call'
> /var/lib/gems/1.8/gems/highline-1.4.0/lib/highline/menu.rb:314:in `select'
> /var/lib/gems/1.8/gems/highline-1.4.0/lib/highline.rb:309:in `choose'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/generate.rb:8
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `execute'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `synchronize'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:102:in `find_buildfile'
> /usr/lib/ruby/1.8/fileutils.rb:121:in `chdir'
> /usr/lib/ruby/1.8/fileutils.rb:121:in `chdir'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:102:in `find_buildfile'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:52:in `run'
> /var/lib/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'
> /var/lib/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:51:in `run'
> /var/lib/gems/1.8/gems/buildr-1.2.10/bin/buildr:7
> /usr/local/bin/buildr:16:in `load'
> /usr/local/bin/buildr:16
> However, doing "mvn install" in the directory downloads and runs everything fine. It seems that "http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom" doesn't exist. This isn't a problem for maven (it treats it as having no dependencies), but it seems to be a problem for buildr.
> Any idea how we can fix or work around this (without giving up transitive dependencies)?
> Thanks,

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.