You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Rich chen <em...@gmail.com> on 2011/01/21 22:37:29 UTC

ant build for maven 2.2 source code failed

I tried to build maven 2.2 source, the maven build is good.
But when I use ant the build, I was blocked due to
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6

This jar is not even available when I use maven to build it.

Thanks


E:\Work\MavenBuild22\maven-2.2.x_ant>ant -Dhttp.proxyHost=gateway.bns
-Dhttp.pro
xyPort=8000
Buildfile: build.xml

clean-bootstrap:

initTaskDefs:

isMavenHomeSet:
     [echo] Using Maven home at: C:\apache-maven-2.2.2-RC1-SNAPSHOT

initLocalRepo:
     [echo] Using the local repository at: C:\Documents and
Settings\rrchen\.m2\
repository

init:
     [echo] maven.home = C:\apache-maven-2.2.2-RC1-SNAPSHOT
     [echo] maven.assembly =
E:\Work\MavenBuild22\maven-2.2.x_ant\apache-maven\t
arget\apache-maven-2.2.2-RC1-SNAPSHOT-bin.zip

read-poms:
     [copy] Copying 1 file to E:\Work\MavenBuild22\maven-2.2.x_ant
   [delete] Deleting: E:\Work\MavenBuild22\maven-2.2.x_ant\dependencies.xml

pull:
[artifact:dependencies] Downloading:
org/codehaus/plexus/plexus-utils/1.4/plexus
-utils-1.4.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Connection refused: connect
[artifact:dependencies] [WARNING] Unable to get resource
'org.codehaus.plexus:pl
exus-utils:pom:1.4' from repository central (http://repo1.maven.org/maven2):
Err
or transferring file: Connection refused: connect
[artifact:dependencies] Downloading:
org/codehaus/plexus/plexus-interactivity-ap
i/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.jar from repository
central a
t http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Connection refused: connect
[artifact:dependencies] [WARNING] Unable to get resource
'org.codehaus.plexus:pl
exus-interactivity-api:jar:1.0-alpha-6' from repository central (
http://repo1.ma
ven.org/maven2): Error transferring file: Connection refused: connect
[artifact:dependencies] An error has occurred while processing the Maven
artifac
t tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1)
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-
alpha-6
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project
web
site.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=
org.codehaus.pl
exus -DartifactId=plexus-interactivity-api -Dversion=1.0-alpha-6
-Dpackaging=jar
 -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you
can
 deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file
-DgroupId=org.codehaus.plex
us -DartifactId=plexus-interactivity-api -Dversion=1.0-alpha-6
-Dpackaging=jar -
Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]         1)
org.apache.maven:maven:pom:2.2.2-RC1-SNAPSHOT

[artifact:dependencies]         2)
org.apache.maven.wagon:wagon-ssh:jar:1.0-beta
-7
[artifact:dependencies]         3)
org.apache.maven.wagon:wagon-ssh-common:jar:1
.0-beta-7
[artifact:dependencies]         4)
org.codehaus.plexus:plexus-interactivity-api:
jar:1.0-alpha-6
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies]   org.apache.maven:maven:pom:2.2.2-RC1-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   apache.snapshots (
http://repository.apache.org/snapsho
ts),
[artifact:dependencies]   central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]

BUILD FAILED
E:\Work\MavenBuild22\maven-2.2.x_ant\build.xml:105: Unable to resolve
artifact:
Missing:
----------
1) org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus
-interactivity-api -Dversion=1.0-alpha-6 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:

      mvn deploy:deploy-file -DgroupId=org.codehaus.plexus
-DartifactId=plexus-i
nteractivity-api -Dversion=1.0-alpha-6 -Dpackaging=jar -Dfile=/path/to/file
-Dur
l=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.apache.maven:maven:pom:2.2.2-RC1-SNAPSHOT
        2) org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7
        3) org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-7
        4) org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6

----------
1 required artifact is missing.

for artifact:
  org.apache.maven:maven:pom:2.2.2-RC1-SNAPSHOT

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



Total time: 3 seconds
E:\Work\MavenBuild22\maven-2.2.x_ant>

Re: ant build for maven 2.2 source code failed

Posted by Benjamin Bentmann <be...@udo.edu>.
Rich chen wrote:

> org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-6
>
> This jar is not even available when I use maven to build it.

The JAR is out there:
http://uk.maven.org/maven2/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-6/

> E:\Work\MavenBuild22\maven-2.2.x_ant>ant -Dhttp.proxyHost=gateway.bns
> -Dhttp.proxyPort=8000
> [...]
> Error transferring file: Connection refused: connect

This looks more like a general network/proxy issue. Not sure whether the 
system properties are supposed to be supported, maybe you need to tweak 
the build.xml and add a proxy declaration [0] there.


Benjamin


[0] http://maven.apache.org/ant-tasks/reference.html#remoteRepository

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org