【问题标题】:Spring Roo project cannot find org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOTSpring Roo 项目找不到 org.springframework.roo.annotations:jar:1.2.5.BUILD-SNAPSHOT
【发布时间】:2013-09-17 18:59:21
【问题描述】:

我通过 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 依赖项的任何其他存储库吗?

【问题讨论】:

    标签: java spring maven primefaces spring-roo


    【解决方案1】:

    我找到了为什么找不到上述依赖项。生成的 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-28
      • 1970-01-01
      • 2021-10-22
      • 2015-02-20
      • 1970-01-01
      • 1970-01-01
      • 2020-11-01
      • 1970-01-01
      相关资源
      最近更新 更多