2011-10-26 2 views
3

tomcat 7 maven plugin을 갖고 싶습니다. [plugin site] [1]의 지시를 따릅니다. 무슨 일이 있었는지는 tomcat 6.0.29를 찾을 수있는 것 같지만 버전 7은 찾을 수없는 것 같습니다. 바람둥이를 시험해 보았을 때 : 실행되었습니다. 시작된 버전은 6.0.29 버전입니다.tomcat 7 maven plugin 스냅 샷 저장소 문제?

지금까지 내가 아는 한, T7를위한 플러그인이 아직 개발하여 스냅 샷 버전이며, 내가 스냅 샷 플러그인에 대한 REPO를 제공 할 필요가 거라고 가정하고, 내가

<pluginRepository> 
     <id>tomcat snapshot</id> 
     <name>tomcat snapshot</name> 
     <url>http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/</url> 
    </pluginRepository> 
배치

하지만 내 tomcat : run -U (스냅 샷을 업데이트하기 위해) 6.x 버전이 실행 중일 때 변경 사항이없는 것 같습니다. 여기 내 MVN 바람둥이의 출력입니다 : 정보 -U : 어떤 도움을 주시면 감사하겠습니다

C:\Users\albert\workspace\BasicSetup>mvn tomcat:info -U 
[INFO] Scanning for projects... 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/tomcat/maven/tomcat7-maven-plugin/2.0-SNAPSHOT/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/tomcat/maven/tomcat7-maven-plugin/2.0-SNAPSHOT/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/tomcat/maven/tomcat7-maven-plugin/2.0-SNAPSHOT/tomcat7-maven-plugin-2.0-SNAPSHOT.pom 
[WARNING] The POM for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no d 
ependency information available 
[WARNING] Failed to retrieve plugin descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:2.0- 
SNAPSHOT: Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its dependencie 
s could not be resolved: Failed to read artifact descriptor for org.apache.tomcat.maven:tomcat7-mave 
n-plugin:jar:2.0-SNAPSHOT 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml 
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/codeha 
us/mojo/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/maven/plugins/maven-metadata.xml 
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml (11 KB at 6.1 
KB/sec) 
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml (18 KB at 10.7 KB/sec 
) 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/codeha 
us/mojo/tomcat-maven-plugin/maven-metadata.xml 
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/maven-metadata.xml 
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/maven-metadata.xml (
439 B at 0.1 KB/sec) 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building BasicSetup Maven Webapp 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/tomcat/maven/tomcat7-maven-plugin/2.0-SNAPSHOT/tomcat7-maven-plugin-2.0-SNAPSHOT.pom 
[WARNING] The POM for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no d 
ependency information available 
[WARNING] Failed to retrieve plugin descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:2.0- 
SNAPSHOT: Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its dependencie 
s could not be resolved: Failed to read artifact descriptor for org.apache.tomcat.maven:tomcat7-mave 
n-plugin:jar:2.0-SNAPSHOT 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/codeha 
us/mojo/maven-metadata.xml 
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/apache 
/maven/plugins/maven-metadata.xml 
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml 
Downloaded: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metadata.xml (11 KB at 6.0 
KB/sec) 
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml (18 KB at 4.4 KB/sec) 

Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tomcat/maven/org/codeha 
us/mojo/tomcat-maven-plugin/maven-metadata.xml 
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/maven-metadata.xml 
Downloaded: http://repo1.maven.org/maven2/org/codehaus/mojo/tomcat-maven-plugin/maven-metadata.xml (
439 B at 0.2 KB/sec) 
[INFO] 
[INFO] --- tomcat-maven-plugin:1.1:info (default-cli) @ BasicSetup --- 
[INFO] Listing server information at http://localhost:8080/manager 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 36.348s 
[INFO] Finished at: Wed Oct 26 14:28:40 ICT 2011 
[INFO] Final Memory: 5M/15M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:info (default-cli) on proje 
ct BasicSetup: Cannot invoke Tomcat manager: Connection refused: connect -> [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 arti 
cles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

..

+1

가능한 중복 Maven 2를 사용하여 Maven Tomcat Plugin으로 Tomcat 7을 실행하십시오.] (http://stackoverflow.com/questions/7801155/how-to-run-tomcat-7-with-maven-tomcat-plugin-using-maven-2) – palacsint

+0

@ palacsint 안녕, 생각 나게 해줘서 고마워. 어. 우리가 다른 문제를 다루고 있기 때문에 나는 이것을 게시하기 전에 그 링크를 읽었다. 무슨 메신저 어드레싱은 플러그인으로 t7 대신에 t6을 계속 실행하는지, 그리고 repo 문제인지 여부입니다. – bertie

답변

12

이 시도 : [방법의

<pluginRepository> 
    <id>apache.snapshots</id> 
    <name>Apache Snapshots</name> 
    <url>http://people.apache.org/repo/m2-snapshot-repository</url> 
    <releases> 
    <enabled>false</enabled> 
    </releases> 
    <snapshots> 
    <enabled>true</enabled> 
    </snapshots> 
</pluginRepository> 

http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html

+0

나는 그 링크를 놓친 것으로 믿을 수 없습니다. 고맙습니다. 지금 일하고있어! – bertie

+0

을 여기에 추가해야합니다. http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/usage.html –

+0

링크가 끊어졌습니다. 최신 버전의 플러그인은 다음 위치에 있습니다. https://repository.apache.org/content/repositories/snapshots/org/apache/tomcat/maven/tomcat7-maven-plugin/2.3-SNAPSHOT/ – Tomer