Results 1 to 8 of 8

Thread: Perform tests: BUILD FAILURE, error with the POM.

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Posts
    4

    Default Perform tests: BUILD FAILURE, error with the POM.

    Hi, i'm new in the community and i'm starting in Spring Roo.

    I'm trying to make a example of an inventary, and when I get to the part where I run "perform tests" and "perform package", the roo shell answer me this:

    ...
    Building Inventario 0.1.0.BUILD-SNAPSHOT
    ...

    [WARNING] The POM for org.springframework.roo:org.springframework.roo.an notations:jar:3.0.5.RELEASE is missing, no dependency information available
    ...
    BUILD FAILURE
    ...
    ...
    ...

    [ERROR] Failed to execute goal on project Inventario: Could not resolver dependencies for project com.inventario:Inventario:war:0.1.0.BUILD-SNAPSHOT Failure to find org.springframework.roo:org.springframework.roo.an notations:jar:3.0.5.REALEASE in http://repo.intranet.company:port/ne.../groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or update are forced --> [Help 1]
    ...
    ...
    ...

    The command 'mvn.bat test' did not complete successfully

    I appreciate any help i can give me.

    Greetings.

  2. #2
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Maybe you need to have a look to your repository or even the maven settings.xml (in HOME/.m2/)

    But it could be easier: org.springframework.roo:org.springframework.roo.annotations:jar:3.0.5.REALEASE, I presume you have an error in you pom, because the dependency is defined with this value:

    Code:
            <dependency>
                <groupId>org.springframework.roo</groupId>
                <artifactId>org.springframework.roo.annotations</artifactId>
                <version>${roo.version}</version>
                <scope>provided</scope>
            </dependency>
    Being:

    Code:
    <roo.version>1.2.0.RELEASE</roo.version>
    So the actual version of roo annotations is 1.2.0 (or 1.1.5 if you're using the previous version)

  3. #3
    Join Date
    Jan 2012
    Posts
    4

    Default

    Thanks for the reply, i think the problem is in the maven settings.xml, since the company i work for uses a special repository. This is my settings.xml:

    <settings xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <mirrors>
    <mirror>
    <id>nexus</id>
    <mirrorOf>*</mirrorOf>
    <url>http://repo.intranet.companyort/nexus/content/groups/public</url>
    </mirror>
    </mirrors>
    </settings>


    But no where is the error, or i needs to add.

    With respect to POM.xml, i change the <version>${spring.version}</version> for <version>${roo.version}</version>:

    <!-- ROO dependencies -->
    <dependency>
    <groupId>org.springframework.roo</groupId>
    <artifactId>org.springframework.roo.annotations</artifactId>
    <version>${roo.version}</version>
    <scope>provided</scope>
    </dependency>
    <!-- Spring dependencies -->


    And i got a similar error:

    roo>
    perform tests
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Inventario 0.1.0.BUILD-SNAPSHOT
    [INFO] ------------------------------------------------------------------------

    [WARNING] The POM for org.springframework.roo:org.springframework.roo.an notations:jar:1.1.5.RELEASE is missing, no dependency information available
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.063s
    [INFO] Finished at: Tue Feb 07 09:36:39 CLST 2012
    [INFO] Final Memory: 3M/6M
    [INFO] ------------------------------------------------------------------------

    [ERROR] Failed to execute goal on project Inventario: Could not resolve dependencies for project com.inventario:Inventario:war:0.1.0.BUILD-SNAPSHOT: Failure to find org.springframework.roo:org.springframework.roo.an notations:jar:1.1.5.RELEASE in http://repo.intranet.company:port/ne.../groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...utionException

    The command 'mvn.bat test' did not complete successfully

    More details for my environment:


    • Spring Roo 1.1.5.
    • Eclipse Indigo.
    • Springsource Tool Suite 2.8.1.
    • Apache Maven 3.0.3.


    Greetings.

  4. #4
    Join Date
    Jan 2012
    Posts
    4

    Default

    Any idea?

    Greetings.

  5. #5

    Default

    Hi,

    I think you have more of a nexus/maven issue than roo.

    So. From the settings you posted it looks like all your requests for jars via maven are being sent to your company nexus box, which is fine (we have it set up the same here).

    However the roo jars are not in maven central. So you'll need to get the spring-roo-repository added to your nexus server (you should be able to set up a mirror, and then add it to the public group). The details of URLs etc can be found in the POM created by Roo.

    Hope that helps.

    Cheers,

    Matt

  6. #6
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default

    Alternatively, you can download the JAR and install it in your local repository with maven:

    Guide to installing 3rd party JARs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •