You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Daniel Serodio (lists)" <da...@xxx.com.br> on 2011/06/07 23:29:43 UTC

Why isn't Maven using the (site) plugin version I told it?

When I run "mvn site", I get a "AbstractMethodError [...] 
SiteRendererSink.unknown" error. As reported in SUREFIRE-714, 
maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told 
Maven to use these versions of the plugins, but it's still using 
maven-site-plugin 2.0-beta-7

I'm using Maven 2.2.1 BTW.

Why isn't Maven using the plugin versions I told it to use?

Thanks in advance,
Daniel Serodio



<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>busca-web</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Busca</name>
<description>Busca - Frontent Web</description>

<properties>
<project.build.sourceEncoding>ISO8859-1</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>2.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.8</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
</plugins>
</reporting>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.6</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>


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


Re: Why isn't Maven using the (site) plugin version I told it?

Posted by Jörg Schaible <jo...@scalaris.com>.
Daniel Serodio (lists) wrote:

> That was it. Thanks a lot.
> 
> Is there somewhere in the documentation I could've found this information?

Type column: http://maven.apache.org/plugins/

- Jörg


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


Re: Why isn't Maven using the (site) plugin version I told it?

Posted by Dennis Lundberg <de...@apache.org>.
On 2011-06-08 00:45, Daniel Serodio (lists) wrote:
> That was it. Thanks a lot.
> 
> Is there somewhere in the documentation I could've found this information?

Yes, it's here:

http://maven.apache.org/plugins/maven-site-plugin/plugin-info.html

> 
> Benson Margulies wrote:
>> The site plugin does not go into<reporting/>  . Put that into
>> <pluginManagement><plugins/></pluginManagement>
>>
>> On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists)
>> <da...@xxx.com.br>  wrote:
>>> When I run "mvn site", I get a "AbstractMethodError [...]
>>> SiteRendererSink.unknown" error. As reported in SUREFIRE-714,
>>> maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told
>>> Maven to use these versions of the plugins, but it's still using
>>> maven-site-plugin 2.0-beta-7
>>>
>>> I'm using Maven 2.2.1 BTW.
>>>
>>> Why isn't Maven using the plugin versions I told it to use?
>>>
>>> Thanks in advance,
>>> Daniel Serodio
>>>
>>>
>>>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>> <groupId>com.example</groupId>
>>> <artifactId>busca-web</artifactId>
>>> <version>1.0.0-SNAPSHOT</version>
>>> <packaging>war</packaging>
>>> <name>Busca</name>
>>> <description>Busca - Frontent Web</description>
>>>
>>> <properties>
>>> <project.build.sourceEncoding>ISO8859-1</project.build.sourceEncoding>
>>> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
>>>
>>> </properties>
>>>
>>> <build>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> <configuration>
>>> <source>1.6</source>
>>> <target>1.6</target>
>>> </configuration>
>>> </plugin>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-resources-plugin</artifactId>
>>> </plugin>
>>> </plugins>
>>> </build>
>>>
>>> <reporting>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-site-plugin</artifactId>
>>> <version>2.3</version>
>>> </plugin>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-surefire-report-plugin</artifactId>
>>> <version>2.8</version>
>>> <configuration>
>>> <outputEncoding>UTF-8</outputEncoding>
>>> </configuration>
>>> </plugin>
>>> </plugins>
>>> </reporting>
>>>
>>> <dependencies>
>>> <dependency>
>>> <groupId>org.slf4j</groupId>
>>> <artifactId>slf4j-api</artifactId>
>>> <version>1.6.1</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.slf4j</groupId>
>>> <artifactId>slf4j-log4j12</artifactId>
>>> <version>1.6.1</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>commons-lang</groupId>
>>> <artifactId>commons-lang</artifactId>
>>> <version>2.6</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>mysql</groupId>
>>> <artifactId>mysql-connector-java</artifactId>
>>> <version>5.1.6</version>
>>> </dependency>
>>>
>>> <dependency>
>>> <groupId>junit</groupId>
>>> <artifactId>junit</artifactId>
>>> <version>4.8.1</version>
>>> <scope>test</scope>
>>> </dependency>
>>>
>>> <dependency>
>>> <groupId>javax.servlet</groupId>
>>> <artifactId>servlet-api</artifactId>
>>> <version>2.5</version>
>>> <scope>provided</scope>
>>> </dependency>
>>> </dependencies>
>>>
>>> </project>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> 


-- 
Dennis Lundberg

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


Re: Why isn't Maven using the (site) plugin version I told it?

Posted by Benson Margulies <bi...@gmail.com>.
Well, that's a hard question.

The site plugin is just a plugin. So it goes in amongst the plugins.

The site plugin's job is to run the *reporting* plugins. They's a
different species, and live in the <reporting/> section. As of Maven
3, the <reporting/> section is on the way out in favor of plugins
attached to the site plugin itself.



On Tue, Jun 7, 2011 at 6:45 PM, Daniel Serodio (lists)
<da...@xxx.com.br> wrote:
> That was it. Thanks a lot.
>
> Is there somewhere in the documentation I could've found this information?
>
> Benson Margulies wrote:
>>
>> The site plugin does not go into<reporting/>  . Put that into
>> <pluginManagement><plugins/></pluginManagement>
>>
>> On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists)
>> <da...@xxx.com.br>  wrote:
>>>
>>> When I run "mvn site", I get a "AbstractMethodError [...]
>>> SiteRendererSink.unknown" error. As reported in SUREFIRE-714,
>>> maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told
>>> Maven to use these versions of the plugins, but it's still using
>>> maven-site-plugin 2.0-beta-7
>>>
>>> I'm using Maven 2.2.1 BTW.
>>>
>>> Why isn't Maven using the plugin versions I told it to use?
>>>
>>> Thanks in advance,
>>> Daniel Serodio
>>>
>>>
>>>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>> <modelVersion>4.0.0</modelVersion>
>>> <groupId>com.example</groupId>
>>> <artifactId>busca-web</artifactId>
>>> <version>1.0.0-SNAPSHOT</version>
>>> <packaging>war</packaging>
>>> <name>Busca</name>
>>> <description>Busca - Frontent Web</description>
>>>
>>> <properties>
>>> <project.build.sourceEncoding>ISO8859-1</project.build.sourceEncoding>
>>>
>>> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
>>> </properties>
>>>
>>> <build>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-compiler-plugin</artifactId>
>>> <configuration>
>>> <source>1.6</source>
>>> <target>1.6</target>
>>> </configuration>
>>> </plugin>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-resources-plugin</artifactId>
>>> </plugin>
>>> </plugins>
>>> </build>
>>>
>>> <reporting>
>>> <plugins>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-site-plugin</artifactId>
>>> <version>2.3</version>
>>> </plugin>
>>> <plugin>
>>> <groupId>org.apache.maven.plugins</groupId>
>>> <artifactId>maven-surefire-report-plugin</artifactId>
>>> <version>2.8</version>
>>> <configuration>
>>> <outputEncoding>UTF-8</outputEncoding>
>>> </configuration>
>>> </plugin>
>>> </plugins>
>>> </reporting>
>>>
>>> <dependencies>
>>> <dependency>
>>> <groupId>org.slf4j</groupId>
>>> <artifactId>slf4j-api</artifactId>
>>> <version>1.6.1</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>org.slf4j</groupId>
>>> <artifactId>slf4j-log4j12</artifactId>
>>> <version>1.6.1</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>commons-lang</groupId>
>>> <artifactId>commons-lang</artifactId>
>>> <version>2.6</version>
>>> </dependency>
>>> <dependency>
>>> <groupId>mysql</groupId>
>>> <artifactId>mysql-connector-java</artifactId>
>>> <version>5.1.6</version>
>>> </dependency>
>>>
>>> <dependency>
>>> <groupId>junit</groupId>
>>> <artifactId>junit</artifactId>
>>> <version>4.8.1</version>
>>> <scope>test</scope>
>>> </dependency>
>>>
>>> <dependency>
>>> <groupId>javax.servlet</groupId>
>>> <artifactId>servlet-api</artifactId>
>>> <version>2.5</version>
>>> <scope>provided</scope>
>>> </dependency>
>>> </dependencies>
>>>
>>> </project>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>

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


Re: Why isn't Maven using the (site) plugin version I told it?

Posted by "Daniel Serodio (lists)" <da...@xxx.com.br>.
That was it. Thanks a lot.

Is there somewhere in the documentation I could've found this information?

Benson Margulies wrote:
> The site plugin does not go into<reporting/>  . Put that into
> <pluginManagement><plugins/></pluginManagement>
>
> On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists)
> <da...@xxx.com.br>  wrote:
>> When I run "mvn site", I get a "AbstractMethodError [...]
>> SiteRendererSink.unknown" error. As reported in SUREFIRE-714,
>> maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told
>> Maven to use these versions of the plugins, but it's still using
>> maven-site-plugin 2.0-beta-7
>>
>> I'm using Maven 2.2.1 BTW.
>>
>> Why isn't Maven using the plugin versions I told it to use?
>>
>> Thanks in advance,
>> Daniel Serodio
>>
>>
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/maven-v4_0_0.xsd">
>> <modelVersion>4.0.0</modelVersion>
>> <groupId>com.example</groupId>
>> <artifactId>busca-web</artifactId>
>> <version>1.0.0-SNAPSHOT</version>
>> <packaging>war</packaging>
>> <name>Busca</name>
>> <description>Busca - Frontent Web</description>
>>
>> <properties>
>> <project.build.sourceEncoding>ISO8859-1</project.build.sourceEncoding>
>> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
>> </properties>
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-compiler-plugin</artifactId>
>> <configuration>
>> <source>1.6</source>
>> <target>1.6</target>
>> </configuration>
>> </plugin>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-resources-plugin</artifactId>
>> </plugin>
>> </plugins>
>> </build>
>>
>> <reporting>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-site-plugin</artifactId>
>> <version>2.3</version>
>> </plugin>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-surefire-report-plugin</artifactId>
>> <version>2.8</version>
>> <configuration>
>> <outputEncoding>UTF-8</outputEncoding>
>> </configuration>
>> </plugin>
>> </plugins>
>> </reporting>
>>
>> <dependencies>
>> <dependency>
>> <groupId>org.slf4j</groupId>
>> <artifactId>slf4j-api</artifactId>
>> <version>1.6.1</version>
>> </dependency>
>> <dependency>
>> <groupId>org.slf4j</groupId>
>> <artifactId>slf4j-log4j12</artifactId>
>> <version>1.6.1</version>
>> </dependency>
>> <dependency>
>> <groupId>commons-lang</groupId>
>> <artifactId>commons-lang</artifactId>
>> <version>2.6</version>
>> </dependency>
>> <dependency>
>> <groupId>mysql</groupId>
>> <artifactId>mysql-connector-java</artifactId>
>> <version>5.1.6</version>
>> </dependency>
>>
>> <dependency>
>> <groupId>junit</groupId>
>> <artifactId>junit</artifactId>
>> <version>4.8.1</version>
>> <scope>test</scope>
>> </dependency>
>>
>> <dependency>
>> <groupId>javax.servlet</groupId>
>> <artifactId>servlet-api</artifactId>
>> <version>2.5</version>
>> <scope>provided</scope>
>> </dependency>
>> </dependencies>
>>
>> </project>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

Re: Why isn't Maven using the (site) plugin version I told it?

Posted by Benson Margulies <bi...@gmail.com>.
The site plugin does not go into <reporting/> . Put that into
<pluginManagement><plugins/></pluginManagement>

On Tue, Jun 7, 2011 at 5:29 PM, Daniel Serodio (lists)
<da...@xxx.com.br> wrote:
> When I run "mvn site", I get a "AbstractMethodError [...]
> SiteRendererSink.unknown" error. As reported in SUREFIRE-714,
> maven-surefire-plugin 2.8 needs maven-site-plugin 2.1 or greater; I told
> Maven to use these versions of the plugins, but it's still using
> maven-site-plugin 2.0-beta-7
>
> I'm using Maven 2.2.1 BTW.
>
> Why isn't Maven using the plugin versions I told it to use?
>
> Thanks in advance,
> Daniel Serodio
>
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.example</groupId>
> <artifactId>busca-web</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> <packaging>war</packaging>
> <name>Busca</name>
> <description>Busca - Frontent Web</description>
>
> <properties>
> <project.build.sourceEncoding>ISO8859-1</project.build.sourceEncoding>
> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
> </properties>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.6</source>
> <target>1.6</target>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> </plugin>
> </plugins>
> </build>
>
> <reporting>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-site-plugin</artifactId>
> <version>2.3</version>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-report-plugin</artifactId>
> <version>2.8</version>
> <configuration>
> <outputEncoding>UTF-8</outputEncoding>
> </configuration>
> </plugin>
> </plugins>
> </reporting>
>
> <dependencies>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-api</artifactId>
> <version>1.6.1</version>
> </dependency>
> <dependency>
> <groupId>org.slf4j</groupId>
> <artifactId>slf4j-log4j12</artifactId>
> <version>1.6.1</version>
> </dependency>
> <dependency>
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> <version>2.6</version>
> </dependency>
> <dependency>
> <groupId>mysql</groupId>
> <artifactId>mysql-connector-java</artifactId>
> <version>5.1.6</version>
> </dependency>
>
> <dependency>
> <groupId>junit</groupId>
> <artifactId>junit</artifactId>
> <version>4.8.1</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> <scope>provided</scope>
> </dependency>
> </dependencies>
>
> </project>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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