Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1301

Database schema generation by maven-cayenne-plugin from map in Maven artifact

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1M1
    • Undefined future
    • Core Library
    • None

    Description

      Currently, maven-cayenne-plugin support database schema generation only from map from local file. But sometimes (i.e., in tests) database scheme must be produced from map file from other Maven project. Proposed patch add support for database scheme generation from map file in any Maven artifact, which will be resolved from local or remote Maven repository. Map in Maven artifact specified by URI in form:

      map-uri := mvn-uri ':' <map path in Maven artifact>

      where mvn-uri is Maven artifact URI in Pax URL-like form (http://wiki.ops4j.org/display/paxurl/Mvn+Protocol) without repository-url and classifier URI parts, i.e.:

      <map>mvn:com.foo.bar/my-artifact/0.1.0-SNAPSHOT:/META-INF/cayenne/DomainMap.map.xml</map>

      Attachments

        1. db_map_from_maven_artifact.patch
          5 kB
          Victor Antonovich

        Activity

          People

            Unassigned Unassigned
            kapyar Victor Antonovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: