You are viewing a plain text version of this content. The canonical link for it is here.
Posted to m2-dev@maven.apache.org by tr...@apache.org on 2004/07/05 22:10:55 UTC

cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

trygvis     2004/07/05 13:10:55

  Modified:    maven-plugins/maven-clean-plugin pom.xml
               maven-plugins/maven-compiler-plugin pom.xml
               maven-plugins/maven-install-plugin pom.xml
               maven-plugins/maven-jar-plugin pom.xml
               maven-plugins/maven-plugin-plugin pom.xml
               maven-plugins/maven-resources-plugin pom.xml
               maven-plugins/maven-surefire-plugin pom.xml
  Log:
  o Adding <modelVersion> to the poms.
  
  Revision  Changes    Path
  1.4       +1 -0      maven-components/maven-plugins/maven-clean-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-clean-plugin/pom.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pom.xml	27 Jun 2004 17:10:31 -0000	1.3
  +++ pom.xml	5 Jul 2004 20:10:54 -0000	1.4
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  
  
  
  1.5       +1 -0      maven-components/maven-plugins/maven-compiler-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-compiler-plugin/pom.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- pom.xml	27 Jun 2004 17:10:31 -0000	1.4
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.5
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  
  
  
  1.5       +1 -0      maven-components/maven-plugins/maven-install-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-install-plugin/pom.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- pom.xml	27 Jun 2004 17:10:31 -0000	1.4
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.5
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  
  
  
  1.4       +1 -3      maven-components/maven-plugins/maven-jar-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-jar-plugin/pom.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pom.xml	27 Jun 2004 17:10:31 -0000	1.3
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.4
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  @@ -12,7 +13,6 @@
     <name>Maven Jar Plugin</name>
     <version>1.0-SNAPSHOT</version>
     <package>org.apache.maven.plugin.jar</package>
  -
     <dependencies>
       <dependency>
         <groupId>maven</groupId>
  @@ -20,6 +20,4 @@
         <version>2.0-SNAPSHOT</version>
       </dependency>
     </dependencies>
  -
  -
   </project>
  
  
  
  1.3       +1 -2      maven-components/maven-plugins/maven-plugin-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-plugin-plugin/pom.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- pom.xml	27 Jun 2004 17:09:13 -0000	1.2
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.3
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  @@ -13,7 +14,6 @@
     <version>1.0-SNAPSHOT</version>
     <inceptionYear>2001</inceptionYear>
     <package>org.apache.maven.plugin.plugin</package>
  -
     <dependencies>
       <dependency>
         <groupId>maven</groupId>
  @@ -21,5 +21,4 @@
         <version>2.0-SNAPSHOT</version>
       </dependency>
     </dependencies>
  -
   </project>
  
  
  
  1.4       +1 -0      maven-components/maven-plugins/maven-resources-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-resources-plugin/pom.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pom.xml	27 Jun 2004 17:10:32 -0000	1.3
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.4
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  
  
  
  1.4       +1 -0      maven-components/maven-plugins/maven-surefire-plugin/pom.xml
  
  Index: pom.xml
  ===================================================================
  RCS file: /home/cvs/maven-components/maven-plugins/maven-surefire-plugin/pom.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- pom.xml	27 Jun 2004 17:10:32 -0000	1.3
  +++ pom.xml	5 Jul 2004 20:10:55 -0000	1.4
  @@ -1,6 +1,7 @@
   <?xml version="1.0" encoding="ISO-8859-1"?>
   
   <project>
  +  <modelVersion>4.0.0</modelVersion>
     <parent>
       <groupId>maven</groupId>
       <artifactId>maven-plugin-parent</artifactId>
  
  
  

Re: cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

Posted by Trygve Laugstøl <tr...@inamo.no>.
On Tue, Jul 06, 2004 at 06:44:15AM +0200, Emmanuel Venisse wrote:
> Why you do this? It's already define in parent pom.

We found it best to state the version of "this" pom as you might not have
control over the parent pom. This is a restriction that can be relaxed
later if it's not required, but I really like to have a version indicator
in each pom to make it easier for future upgrades.

>
> Emmanuel
>

--
Trygve

> 
> > trygvis     2004/07/05 13:10:55
> >
> >   Modified:    maven-plugins/maven-clean-plugin pom.xml
> >                maven-plugins/maven-compiler-plugin pom.xml
> >                maven-plugins/maven-install-plugin pom.xml
> >                maven-plugins/maven-jar-plugin pom.xml
> >                maven-plugins/maven-plugin-plugin pom.xml
> >                maven-plugins/maven-resources-plugin pom.xml
> >                maven-plugins/maven-surefire-plugin pom.xml
> >   Log:
> >   o Adding <modelVersion> to the poms.
> >

Re: cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

Posted by Ben Walding <be...@walding.com>.
Isn't this what DTDs / System Identifiers are for?

I'm not necessarily saying that it should replace model version, but it 
seems to have a very similar purpose.

Cheers,

Ben

Jason van Zyl wrote:

>On Tue, 2004-07-06 at 00:44, Emmanuel Venisse wrote:
>  
>
>>Why you do this? It's already define in parent pom.
>>    
>>
>
>It will be a stipulation to have the model version you want to use in
>the POM so that in the future we can use methods to inspect the POM to
>figure out what version it is so we can use the appropropriate versions
>of the corresponding components to read the POM without having to
>backtrack up the hierarchy.
>
>For expedience and ease right now we are distinguishing between v3 and
>v4 by the file name. We want better semantics for m2 so we have pom.xml
>while m1 uses project.xml so that's easy to pick off, but when we move
>to v4.x it won't be easy unless we have an easy way to distinguish which
>will most likely mean reading a bit into the POM. I really hope that
>when 2.0 final is released the POM will not need to change for a long
>time but just so that this is easy the validator in place stipulates the
>presence of modelVersion.
>
>  
>


Re: cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

Posted by Jason van Zyl <jv...@maven.org>.
On Tue, 2004-07-06 at 00:44, Emmanuel Venisse wrote:
> Why you do this? It's already define in parent pom.

It will be a stipulation to have the model version you want to use in
the POM so that in the future we can use methods to inspect the POM to
figure out what version it is so we can use the appropropriate versions
of the corresponding components to read the POM without having to
backtrack up the hierarchy.

For expedience and ease right now we are distinguishing between v3 and
v4 by the file name. We want better semantics for m2 so we have pom.xml
while m1 uses project.xml so that's easy to pick off, but when we move
to v4.x it won't be easy unless we have an easy way to distinguish which
will most likely mean reading a bit into the POM. I really hope that
when 2.0 final is released the POM will not need to change for a long
time but just so that this is easy the validator in place stipulates the
presence of modelVersion.

-- 
jvz.

Jason van Zyl
jason@maven.org
http://maven.apache.org

happiness is like a butterfly: the more you chase it, the more it will
elude you, but if you turn your attention to other things, it will come
and sit softly on your shoulder ...

 -- Thoreau 


Re: cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

Posted by Trygve Laugst�l <tr...@inamo.no>.
On Tue, Jul 06, 2004 at 06:44:15AM +0200, Emmanuel Venisse wrote:
> Why you do this? It's already define in parent pom.

We found it best to state the version of "this" pom as you might not have
control over the parent pom. This is a restriction that can be relaxed
later if it's not required, but I really like to have a version indicator
in each pom to make it easier for future upgrades.

> 
> Emmanuel
> 

--
Trygve

> > trygvis     2004/07/05 13:10:55
> >
> >   Modified:    maven-plugins/maven-clean-plugin pom.xml
> >                maven-plugins/maven-compiler-plugin pom.xml
> >                maven-plugins/maven-install-plugin pom.xml
> >                maven-plugins/maven-jar-plugin pom.xml
> >                maven-plugins/maven-plugin-plugin pom.xml
> >                maven-plugins/maven-resources-plugin pom.xml
> >                maven-plugins/maven-surefire-plugin pom.xml
> >   Log:
> >   o Adding <modelVersion> to the poms.
> >
> >   Revision  Changes    Path
> >   1.4       +1 -0      maven-components/maven-plugins/maven-clean-plugin/pom.xml
> >

Re: cvs commit: maven-components/maven-plugins/maven-surefire-plugin pom.xml

Posted by Emmanuel Venisse <em...@venisse.net>.
Why you do this? It's already define in parent pom.

Emmanuel

> trygvis     2004/07/05 13:10:55
>
>   Modified:    maven-plugins/maven-clean-plugin pom.xml
>                maven-plugins/maven-compiler-plugin pom.xml
>                maven-plugins/maven-install-plugin pom.xml
>                maven-plugins/maven-jar-plugin pom.xml
>                maven-plugins/maven-plugin-plugin pom.xml
>                maven-plugins/maven-resources-plugin pom.xml
>                maven-plugins/maven-surefire-plugin pom.xml
>   Log:
>   o Adding <modelVersion> to the poms.
>
>   Revision  Changes    Path
>   1.4       +1 -0
maven-components/maven-plugins/maven-clean-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-clean-plugin/pom.xml,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- pom.xml 27 Jun 2004 17:10:31 -0000 1.3
>   +++ pom.xml 5 Jul 2004 20:10:54 -0000 1.4
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>
>
>
>   1.5       +1 -0
maven-components/maven-plugins/maven-compiler-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-compiler-plugin/pom.xml,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- pom.xml 27 Jun 2004 17:10:31 -0000 1.4
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.5
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>
>
>
>   1.5       +1 -0
maven-components/maven-plugins/maven-install-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-install-plugin/pom.xml,v
>   retrieving revision 1.4
>   retrieving revision 1.5
>   diff -u -r1.4 -r1.5
>   --- pom.xml 27 Jun 2004 17:10:31 -0000 1.4
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.5
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>
>
>
>   1.4       +1 -3
maven-components/maven-plugins/maven-jar-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-jar-plugin/pom.xml,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- pom.xml 27 Jun 2004 17:10:31 -0000 1.3
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.4
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>   @@ -12,7 +13,6 @@
>      <name>Maven Jar Plugin</name>
>      <version>1.0-SNAPSHOT</version>
>      <package>org.apache.maven.plugin.jar</package>
>   -
>      <dependencies>
>        <dependency>
>          <groupId>maven</groupId>
>   @@ -20,6 +20,4 @@
>          <version>2.0-SNAPSHOT</version>
>        </dependency>
>      </dependencies>
>   -
>   -
>    </project>
>
>
>
>   1.3       +1 -2
maven-components/maven-plugins/maven-plugin-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-plugin-plugin/pom.xml,v
>   retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- pom.xml 27 Jun 2004 17:09:13 -0000 1.2
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.3
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>   @@ -13,7 +14,6 @@
>      <version>1.0-SNAPSHOT</version>
>      <inceptionYear>2001</inceptionYear>
>      <package>org.apache.maven.plugin.plugin</package>
>   -
>      <dependencies>
>        <dependency>
>          <groupId>maven</groupId>
>   @@ -21,5 +21,4 @@
>          <version>2.0-SNAPSHOT</version>
>        </dependency>
>      </dependencies>
>   -
>    </project>
>
>
>
>   1.4       +1 -0
maven-components/maven-plugins/maven-resources-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-resources-plugin/pom.xml,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- pom.xml 27 Jun 2004 17:10:32 -0000 1.3
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.4
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>
>
>
>   1.4       +1 -0
maven-components/maven-plugins/maven-surefire-plugin/pom.xml
>
>   Index: pom.xml
>   ===================================================================
>   RCS file:
/home/cvs/maven-components/maven-plugins/maven-surefire-plugin/pom.xml,v
>   retrieving revision 1.3
>   retrieving revision 1.4
>   diff -u -r1.3 -r1.4
>   --- pom.xml 27 Jun 2004 17:10:32 -0000 1.3
>   +++ pom.xml 5 Jul 2004 20:10:55 -0000 1.4
>   @@ -1,6 +1,7 @@
>    <?xml version="1.0" encoding="ISO-8859-1"?>
>
>    <project>
>   +  <modelVersion>4.0.0</modelVersion>
>      <parent>
>        <groupId>maven</groupId>
>        <artifactId>maven-plugin-parent</artifactId>
>
>
>
>