You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2004/02/12 20:55:05 UTC

cvs commit: maven-components/maven-core NOTES.txt

jvanzyl     2004/02/12 11:55:05

  Added:       maven-core NOTES.txt
  Log:
  
  
  Revision  Changes    Path
  1.1                  maven-components/maven-core/NOTES.txt
  
  Index: NOTES.txt
  ===================================================================
  The first issue to deal with is the relationship plugins, goals and
  specifically given the context of a goal how are parameters gleaned so that
  they can be fed into plugin execution. I will explain further using the
  concrete example of the three plugins that are currently part of the
  bootstrap build.
  
  Currently there are three plugins:
  
  o compiler plugin
  o surefire plugin
  o jar plugin
  
  Right now by looking at the code for the compiler plugin you will see that
  it specifically deals with compiling the application sources. What needs to
  happen is that a parameter should be specified so that the directory in
  which the sources are to be compiled can be stated.
  
  So there are two cases given just these three plugins and that is the
  compiling of the application sources and the compiling of the test sources.
  So just as we currently have in Maven 1.x the parameters used are taken from
  the context of a given goal. So for the "java:compile" goal values are taken
  and passed to the javac task, and the same goes for the "test:compile" goal.
  
  So currently I have Plugin.execute( MavenProject, Map ) so we have the
  project and some parameters for the plugin. At first I thought the
  parameters would come from the project and the plugin would figure it out
  but in the case of compiling we have no context as to which source directory
  to use and generally you might need something outside the MavenProject as a
  source for parameters.
  
  So the first thing I would like to decide in this above example is when the
  "compile" goal is run how are the parameters gleaned, where do they come
  from, how are they verified. Do we want to generate a descriptor for a
  plugin? Do we want to use something like OGNL to extract parameters from the
  MavenProject. It would certainly be easy enough to generate a descriptor
  using QDox and some tags in a Java plexus component:
  
  /**
   *
   * @version $Id: NOTES.txt,v 1.1 2004/02/12 19:55:05 jvanzyl Exp $
   *
   * maven.jar.manifest.extensions.add
   * maven.jar.includes
   * maven.jar.excludes
   * maven.jar.index
   * maven.jar.compress
   * maven.remote.group
   */
   
  So these are the parameters that could be extracted at runtime from the
  properties. So we need sensible defaults and the same way we currently have
  for overriding the defaults. So we need a clean way to do this for pure Java
  plugins as well as Jelly plugins, or any other kind of plugin. 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org