编程语言
首页 > 编程语言> > java – Spring Roo项目找不到org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT

java – Spring Roo项目找不到org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT

作者:互联网

我通过spring-roo生成了一个primefaces项目.第一件事是在不触及生成的代码的情况下调用以下命令:

mvn jetty:run

Maven给出了一个错误,指出它无法找到org.springframework.roo:org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT依赖项.该项目包含以下存储库:

    <repositories>
    <repository>
        <id>spring-maven-release</id>
        <name>Spring Maven Release Repository</name>
        <url>http://maven.springframework.org/release</url>
    </repository>
    <repository>
        <id>spring-maven-milestone</id>
        <name>Spring Maven Milestone Repository</name>
        <url>http://maven.springframework.org/milestone</url>
    </repository>
    <repository>
        <id>spring-roo-repository</id>
        <name>Spring Roo Repository</name>
        <url>http://spring-roo-repository.springsource.org/release</url>
    </repository>
    <repository>
        <id>prime-repo</id>
        <url>http://repository.primefaces.org</url>
        <name>PrimeFaces Maven Repository</name>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>spring-maven-release</id>
        <name>Spring Maven Release Repository</name>
        <url>http://maven.springframework.org/release</url>
    </pluginRepository>
    <pluginRepository>
        <id>spring-maven-milestone</id>
        <name>Spring Maven Milestone Repository</name>
        <url>http://maven.springframework.org/milestone</url>
    </pluginRepository>
    <pluginRepository>
        <id>spring-roo-repository</id>
        <name>Spring Roo Repository</name>
        <url>http://spring-roo-repository.springsource.org/release</url>
    </pluginRepository>
</pluginRepositories>

这是我能找到的任何其他存储库org.springframework.roo:org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT依赖?

解决方法:

我发现为什么无法找到上面的依赖.生成的pom.xml不包含spring-roo快照存储库.如果添加以下依赖项,项目将编译:

    <repository>
        <id>spring-roo-repository-snapshot</id>
        <name>Spring Roo Repository</name>
        <url>http://spring-roo-repository.springsource.org/snapshot</url>
    </repository>

我还分叉了spring-roo代码,修复了模板并发送了要合并的修复程序.以下github存储库包含固定的spring-roo版本:

https://github.com/hkarakose/spring-roo

标签:spring-roo,java,spring,maven,primefaces
来源: https://codeday.me/bug/20190831/1776340.html