Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in
repository daeati
이런 오류가 발생했다. 만약 maven 실행시 이런 오류가 발생했다면 지금 당신은 어처구니 없는 짓을 한거다.
PS D:\workspace\lotte_xcms\lottexcms> mvn hibernate3:hbm2doc
[INFO] Scanning for projects...
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) jdbc.artifact.groupid:jdbc-driver:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jdbc.artifact.groupid -DartifactId=jdbc-driver -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jdbc.artifact.groupid -DartifactId=jdbc-driver -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.daeati:lottexcms:war:0.0.1-SNAPSHOT
2) jdbc.artifact.groupid:jdbc-driver:jar:1.0
----------
1 required artifact is missing.
for artifact:
com.daeati:lottexcms:war:0.0.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
daeati (http://211.52.77.7:8081/nexus/content/groups/public)
[INFO] Scanning for projects...
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.pom
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:pom:1.0' in repository central (http://repo1.maven.org/maven2)
Downloading: http://211.52.77.7:8081/nexus/content/groups/public/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository daeati (http://211.52.77.7:8081/nexus/content/groups/public)
Downloading: http://repo1.maven.org/maven2/jdbc/artifact/groupid/jdbc-driver/1.0/jdbc-driver-1.0.jar
[INFO] Unable to find resource 'jdbc.artifact.groupid:jdbc-driver:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) jdbc.artifact.groupid:jdbc-driver:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=jdbc.artifact.groupid -DartifactId=jdbc-driver -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=jdbc.artifact.groupid -DartifactId=jdbc-driver -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.daeati:lottexcms:war:0.0.1-SNAPSHOT
2) jdbc.artifact.groupid:jdbc-driver:jar:1.0
----------
1 required artifact is missing.
for artifact:
com.daeati:lottexcms:war:0.0.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
daeati (http://211.52.77.7:8081/nexus/content/groups/public)
내가 했던 어처구니 없는 일을 풀어보노라면,,,,
좀전에 하이버네이트 플러그인을 사용하려고 다음의 의존성을 추가했다.
<dependency>
<groupId>jdbc.artifact.groupid</groupId>
<artifactId>jdbc-driver</artifactId>
<version>1.0</version>
</dependency>
<groupId>jdbc.artifact.groupid</groupId>
<artifactId>jdbc-driver</artifactId>
<version>1.0</version>
</dependency>
그리고 나서 이 오류가 발생했다. 즉, jdbc.artifact.groupid:jdbc-driver:jar:1.0 을 maven 저장소로부터 찾을 수 없다는 것이다.
그래서 코드하우스도 점검해보고, 메이븐 저장소를 샅샅이 찾았지만. 찾을 수 없다.
............
그렇다. 자신에게 맞는 jdbc 를 넣으세요(알아서 하세요요요요)
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.3.0</version>
</dependency>
를 추가했다. Success. 좀 부끄러워질 필요가 있다ㅡㅡ*