You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <GG...@seagullsoftware.com> on 2011/01/19 16:06:56 UTC

[commons-parent] Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x

Hi All:

I'd like to get Maven 3 working with various projects and [codec] today.

To get Maven 3 to work, I'd like to add the following profile to the commons-parent POM.

See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html

Any objections or thoughts?

Thank you,
Gary

Index: pom.xml
===================================================================
--- pom.xml        (revision 1060831)
+++ pom.xml     (working copy)
@@ -759,6 +759,45 @@
         <module>../vfs</module>
       </modules>
     </profile>
+
+             <!--
+               Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x
+               See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
+             -->
+    <profile>
+      <id>maven-3</id>
+      <activation>
+        <file>
+          <!--  The basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
+          <exists>${basedir}</exists>
+        </file>
+      </activation>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <version>3.0-beta-3</version>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+        <plugins>
+          <plugin>
+            <artifactId>maven-site-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>attach-descriptor</id>
+                <goals>
+                  <goal>attach-descriptor</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
   </profiles>
   <properties>

Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 * Atlanta, GA 30326 * USA
Tel: +1.404.760.1560
Email: ggregory@seagullsoftware.com<ma...@seagullsoftware.com>
Web: seagull.rocketsoftware.com<http://www.seagull.rocketsoftware.com/>



RE: [commons-parent] Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x

Posted by Gary Gregory <GG...@seagullsoftware.com>.
> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org]
> Sent: Wednesday, January 19, 2011 16:27
> To: Commons Developers List
> Subject: Re: [commons-parent] Using maven-site-plugin 2.x with Maven 2.x
> and maven-site-plugin 3.x with Maven 3.x
> 
> On 2011-01-19 16:06, Gary Gregory wrote:
> > Hi All:
> >
> > I'd like to get Maven 3 working with various projects and [codec] today.
> >
> > To get Maven 3 to work, I'd like to add the following profile to the
> commons-parent POM.
> >
> > See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-
> 3.html
> >
> > Any objections or thoughts?
> 
> Go ahead and do it.

Committed revision 1060999.

Gary

> 
> >
> > Thank you,
> > Gary
> >
> > Index: pom.xml
> > ===================================================================
> > --- pom.xml        (revision 1060831)
> > +++ pom.xml     (working copy)
> > @@ -759,6 +759,45 @@
> >          <module>../vfs</module>
> >        </modules>
> >      </profile>
> > +
> > +             <!--
> > +               Using maven-site-plugin 2.x with Maven 2.x and maven-
> site-plugin 3.x with Maven 3.x
> > +               See http://maven.apache.org/plugins/maven-site-plugin-
> 3.0-beta-3/maven-3.html
> > +             -->
> > +    <profile>
> > +      <id>maven-3</id>
> > +      <activation>
> > +        <file>
> > +          <!--  The basedir expression is only recognized by Maven 3.x
> (see MNG-2363) -->
> > +          <exists>${basedir}</exists>
> > +        </file>
> > +      </activation>
> > +      <build>
> > +        <pluginManagement>
> > +          <plugins>
> > +            <plugin>
> > +              <groupId>org.apache.maven.plugins</groupId>
> > +              <artifactId>maven-site-plugin</artifactId>
> > +              <version>3.0-beta-3</version>
> > +            </plugin>
> > +          </plugins>
> > +        </pluginManagement>
> > +        <plugins>
> > +          <plugin>
> > +            <artifactId>maven-site-plugin</artifactId>
> > +            <executions>
> > +              <execution>
> > +                <id>attach-descriptor</id>
> > +                <goals>
> > +                  <goal>attach-descriptor</goal>
> > +                </goals>
> > +              </execution>
> > +            </executions>
> > +          </plugin>
> > +        </plugins>
> > +      </build>
> > +    </profile>
> > +
> >    </profiles>
> >    <properties>
> >
> > Gary Gregory
> > Senior Software Engineer
> > Rocket Software
> > 3340 Peachtree Road, Suite 820 * Atlanta, GA 30326 * USA
> > Tel: +1.404.760.1560
> > Email: ggregory@seagullsoftware.com<ma...@seagullsoftware.com>
> > Web: seagull.rocketsoftware.com<http://www.seagull.rocketsoftware.com/>
> >
> >
> >
> 
> 
> --
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org


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


Re: [commons-parent] Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x

Posted by Dennis Lundberg <de...@apache.org>.
On 2011-01-19 16:06, Gary Gregory wrote:
> Hi All:
> 
> I'd like to get Maven 3 working with various projects and [codec] today.
> 
> To get Maven 3 to work, I'd like to add the following profile to the commons-parent POM.
> 
> See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
> 
> Any objections or thoughts?

Go ahead and do it.

> 
> Thank you,
> Gary
> 
> Index: pom.xml
> ===================================================================
> --- pom.xml        (revision 1060831)
> +++ pom.xml     (working copy)
> @@ -759,6 +759,45 @@
>          <module>../vfs</module>
>        </modules>
>      </profile>
> +
> +             <!--
> +               Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x
> +               See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
> +             -->
> +    <profile>
> +      <id>maven-3</id>
> +      <activation>
> +        <file>
> +          <!--  The basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
> +          <exists>${basedir}</exists>
> +        </file>
> +      </activation>
> +      <build>
> +        <pluginManagement>
> +          <plugins>
> +            <plugin>
> +              <groupId>org.apache.maven.plugins</groupId>
> +              <artifactId>maven-site-plugin</artifactId>
> +              <version>3.0-beta-3</version>
> +            </plugin>
> +          </plugins>
> +        </pluginManagement>
> +        <plugins>
> +          <plugin>
> +            <artifactId>maven-site-plugin</artifactId>
> +            <executions>
> +              <execution>
> +                <id>attach-descriptor</id>
> +                <goals>
> +                  <goal>attach-descriptor</goal>
> +                </goals>
> +              </execution>
> +            </executions>
> +          </plugin>
> +        </plugins>
> +      </build>
> +    </profile>
> +
>    </profiles>
>    <properties>
> 
> Gary Gregory
> Senior Software Engineer
> Rocket Software
> 3340 Peachtree Road, Suite 820 * Atlanta, GA 30326 * USA
> Tel: +1.404.760.1560
> Email: ggregory@seagullsoftware.com<ma...@seagullsoftware.com>
> Web: seagull.rocketsoftware.com<http://www.seagull.rocketsoftware.com/>
> 
> 
> 


-- 
Dennis Lundberg

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


Re: [commons-parent] Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x

Posted by Simone Tripodi <si...@apache.org>.
+1 for me Gary, you've full support from my side on this.
All the best,
Simo

http://people.apache.org/~simonetripodi/
http://www.99soft.org/



On Wed, Jan 19, 2011 at 4:06 PM, Gary Gregory
<GG...@seagullsoftware.com> wrote:
> Hi All:
>
> I'd like to get Maven 3 working with various projects and [codec] today.
>
> To get Maven 3 to work, I'd like to add the following profile to the commons-parent POM.
>
> See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
>
> Any objections or thoughts?
>
> Thank you,
> Gary
>
> Index: pom.xml
> ===================================================================
> --- pom.xml        (revision 1060831)
> +++ pom.xml     (working copy)
> @@ -759,6 +759,45 @@
>         <module>../vfs</module>
>       </modules>
>     </profile>
> +
> +             <!--
> +               Using maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x
> +               See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html
> +             -->
> +    <profile>
> +      <id>maven-3</id>
> +      <activation>
> +        <file>
> +          <!--  The basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
> +          <exists>${basedir}</exists>
> +        </file>
> +      </activation>
> +      <build>
> +        <pluginManagement>
> +          <plugins>
> +            <plugin>
> +              <groupId>org.apache.maven.plugins</groupId>
> +              <artifactId>maven-site-plugin</artifactId>
> +              <version>3.0-beta-3</version>
> +            </plugin>
> +          </plugins>
> +        </pluginManagement>
> +        <plugins>
> +          <plugin>
> +            <artifactId>maven-site-plugin</artifactId>
> +            <executions>
> +              <execution>
> +                <id>attach-descriptor</id>
> +                <goals>
> +                  <goal>attach-descriptor</goal>
> +                </goals>
> +              </execution>
> +            </executions>
> +          </plugin>
> +        </plugins>
> +      </build>
> +    </profile>
> +
>   </profiles>
>   <properties>
>
> Gary Gregory
> Senior Software Engineer
> Rocket Software
> 3340 Peachtree Road, Suite 820 * Atlanta, GA 30326 * USA
> Tel: +1.404.760.1560
> Email: ggregory@seagullsoftware.com<ma...@seagullsoftware.com>
> Web: seagull.rocketsoftware.com<http://www.seagull.rocketsoftware.com/>
>
>
>