오픈 소스로 사업자등록번호의 상태를 조회하는 것을 하나 만들어봤다.
사실 이미 되어 있던 오픈 소스에 마이너한 내용을 컨트리뷰션하거나
혹은 회사에서 제공하는 private repository에 대해서만 작업 경험이 있어서 소스를 어떻게 해야할지 몰랐다.
그래서 Github으로 개인 Maven Repository 만들기 라는 포스팅을 보고 그대로 따라했다.
1 2 3 4 5 6 7 8 9 |
repositories { mavenCentral() maven { url = uri("https://github.com/freeism/businessRegistrationFinder/tree/master/releases") } } dependencies { ... implementation 'io.github.freeism:business-registration-finder:1.0.0.RELEASE' } |
그랬더니 아래와 같은 오류가 발생했다.
1 2 3 4 5 6 7 8 9 |
* What went wrong: Execution failed for task ':compileJava'. > Could not resolve all files for configuration ':compileClasspath'. > Could not resolve io.github.freeism:business-registration-finder:1.0.0.RELEASE. Required by: project : > Could not resolve io.github.freeism:business-registration-finder:1.0.0.RELEASE. > Could not parse POM https://github.com/freeism/businessRegistrationFinder/tree/master/releases/io/github/freeism/business-registration-finder/1.0.0.RELEASE/business-registration-finder-1.0.0.RELEASE.pom > doctype이 이미 표시되었습니다. |
영어로는 already doctype seen
이라고 하는데… 아무리 찾아도 적당한 솔루션이 없었다.
혹시나 해서 curl
을 했더니 엄청난 html 스크립트가 올라간다. 아!! github 페이지가 통째로 호출됐구나 ㅠ.ㅠ
1 2 3 4 |
repositories { mavenCentral() maven { url = uri("https://raw.githubusercontent.com/freeism/businessRegistrationFinder/master/releases") } } |
github.com
을 raw.githubusercontent.com
으로 수정했더니 정상적으로 dependency를 가져온다.