Maven설치 오류
아래와 같이 Maven 설치작업중에 오류가 발생하니 확인바랍니다.
1. Foundation Plugin 설치
mvn archetype:generate
-DarchetypeCatalog="http://dev.anyframejava.org/maven/repo/archetype-catalog.xml"
오류메세지 일부 (아래와 같이 해당 경로에 pom 파일을 찾을수 없어 maven repository가 생성되지 않습니다)
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/org/apa
che/maven/maven-plugin-descriptor/2.0.8/maven-plugin-descriptor-2.0.8.pom
[INFO] Unable to find resource 'org.apache.maven:maven-plugin-descriptor:pom:2.0
.8' in repository anyframe-plugin (http://dev.anyframejava.org/artifactory/anyfr
ame-repository)
Downloading: http://www.ibiblio.org/maven2/plugins/org/apache/maven/maven-plugin
-descriptor/2.0.8/maven-plugin-descriptor-2.0.8.pom
[INFO] Unable to find resource 'org.apache.maven:maven-plugin-descriptor:pom:2.0
.8' in repository central (http://www.ibiblio.org/maven2/plugins)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-descrip
tor/2.0.8/maven-plugin-descriptor-2.0.8.pom
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/org/apa
che/maven/maven-monitor/2.0.8/maven-monitor-2.0.8.pom
[INFO] Unable to find resource 'org.apache.maven:maven-monitor:pom:2.0.8' in rep
ository anyframe-plugin (http://dev.anyframejava.org/artifactory/anyframe-reposi
tory) ...
Plugin 목록을 확인하면 아래와 같이 오류 발생,
이후 Eclipse 내로 import한 이후 해당 프로젝트에 대해 마우스 오른쪽 버튼을 클릭하여 컨텍스트 메뉴에서 Maven > Enable Dependency Management를 선택해도 관련 오류 계속 발생합니다.
D:\anyframe>mvn anyframe:list
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'anyframe'.
[INFO] artifact org.codehaus.mojo:anyframe-maven-plugin: checking for updates fr
om anyframe-plugin
[INFO] artifact org.codehaus.mojo:anyframe-maven-plugin: checking for updates fr
om central
[INFO] artifact org.codehaus.mojo:anyframe-maven-plugin: checking for updates fr
om remote
[INFO] snapshot org.codehaus.mojo:anyframe-maven-plugin:4.5.0-SNAPSHOT: checking
for updates from anyframe-plugin
[INFO] snapshot org.codehaus.mojo:anyframe-maven-plugin:4.5.0-SNAPSHOT: checking
for updates from central
[INFO] snapshot org.codehaus.mojo:anyframe-maven-plugin:4.5.0-SNAPSHOT: checking
for updates from remote
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/org/cod
ehaus/mojo/anyframe-maven-plugin/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAP
SHOT.pom
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/org/cod
ehaus/mojo/anyframe-maven-plugin/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAP
SHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository anyframe-plugin (http://dev.anyframejava.org/
artifactory/anyframe-repository)
Downloading: http://www.ibiblio.org/maven2/plugins/org/codehaus/mojo/anyframe-ma
ven-plugin/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository central (http://www.ibiblio.org/maven2/plugin
s)
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/anyframe-maven-plug
in/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository remote (http://repo1.maven.org/maven2)
[INFO] Cannot find mojo descriptor for: 'anyframe:list' - Treating as non-aggreg
ator.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [anyframe:list]
[INFO] ------------------------------------------------------------------------
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/org/cod
ehaus/mojo/anyframe-maven-plugin/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAP
SHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository anyframe-plugin (http://dev.anyframejava.org/
artifactory/anyframe-repository)
Downloading: http://www.ibiblio.org/maven2/plugins/org/codehaus/mojo/anyframe-ma
ven-plugin/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository central (http://www.ibiblio.org/maven2/plugin
s)
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/anyframe-maven-plug
in/4.5.0-SNAPSHOT/anyframe-maven-plugin-4.5.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.codehaus.mojo:anyframe-maven-plugin:maven-pl
ugin:4.5.0-SNAPSHOT' in repository remote (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that t
he goal name is correct: Unable to download the artifact from any repository
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.mojo -DartifactId=anyframe-m
aven-plugin -Dversion=4.5.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/fi
le
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.codehaus.mojo -DartifactId=anyframe-mav
en-plugin -Dversion=4.5.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]
org.codehaus.mojo:anyframe-maven-plugin:maven-plugin:4.5.0-SNAPSHOT
from the specified remote repositories:
central (http://www.ibiblio.org/maven2/plugins),
remote (http://repo1.maven.org/maven2),
anyframe-plugin (http://dev.anyframejava.org/artifactory/anyframe-repository)
org.codehaus.mojo:anyframe-maven-plugin:maven-plugin:4.5.0-SNAPSHOT
from the specified remote repositories:
central (http://www.ibiblio.org/maven2/plugins),
remote (http://repo1.maven.org/maven2),
anyframe-plugin (http://dev.anyframejava.org/artifactory/anyframe-repository)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Sat May 15 21:50:55 GMT+09:00 2010
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------


archetype를 생성한 후, 만드시 해당
archetype를 생성한 후, 만드시 해당 프로젝트로 directory를 이동한 후에 anyframe:list를 하시어야 합니디.
다음은 제가 테스트를 해 본 결과이나, 참조하시기 바랍니다.
CJs-Mac:temp Blue$ mvn archetype:generate -DarchetypeCatalog="http://dev.anyframejava.org/maven/repo/archetype-catalog.xml"
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://dev.anyframejava.org/maven/repo/archetype-catalog.xml -> anyframe.plugin.foundation (foundation plugin (latest release is 4.1.0))
Choose a number: : 1
Choose version:
1: 4.0.0
2: 4.1.0
Choose a number: : 2
Downloading: http://dev.anyframejava.org/maven/repo/anyframe/anyframe.plugin.foundati...
754K downloaded (anyframe.plugin.foundation-4.1.0.jar)
Define value for property 'groupId': : myapp
Define value for property 'artifactId': : myproject2
Define value for property 'version': 1.0-SNAPSHOT:
Define value for property 'package': myapp:
Confirm properties configuration:
groupId: myapp
artifactId: myproject2
version: 1.0-SNAPSHOT
package: myapp
Y:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58 seconds
[INFO] Finished at: Sun May 16 23:08:55 KST 2010
[INFO] Final Memory: 16M/79M
[INFO] ------------------------------------------------------------------------
CJs-Mac:temp Blue$ cd myproject2
CJs-Mac:myproject2 Blue$ mvn anyframe:list
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building A custom project
[INFO] task-segment: [anyframe:list]
[INFO] ------------------------------------------------------------------------
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/anyframe/any...
1K downloaded (anyframe.command.cli-4.1.0.pom)
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/anyframe/any...
3K downloaded (anyframe.command.common-4.1.0.pom)
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/anyframe/any...
6K downloaded (anyframe.command.cli-4.1.0.jar)
Downloading: http://dev.anyframejava.org/artifactory/anyframe-repository/anyframe/any...
44K downloaded (anyframe.command.common-4.1.0.jar)
[INFO] [anyframe:list {execution: default-cli}]
pluginName | version | installed
-------------------------------------------------------------------------------
foundation | 4.1.0 | O
cache | 4.1.0 | X
cxf | 4.1.0 | X
dynamicmodule | 4.1.0 | X
hibernate | 4.1.0 | X
jasper | 4.1.0 | X
miplatform | 4.1.0 | X
remoting | 4.1.0 | X
scheduling | 4.1.0 | X
spring-optional | 4.1.0 | X
struts | 4.1.0 | X
test | 4.1.0 | X
webflow | 4.1.0 | X
mipsample | 4.1.0 | X
security | 4.1.0 | X
monitoring | 4.1.0 | X
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Sun May 16 23:09:15 KST 2010
[INFO] Final Memory: 16M/79M
[INFO] ------------------------------------------------------------------------
CJs-Mac:myproject2 Blue$