20250207_Build_Error_case_1 - chaehwanli/plantuml-parser GitHub Wiki
soluiton 1
C:\GitHubRepo\plantuml_parser\plantuml-parser\build.gradle
repositories {
mavenCentral()
// Added
maven {
url "https://plugins.gradle.org/m2/org/jetbrains/" // ์ฌ๋ฐ๋ฅธ URL๋ก ๋ณ๊ฒฝํ์ธ์.
}
//
}
=> ์ด๊ฑด ์คํจ
์์ ์ฒ๋ฐฉ
settings.gradle ์์ plantuml-parser-plugin ์ ์ฐ์ disable
//include 'plantuml-parser-plugin'
๋น๋์๋ฌ ์์
์๋ฌ ๋ฉ์์ง๋ฅผ ๋ณด๋ IntelliJ ํ๋ฌ๊ทธ์ธ ๊ด๋ จ ์์กด์ฑ์ ์ฐพ์ง ๋ชปํ๋ ๋ฌธ์ ๋ค์. ์ด๋ Gradle IntelliJ ํ๋ฌ๊ทธ์ธ ๋ฒ์ ๊ณผ ๊ด๋ จ๋ ๋ฌธ์ ์ ๋๋ค. ๋ค์๊ณผ ๊ฐ์ด plantuml-parser-plugin/build.gradle ํ์ผ์ ์์ ํด๋ณด์ธ์:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.13.3' // ํ๋ฌ๊ทธ์ธ ๋ฒ์ ์
๋ฐ์ดํธ
}
// ... existing code ...
intellij {
pluginName.set('plantuml-parser')
version.set('2020.1') // ์๋ก์ด ๋ฌธ๋ฒ์ผ๋ก ๋ณ๊ฒฝ
type.set('IU') // ์๋ก์ด ๋ฌธ๋ฒ์ผ๋ก ๋ณ๊ฒฝ
downloadSources = false
updateSinceUntilBuild = false
plugins.set(['org.jetbrains.kotlin']) // ์๋ก์ด ๋ฌธ๋ฒ์ผ๋ก ๋ณ๊ฒฝ
}
// ... existing code ...
์ฃผ์ ๋ณ๊ฒฝ์ฌํญ: IntelliJ Gradle ํ๋ฌ๊ทธ์ธ ๋ฒ์ ์ ์ต์ ์์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธ intellij ๋ธ๋ก์ ์ค์ ์ ์๋ก์ด DSL ๋ฌธ๋ฒ์ผ๋ก ๋ณ๊ฒฝ ์ด๋ ๊ฒ ์์ ํ ํ ๋ค์ ๋น๋๋ฅผ ์๋ํด๋ณด์ธ์:
./gradlew clean
./gradlew build
์ด ๋ณ๊ฒฝ์ฌํญ์ผ๋ก ์์กด์ฑ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋ ๊ฒ์ ๋๋ค. ๋ง์ฝ ๋ค๋ฅธ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด ์๋ ค์ฃผ์๊ธฐ ๋ฐ๋๋๋ค.
Error Msg
./gradlew.bat build
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':plantuml-parser-plugin'.
> Could not resolve all files for configuration ':plantuml-parser-plugin:classpath'.
> Could not find org.jetbrains.intellij.plugins:structure-base:3.139.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/jetbrains/intellij/plugins/structure-base/3.139/structure-base-3.139.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :plantuml-parser-plugin > org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:0.6.5 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.6.5
> Could not find org.jetbrains.intellij.plugins:structure-intellij:3.139.
Searched in the following locations:
- https://plugins.gradle.org/m2/org/jetbrains/intellij/plugins/structure-intellij/3.139/structure-intellij-3.139.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :plantuml-parser-plugin > org.jetbrains.intellij:org.jetbrains.intellij.gradle.plugin:0.6.5 > org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.6.5
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s