maven-m2-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject cvs commit: maven-components/maven-core/src/site/apt/lifecycle lifecycle-phases.apt
Date Mon, 24 Jan 2005 01:41:24 GMT
jdcasey     2005/01/23 17:41:24

  Modified:    maven-core/src/site/apt/lifecycle lifecycle-phases.apt
  Log:
  o Added some discussion notes at the end of the document, since I'm not sure where else
to put them.
  
  Revision  Changes    Path
  1.2       +44 -1     maven-components/maven-core/src/site/apt/lifecycle/lifecycle-phases.apt
  
  Index: lifecycle-phases.apt
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-core/src/site/apt/lifecycle/lifecycle-phases.apt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- lifecycle-phases.apt	22 Jan 2005 16:11:57 -0000	1.1
  +++ lifecycle-phases.apt	24 Jan 2005 01:41:24 -0000	1.2
  @@ -170,4 +170,47 @@
    -> how users decorate or completely override the lifecycle, but most of this should
be alleviated by a mojo
       having a defined place in the lifecycle by telling maven what phase it contributes
too. in this way maven
       can probably assemble the entire execution chain by looking at the mojos the user has
specified for use
  -    in the build process.
  \ No newline at end of file
  +    in the build process.
  +    
  +[Added, jdcasey/2005-01-23]
  +Notes for discussion:
  +
  +  - What about enabling goals only for certain enviornments (introduce the concept
  +    of a target "environment", like CI/dev/QA/production/etc.)
  +  
  +    We can't enforce a vocabulary of environments IMO, since different teams 
  +    will have different needs, and shouldn't be forced to adapt.
  +    
  +    What about something like:
  ++---+
  +    .
  +    .
  +    .
  +    <phase>
  +      <id>test</id>
  +      <goal>
  +        <environment>dev</environment>
  +        <id>surefire:test</id>
  +      </goal>
  +    </phase>
  +    .
  +    .
  +    .
  ++---+
  +
  +    With an invocation style similar to <<<m2 [-Dtarget.environment=dev] test>>>
  +
  +  - In keeping with the concept of providing tons of flexibility but providing
  +    a comprehensive set of sensible defaults, the default phase-goal bindings
  +    will probably be provided in the implied root POM. 
  +    
  +    That said, how do we allow users to <suppress> those phase-goal bindings?
  +    
  +    How do we allow users to specify <where> a new binding will go in relation
  +    to the defaults provided in the root POM?
  +    
  +    However we solve this, we need to emphasize intuitive XML as a solution IMO.
  +    The implicit ordering in the phase-goal bindings is a step in the right
  +    direction, but when you factor inheritance into the mix, this could get 
  +    really sticky.
  +[/Added, jdcasey/2005-01-23]
  
  
  

Mime
View raw message