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

์ด ๋ณ€๊ฒฝ์‚ฌํ•ญ์œผ๋กœ ์˜์กด์„ฑ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๋งŒ์•ฝ ๋‹ค๋ฅธ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๋ฉด ์•Œ๋ ค์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

github issue

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