|
|
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Написал приложение с использованием build tool-а maven, запускаю на другом компьютере его - вылетает ошибка: авторERROR] Failed to execute goal on project SpringMVC: Could not resolve dependencies for project com.mkyong.common:SpringMVC:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-core:jar:3.0.5.RELEASE, org.springframework:spring-context-support:jar:3.0.5.RELEASE: Could not transfer artifact org.springframework:spring-core:jar:3.0.5.RELEASE from/to central ( http://repo.maven.apache.org/maven2): No response received after 60000 -> [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/d...utionException pom.xml: автор<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>com.mkyong.common</groupId> <artifactId>SpringMVC</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>SpringMVC Maven Webapp</name> <url> http://maven.apache.org</url> <properties> <spring.version>3.0.5.RELEASE</spring.version> </properties> <dependencies> <!-- Spring 3 dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <!-- for compile only, your container should have this <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> --> <!-- <dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>${spring.version}</version> </dependency> --> </dependencies> <build> <finalName>SpringMVC</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> </project> P.S. С maven - новичок. P.S.S. ~/.m2/repository чистил ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 15:54:20 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Код: powershell 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 16:29:37 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
потом Код: powershell 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 16:41:23 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Банальный тайм-аут. Неужели трудно выхлоп прочитать ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 18:09:31 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
забыл никБанальный тайм-аут. Неужели трудно выхлоп прочитать а почему он случается? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 20:27:24 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Очень_Любопытныйзабыл никБанальный тайм-аут. Неужели трудно выхлоп прочитать а почему он случается? К джаве вообще никаким боком. У вас интернет барахлит, возможно файрвол прокси и тп ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 21:11:02 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
забыл ник, При написании кода много раз приходилось импортировать проект "пример" он как то постоянно с проблемами импортировался в eclipse, а сейчас вообще перестал импортироваться я делаю просто import-> existing maven project в итоге при mvn install вижу error-ы: автор[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project SpringMVC1: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar [ERROR] Please ensure you are using JDK 1.4 or above and [ERROR] not a JRE (the com.sun.tools.javac.Main class is required). [ERROR] In most cases you can change the location of your Java [ERROR] installation by setting the JAVA_HOME environment variable. [ERROR] -> [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/MojoFailureException код точно рабочий -каждый раз его из архива распаковываю.ё ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 21:25:13 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
JAVA_HOME указывает на jdk ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 21:33:36 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Очень_Любопытный, JAVA_HOME конечно хорошо, но интегрированный с эклипсом мавен вроде бы из него берет jre/jdk, так что укажи точно в Window/Preferences/Java/Installed JREs ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 21:53:32 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Очень_Любопытный, у тебя jre, мавен просит jdk ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 22:34:37 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
забыл ник, эта графа называется jre, тут можно только jre указать. где jdk указать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 23:23:03 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
сам себе отвечу http://nofate.name/eclipse-maven-jdk-path/ вопрос только в том, почему несколько часов назад на этой же машине всё прекрасно работало. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.07.2013, 23:31:07 |
|
||
|
проблеима с maven
|
|||
|---|---|---|---|
|
#18+
Может в настройках проекта было прописано использование JDK? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.07.2013, 09:00:18 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38323037&tid=2129022]: |
0ms |
get settings: |
8ms |
get forum list: |
20ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
37ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
69ms |
get tp. blocked users: |
2ms |
| others: | 341ms |
| total: | 502ms |

| 0 / 0 |
