Hi,

have a look here [1] for how to configure the project-info-reports plugin to only render a set of specified reports.

However, when doing 'mvn site' on your pom I don't get the error you posted. The scm-report generated page just contains a 'No source configuration management system is defined. Please check back at a later date.' message and this is the expected behaviour.

Looking at the log output there are many of these:

---
[WARN] POM for 'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
---

Probably the pom somehow got corrupted in your local repository. Just delete the directory containing the artifact from disk (.m2/repository/org/apache/maven/scm/maven-scm-provider-cvsexe/) and run 'mvn site' again so that maven redownloads the artifact and most probably the error will go away.

-Tim

Claudio Tamietto schrieb:
I'm tryng to use maven 2.0.7 with the following POM

<?xml version="1.0" encoding="UTF-8"?>

<!--

/***************************************************************************
****

* Copyright (c) 2005, 2007 Naci Dai, Lawrence Mandel, and Arthur Ryman.

* All rights reserved. This program and the accompanying materials

* are made available under the terms of the Eclipse Public License v1.0

* which accompanies this distribution, and is available at

* http://www.eclipse.org/legal/epl-v10.html

*

* This sample developed for the book

*     Eclipse Web Tools Platform: Developing Java Web Applications

* See http://eclipsewtp.org

****************************************************************************
***/

-->

<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>

            <artifactId>leagueplanet</artifactId>

            <groupId>com.leagueplanet</groupId>

            <name>LeaguePlanet.com Web Project</name>

            <version>1.0-SNAPSHOT</version>

            <packaging>war</packaging>

            <organization>

                        <name>LeaguePlanet.com</name>

                        <url>http://www.leagueplanet.com/</url>

            </organization>

            <description>

                        An example project showing how to use eclipse
WebTools Platform

                        and Maven for Java Web Development.

            </description>

            <licenses>

                        <license>

                                    <comments>Eclipse Public Licence
(EPL)v1.0</comments>

<url>http://www.eclipse.org/legal/epl-v10.html</url>

                        </license>

            </licenses>

            <developers>

                        <developer>

                                    <id>ndai</id>

                                    <name>Naci Dai</name>

                                    <email>[EMAIL PROTECTED]</email>

                                    <organization>Eteration</organization>

                        </developer>

                        <developer>

                                    <id>lmandel</id>

                                    <name>Lawrence Mandel</name>

                                    <email>[EMAIL PROTECTED]</email>

                                    <organization>IBM</organization>

                        </developer>

                        <developer>

                                    <id>ryman</id>

                                    <name>Arthur Ryman</name>

                                    <email>[EMAIL PROTECTED]</email>

                                    <organization>IBM</organization>

                        </developer>

            </developers>

            <build>

                        <finalName>${artifactId}-${version}</finalName>

            </build>

            <dependencies>

                        <dependency>

                                    <groupId>junit</groupId>

                                    <artifactId>junit</artifactId>

                                    <version>3.8.1</version>

                                    <scope>test</scope>

                        </dependency>

                        <dependency>

                                    <groupId>struts</groupId>

                                    <artifactId>struts</artifactId>

                                    <version>1.2.7</version>

                        </dependency>

                        <dependency>

                                    <groupId>struts</groupId>

                                    <artifactId>struts-el</artifactId>

                                    <version>1.2.7</version>

                        </dependency>

                        <dependency>

                                    <groupId>commons-validator</groupId>

<artifactId>commons-validator</artifactId>

                                    <version>1.1.4</version>

                        </dependency>

                        <dependency>

                                    <groupId>commons-logging</groupId>

                                    <artifactId>commons-logging</artifactId>

                                    <version>1.0.3</version>

                        </dependency>

                        <dependency>

                                    <groupId>commons-fileupload</groupId>

<artifactId>commons-fileupload</artifactId>

                                    <version>1.0</version>

                        </dependency>

                        <dependency>

                                    <groupId>antlr</groupId>

                                    <artifactId>antlr</artifactId>

                                    <version>2.7.5</version>

                        </dependency>

                        <dependency>

                                    <groupId>commons-digester</groupId>

<artifactId>commons-digester</artifactId>

                                    <version>1.7</version>

                        </dependency>

                        <dependency>

                                    <groupId>commons-beanutils</groupId>

<artifactId>commons-beanutils</artifactId>

                                    <version>1.7.0</version>

                        </dependency>

                        <dependency>

                                    <groupId>oro</groupId>

                                    <artifactId>oro</artifactId>

                                    <version>2.0.8</version>

                        </dependency>

                        <dependency>

                                    <groupId>servletapi</groupId>

                                    <artifactId>servletapi</artifactId>

                                    <version>2.3</version>

                        </dependency>

            </dependencies>

            <reporting>

                        <plugins>

                                    <plugin>

<groupId>org.apache.maven.plugins</groupId>

                                                <artifactId>

maven-project-info-reports-plugin

                                                </artifactId>

                                    </plugin>

                                    <plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-surefire-report-plugin</artifactId>

                                    </plugin>

                        </plugins>

            </reporting>

</project>

When i run the command

mvn site
i get the following error

[INFO] Scanning for projects...

[INFO]
----------------------------------------------------------------------------

[INFO] Building LeaguePlanet.com Web Project

[INFO]    task-segment: [site]

[INFO]
----------------------------------------------------------------------------

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] statemgmt:start-fork

[INFO] Starting forked execution [fork id: -2027349867]

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

[INFO] Setting property: velocimacro.messages.on => 'false'.

[INFO] Setting property: resource.loader => 'classpath'.

[INFO] Setting property: resource.manager.logwhenfound => 'false'.

[INFO] project-info-reports:cim

[INFO] artifact org.apache.maven.skins:maven-default-skin: checking for
updates from central

[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0

[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[WARN] While downloading javax.servlet:servlet-api:2.3

  This artifact has been relocated to javax.servlet:servlet-api:2.3.

[INFO] project-info-reports:dependencies

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:dependency-convergence

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:issue-tracking

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:license

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:mailing-list

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:index

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:summary

[WARN] POM for
'org.apache.maven.scm:maven-scm-provider-cvsexe:pom:1.0-beta-3:runtime' is
invalid. It will be ignored for artifact resolution. Reason: Not a v4.0.0
POM.

[INFO] project-info-reports:scm

java.lang.NoClassDefFoundError:
org/apache/maven/scm/provider/cvslib/repository/CvsScmProviderRepository

            at
org.apache.maven.report.projectinfo.ScmReport.executeReport(ScmReport.java:8
4)

            at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.
java:101)

            at
org.apache.maven.report.projectinfo.AbstractProjectInfoReport.execute(Abstra
ctProjectInfoReport.java:164)

            at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:653)

            at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:354)

            at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:255)

            at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:141)

            at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:304)

            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:124)

            at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:906)

            at
org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:82)

ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code =
-2

JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):
[../../../src/share/back/util.c:820]

it seems to me that maven try to use a cvs command but in this project i
don't use CVS or another scm.

How can I disable this section of the reports ?

Thanks for any answer




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to