Uploaded image for project: 'Contrib: Evaluation System'
  1. Contrib: Evaluation System
  2. EVALSYS-1052

Should be possible to activate EVALSYS profiles by properties

    XMLWordPrintable

    Details

      Description

      When another project depends on evaluation, the best way to get the right version of evaluation's dependencies is to use profiles that are activated by properties rather than by explicitly invoking the profile when building the other project. Here are notes from Matthew Jones about this:

      It looks like gradebook2 already does it and it works. Just add a property line to the activation block for the profiles and build it with -D instead of -P.

      It looks like there might be some issues around it, like people wanting to be able to specify an "or" or an "and". Right now it's just whatever matches first, activatebydefault gets the lowest priority.
      http://jira.codehaus.org/browse/MNG-3328

      (Like in gb2 pom):
      39 <id>sakai2.7</id>
      40 <activation>
      41 <activeByDefault>true</activeByDefault>
      42 <property><name>sakai2.7</name></property>
      43 </activation>

      $mvn -Dsakai2.6 help:active-profiles
      Active Profiles for Project 'org.sakaiproject.gradebook2:gradebook2-base:pom:1.3.0-SNAPSHOT': The following profiles are active:

      • sakai2.6 (source: pom)

      $mvn -Dsakai2.7 help:active-profiles
      The following profiles are active:

      • sakai2.7 (source: pom)

      $mvn help:active-profiles
      The following profiles are active:

      • sakai2.7 (source: pom)

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                jimeng Jim Eng (Inactive)
                Reporter:
                jimeng Jim Eng (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration