Announcement Announcement Module
Collapse
No announcement yet.
Roo hates me ... building Roo from scratch issues ... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo hates me ... building Roo from scratch issues ...

    Yesterday I reported an issues with a "Cannot present nested annotations unless created by this class" that has brought development to a halt. I thought that I might be able to get more information about what might be the issue if I modified the error message in Roo.

    All of what follows is being done on a Windows 7 64 -bit professional system with Java 1.7.04 sdk and Maven 3.0.3.

    The first thing I needed was the ability to get the Roo source and get it to build without me messing with it. I created a new directory and checked out the latest from github ...

    git clone [email protected]:SpringSource/spring-roo.git

    created the MAVEN_OPTS environment variable and set it to "-Xmx1024m -XX:MaxPermSize=512m"

    downloaded gpg4win, created a key and sent it to a keyserver "gpg --keyserver hkp://pgp.mit.edu --send-keys xxxxxx"

    and thought I would see if that much worked before I tried to put it into eclipse with just a

    mvn clean install

    I responded to the passphase challenge when asked so I am assuming the gpg had gone well, but things went down hill from there. I must to have really upset the Roo god as I could not even build it from scratch.

    Note also that my initial reaction was that I could not copy and paste commands from the Roo readme.txt file without error so I deleted everything from the directory I had created and then entered the git clone command again, answered the passphrase again and did the mvn clean install again ... only to get the same results.

    Here is all of the output from the build zipped up if you are interested ... Attachment ... and I have included the disappointing last lines below.

    Obviously I am doing something wrong but have not go a clue what it might be.

    Any suggestions would be appreciated,
    Arvid


    ...

    [INFO] ------------------------------------------------------------------------
    [INFO] Building Spring Roo - Support 1.2.3.BUILD-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ org.springframework.ro
    o.support ---
    [INFO] Deleting C:\git\repros\roo\spring-roo\support\target
    [INFO]
    [INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-versions) @ org.springfr
    amework.roo.support ---
    [INFO]
    [INFO] --- maven-java-formatter-plugin:0.4.0.e371sr1:format (default) @ org.spri
    ngframework.roo.support ---
    [WARNING] File encoding has not been set, using platform encoding (Cp1252) to fo
    rmat source files, i.e. build is platform dependent!
    [INFO] Number of files to be formatted: 27
    [INFO] Successfully formatted: 0 file(s)
    [INFO] Fail to format : 0 file(s)
    [INFO] Skipped : 27 file(s)
    [INFO] Approximate time taken: 0s
    [INFO]
    [INFO] --- exec-maven-plugin:1.1.1:exec (default) @ org.springframework.roo.supp
    ort ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ org.spring
    framework.roo.support ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\git\repros\roo\spring-roo\support\
    src\main\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ org.springframe
    work.roo.support ---
    [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
    uild is platform dependent!
    [INFO] Compiling 20 source files to C:\git\repros\roo\spring-roo\support\target\
    classes
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ or
    g.springframework.roo.support ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ org.spr
    ingframework.roo.support ---
    [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. b
    uild is platform dependent!
    [INFO] Compiling 7 source files to C:\git\repros\roo\spring-roo\support\target\t
    est-classes
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ org.springframework.
    roo.support ---
    [INFO] Surefire report directory: C:\git\repros\roo\spring-roo\support\target\su
    refire-reports

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------

    Results :

    testRemoveElements(org.springframework.roo.support .util.DomUtilsTest): expecte
    (..).." encoding="UTF-8"?>[
    validateElementSequence(org.springframework.roo.su pport.util.WebXmlUtilsTest):
    expected:<17> but was:<2>
    testAddFilter(org.springframework.roo.support.util .WebXmlUtilsTest): expected:
    <filter[1]> but was:<filter[2]>

    Tests run: 53, Failures: 3, Errors: 0, Skipped: 0

    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Spring Roo ........................................ SUCCESS [8.099s]
    [INFO] Spring Roo - Deployment Support ................... SUCCESS [0.285s]
    [INFO] Spring Roo - OSGi Bundle Module Parent ............ SUCCESS [1.696s]
    [INFO] Spring Roo - OSGi Roo Bundle Module Parent ........ SUCCESS [0.654s]
    [INFO] Spring Roo - Bootstrap ............................ SUCCESS [2.493s]
    [INFO] Spring Roo - OSGi Start Level Control ............. SUCCESS [2.268s]
    [INFO] Spring Roo - Support .............................. FAILURE [2.728s]
    [INFO] Spring Roo - Support for OSGi Features ............ SKIPPED
    [INFO] Spring Roo - URL Stream API Contract .............. SKIPPED
    [INFO] Spring Roo - Shell ................................ SKIPPED
    [INFO] Spring Roo - Shell (OSGi Launcher) ................ SKIPPED
    [INFO] Spring Roo - URL Stream - JDK ..................... SKIPPED
    [INFO] Spring Roo - Shell - JLine ........................ SKIPPED
    [INFO] Spring Roo - Shell - JLine (OSGi Launcher) ........ SKIPPED
    [INFO] Spring Roo - Metadata ............................. SKIPPED
    [INFO] Spring Roo - User Agent Analysis (UAA) Integration SKIPPED
    [INFO] Spring Roo - Felix Interoperability ............... SKIPPED
    [INFO] Spring Roo - Model ................................ SKIPPED
    [INFO] Spring Roo - File Undo ............................ SKIPPED
    [INFO] Spring Roo - File Monitor ......................... SKIPPED
    [INFO] Spring Roo - File Monitor - Polling ............... SKIPPED
    [INFO] Spring Roo - File Monitor - Polling (Roo Launcher) SKIPPED
    [INFO] Spring Roo - Process Manager ...................... SKIPPED
    [INFO] Spring Roo - Project .............................. SKIPPED
    [INFO] Spring Roo - Classpath ............................ SKIPPED
    [INFO] Spring Roo - Classpath (JavaParser Implementation) SKIPPED
    [INFO] Spring Roo - Addon - toString ..................... SKIPPED
    [INFO] Spring Roo - Addon - Equals/HashCode .............. SKIPPED
    [INFO] Spring Roo - Addon - JavaBean Method Manager ...... SKIPPED
    [INFO] Spring Roo - Addon - Plural Details ............... SKIPPED
    [INFO] Spring Roo - Addon - Property Files ............... SKIPPED
    [INFO] Spring Roo - Addon - @Configurable ................ SKIPPED
    [INFO] Spring Roo - Addon - Email ........................ SKIPPED
    [INFO] Spring Roo - Addon - Test Data On Demand .......... SKIPPED
    [INFO] Spring Roo - Addon - Automated Integration Testing SKIPPED
    [INFO] Spring Roo - Addon - java.io.Serializable ......... SKIPPED
    [INFO] Spring Roo - Addon - JPA .......................... SKIPPED
    [INFO] Spring Roo - Addon - JMS .......................... SKIPPED
    [INFO] Spring Roo - Addon - Finder ....................... SKIPPED
    [INFO] Spring Roo - Addon - Logging ...................... SKIPPED
    [INFO] Spring Roo - Addon - Property Editor .............. SKIPPED
    [INFO] Spring Roo - Addon - Backup ....................... SKIPPED
    [INFO] Spring Roo - Addon - JSON ......................... SKIPPED
    [INFO] Spring Roo - Addon - Web MVC Controller ........... SKIPPED
    [INFO] Spring Roo - Addon - Web MVC JSP View ............. SKIPPED
    [INFO] Spring Roo - Addon - Web MVC Embedded Extensions .. SKIPPED
    [INFO] Spring Roo - Addon - Spring Security .............. SKIPPED
    [INFO] Spring Roo - Addon - Solr ......................... SKIPPED
    [INFO] Spring Roo - Addon - Web - Flow ................... SKIPPED
    [INFO] Spring Roo - Addon - Web Selenium Test Generator .. SKIPPED
    [INFO] Spring Roo - Addon - Google Web Toolkit ........... SKIPPED
    [INFO] Spring Roo - Addon - JDBC Driver Acquisition ...... SKIPPED
    [INFO] Spring Roo - Addon - Database Reverse Engineering . SKIPPED
    [INFO] Spring Roo - Addon - Creator ...................... SKIPPED
    [INFO] Spring Roo - Addon - RooBot Client ................ SKIPPED
    [INFO] Spring Roo - Addon - JSF/PrimeFaces ............... SKIPPED
    [INFO] Spring Roo - Addon - Op4J ......................... SKIPPED
    [INFO] Spring Roo - Addon - GIT .......................... SKIPPED
    [INFO] Spring Roo - Addon - Cloud Foundry ................ SKIPPED
    [INFO] Spring Roo - Addon - Service Layer ................ SKIPPED
    [INFO] Spring Roo - Addon - JPA Repository Layer ......... SKIPPED
    [INFO] Spring Roo - Addon - MongoDB Repository Layer ..... SKIPPED
    [INFO] Spring Roo - Addon - OS Commands .................. SKIPPED
    [INFO] Spring Roo - Addon - Tailor ....................... SKIPPED
    [INFO] Spring Roo - Annotations (ASLv2 Licensed) ......... SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 19.617s
    [INFO] Finished at: Sat Jul 07 18:03:32 CDT 2012
    [INFO] Final Memory: 40M/398M
    [INFO] ------------------------------------------------------------------------
    Attached Files

  • #2
    Quick suggestions:
    - In Windows, I provide the gpg passphrase as maven option from the command line:
    mvn clean install -Dgpg.passphrase=THEPHRASE -Dgpg.secretKeyring=C:\Users\...\gnupg\secring.gpg -Dgpg.publicKeyring=C:\Users\...\gnupg\pubring.gpg
    - You can even skip the code signing by removing the maven-gog-plugin from the pom.xml itself.

    - If you're in hurry, just ignore the tests:
    mvn install -DskipTests

    Comment

    Working...
    X