FAQ
I think I am done moving modules around. Everyone feel free to reimport things into your workspace. What was achieved:

* Every single module, including the docs, can be imported in Eclipse with no red squiggles.
* Module folders are aligned with their Maven coordinates.
* Aggregated modules hack is removed.
* Explicit required / optional / provided / test dependencies are added in most modules.
* Cleaned up *tons* of other garbage in the poms. Everything that can be inherited is inherited, etc.

TODO:

* Upgrade notes and docs
* Jenkins builds are broken (should we request a cleanup of ~/.m2 ? Everything builds fine on my machine with a clean repo)

As mentioned in another email, dependency chain for a typical user would look like this:

   cayenne-server.jar => cayenne-di.jar
   cayenne-client.jar => cayenne-di.jar, cayenne-server.jar

Andrus

Search Discussions

  • Adrian A. at Nov 17, 2013 at 12:04 pm

    I think I am done moving modules around. Everyone feel free to reimport things into your workspace. What was achieved:

    * Every single module, including the docs, can be imported in Eclipse with no red squiggles.
    * Module folders are aligned with their Maven coordinates.
    * Aggregated modules hack is removed.
    * Explicit required / optional / provided / test dependencies are added in most modules.
    * Cleaned up *tons* of other garbage in the poms. Everything that can be inherited is inherited, etc.

    TODO:
    Add "target" directories to SVN ingores too?
    * Upgrade notes and docs
    How to build it?

    Using:
        mvn clean install -Dmaven.test.skip=true
    on a fresh new trunk checkout in the root doesn't work.
    or
       mvn clean install -Passembly,generic -Dmaven.test.skip=true
    doesn't work either :(.

    Adrian.
  • Andrus Adamchik at Nov 17, 2013 at 12:37 pm

    TODO:
    Add "target" directories to SVN ingores too?
    Perhaps.. I am using Git locally, and really hope we migrate the server-side repo to Git too.
    Using:
    mvn clean install -Dmaven.test.skip=true
    Just "mvn clean install” should do. Tests should pass.

    Andrus

    On Nov 17, 2013, at 3:03 PM, Adrian A. wrote:

    I think I am done moving modules around. Everyone feel free to reimport things into your workspace. What was achieved:

    * Every single module, including the docs, can be imported in Eclipse with no red squiggles.
    * Module folders are aligned with their Maven coordinates.
    * Aggregated modules hack is removed.
    * Explicit required / optional / provided / test dependencies are added in most modules.
    * Cleaned up *tons* of other garbage in the poms. Everything that can be inherited is inherited, etc.

    TODO:
    Add "target" directories to SVN ingores too?
    * Upgrade notes and docs
    How to build it?

    Using:
    mvn clean install -Dmaven.test.skip=true
    on a fresh new trunk checkout in the root doesn't work.
    or
    mvn clean install -Passembly,generic -Dmaven.test.skip=true
    doesn't work either :(.

    Adrian.
  • Adrian A. at Nov 17, 2013 at 1:12 pm

    Using:
    mvn clean install -Dmaven.test.skip=true
    Just "mvn clean install” should do. Tests should pass.
    Thanks.
    "mvn install" seems to work now with the latest trunk.

    However:
       mvn clean
    still fails with the message:
    ----------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.164s
    [INFO] Finished at: Sun Nov 17 13:56:01 CET 2013
    [INFO] Final Memory: 11M/302M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.2M2-SNAPSHOT
    or one of its dependencies could not be r
    solved: Could not find artifact
    org.apache.cayenne.plugins:maven-cayenne-plugin:jar:3.2M2-SNAPSHOT ->
    [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/display/MAVEN/PluginResolutionException
    ----------------


    Adrian.

    P.S. How to build the binary distribution? e.g. the generic one?
    Trying:
         mvn clean install -Passembly,generic
    I'm getting:
    -------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 47.336s
    [INFO] Finished at: Sun Nov 17 14:03:57 CET 2013
    [INFO] Final Memory: 47M/565M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test)
    on project cayenne
    -server: There are test failures.
    [ERROR]
    [ERROR] Please refer to
    C:\work\apache_org\cayenne_trunk\cayenne-server\target\surefire-reports
    for the individual test
    results.
    [ERROR] -> [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/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :cayenne-server
    -------------------------------------
  • Andrus Adamchik at Nov 17, 2013 at 5:26 pm

    mvn clean
    still fails with the message:
    I can reproduce this and I can see why that happens (it requires a plugin that is built as a part of install). This works though, as it installs a plugin before cleaning the failing module:

       mvn clean install
    mvn clean install -Passembly,generic
    Just committed a fix. Should be working now.


    Also noticed a nasty thing with our CI, which predates the current refactoring. E.g. here is a Derby build from Nov 3:

    https://builds.apache.org/job/Cayenne-trunk/956/cayenneTestConnection=derby,jdk=JDK%201.6%20%28latest%29,label=Ubuntu/consoleFull

    INFO: Invalid connection key 'derby', trying default: internal_embedded_datasource
    Nov 3, 2013 5:48:28 PM org.apache.cayenne.unit.di.server.ServerCaseDataSourceInfoProvider get
    INFO: loaded connection info: [org.apache.cayenne.conn.DataSourceInfo:
        user name: sa
        password: **********
        driver: org.hsqldb.jdbcDriver
        db adapter class: org.apache.cayenne.dba.hsqldb.HSQLDBAdapter
        url: jdbc:hsqldb:mem:aname

    As you see, Derby (and H2) profiles were all running against HSQLDB, so were were not testing those DBs. I committed a fix (r1542759) to use hardcoded connection info for these in-memory databases, when it is missing in connection info. But there’s plenty of tests that fail. Something to work on next.

    Andrus

    On Nov 17, 2013, at 4:12 PM, Adrian A. wrote:

    Using:
    mvn clean install -Dmaven.test.skip=true
    Just "mvn clean install” should do. Tests should pass.
    Thanks.
    "mvn install" seems to work now with the latest trunk.

    However:
    mvn clean
    still fails with the message:
    ----------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.164s
    [INFO] Finished at: Sun Nov 17 13:56:01 CET 2013
    [INFO] Final Memory: 11M/302M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Plugin org.apache.cayenne.plugins:maven-cayenne-plugin:3.2M2-SNAPSHOT
    or one of its dependencies could not be r
    solved: Could not find artifact
    org.apache.cayenne.plugins:maven-cayenne-plugin:jar:3.2M2-SNAPSHOT ->
    [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/display/MAVEN/PluginResolutionException
    ----------------


    Adrian.

    P.S. How to build the binary distribution? e.g. the generic one?
    Trying:
    mvn clean install -Passembly,generic
    I'm getting:
    -------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 47.336s
    [INFO] Finished at: Sun Nov 17 14:03:57 CET 2013
    [INFO] Final Memory: 47M/565M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal
    org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test)
    on project cayenne
    -server: There are test failures.
    [ERROR]
    [ERROR] Please refer to
    C:\work\apache_org\cayenne_trunk\cayenne-server\target\surefire-reports
    for the individual test
    results.
    [ERROR] -> [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/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn <goals> -rf :cayenne-server
    -------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedNov 17, '13 at 10:28a
activeNov 17, '13 at 5:26p
posts5
users2
websitecayenne.apache.org

2 users in discussion

Andrus Adamchik: 3 posts Adrian A.: 2 posts

People

Translate

site design / logo © 2022 Grokbase