Моя система: Windows 7 Ant Версия: 1.8.2 JDK: 1.6.27 x64
Извините, я начинаю работать с ant и сейчас пытаюсь правильно его установить.
Когда я набираю cmd, эта команда:
ant -f fetch.xml -Ddest=system
чтобы получить зависимости библиотеки, согласно официальной документации, я получаю следующие ошибки:
jspc:
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
jai:
[artifact:dependencies] Downloading: javax/media/jai-core/1.1.3/jai-core-1.1.3.p
om
[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 'javax.media:jai-core:ja
r': Error getting POM for 'javax.media:jai-core' from the repository: Error tran
sferring file
[artifact:dependencies] javax.media:jai-core:pom:1.1.3
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repository.jboss.org/maven2),
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies] javax.media:jai-core:jar:1.1.3
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repository.jboss.org/maven2),
[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] Server returned HTTP response code: 403 for URL: http://
repository.jboss.org/maven2/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
[artifact:dependencies]
BUILD FAILED
D:\work\ant_182\fetch.xml:309: The following error occurred while executing this
line:
D:\work\ant_182\fetch.xml:116: Unable to resolve artifact: Unable to get depende
ncy information: Unable to read the metadata file for artifact 'javax.media:jai-
core:jar': Error getting POM for 'javax.media:jai-core' from the repository: Err
or transferring file
javax.media:jai-core:pom:1.1.3
from the specified remote repositories:
remote (http://repository.jboss.org/maven2),
central (http://repo1.maven.org/maven2)
javax.media:jai-core:jar:1.1.3
from the specified remote repositories:
remote (http://repository.jboss.org/maven2),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) unspecified:unspecified:jar:0.0
Total time: 4 seconds
Я пробовал гуглить и не могу найти подходящего решения, кроме jasper-время выполнения -4.1.36.pom не доступен в репозитории. Может ли кто-нибудь указать мне, как это решить?
Я знаю, что это старый вопрос, но для тех, кто ищет решение, эта страница кратко объясняет его:
Кажется, что maven недоступен с вашей машины сборки. Можете ли вы использовать браузер на машине сборки и посмотреть, сможете ли вы получить доступ http://repo1.maven.org/maven2/ ?