在存储库中找不到 Grails maven 插件

问题描述 投票:0回答:0

我正在尝试将我的 grails-maven-plugin 从 2.4.6 更新到 4.0.3 并出现以下错误。 https://repo.maven.apache.org/maven2 似乎只有 2.4.6 版本

Unresolveable build extension: Plugin org.grails:grails-maven-plugin:4.0.3 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.grails:grails-maven-plugin:jar:4.0.3 (absent): Could not find artifact org.grails:grails-maven-plugin:jar:4.0.3 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[ERROR]     Unknown packaging: grails-plugin @ line 9, column 16

我该怎么做才能解决这个问题?

pom.xml 具有以下插件配置

<plugin>
                <groupId>org.grails</groupId>
                <artifactId>grails-maven-plugin</artifactId>
                <version>4.0.3</version>
                <configuration>
                    <grailsVersion>${grails.version}</grailsVersion>
                    <webXml>${basedir}/web.xml</webXml>
                    <fork>true</fork>
                    <forkOptions>
                        <executable>java</executable>
                        <argLine>-Xmx1024m -Xms1024m -XX:MaxPermSize=256m</argLine>
                    </forkOptions>
                    <webdriverBinaries>
                        <chromedriver>
                            <version>79.0.3945.36</version>
                            <architecture>${env.CIRCLECI != null ? 'X86_64' : (Environment.current == Environment.DEVELOPMENT || Environment.current == Environment.TEST) ? 'X86' : 'X86_64'}</architecture>
                        </chromedriver>
                        <geckodriver>0.24.0</geckodriver>
                    </webdriverBinaries>
                </configuration>
                <extensions>true</extensions>
                <executions>
                    <execution>
                        <goals>
                            <goal>init</goal>
                            <goal>maven-clean</goal>
                            <goal>validate</goal>
                            <goal>config-directories</goal>
                            <goal>maven-compile</goal>
                            <goal>maven-test</goal>
                            <goal>maven-war</goal>
                            <goal>maven-functional-test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

enter code here
java maven grails pom.xml
© www.soinside.com 2019 - 2024. All rights reserved.