You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Subash Chaturanga <su...@gmail.com> on 2012/03/21 10:19:03 UTC

Problem with Maven Project Info Reports Plugin in maven 3

Hi all,
I am using maven 3.

In Maven Project Info Reports Plugin (version 2.4), I am having problems in
report generating. I found out that, the reason cause of report generation
related to dependency management .

Because in maven-project-info-reports-plugin they have several goals
running and one of them, which is unnecessary for me is
 "project-info-reports:dependency-management"  which
causing me trouble (hangs the build for 4-5 mins saying "[WARNING] The
repository url 'https://repository.jboss.org/maven2/' is invalid -
Repository 'jboss-deprecated-repository' will be blacklisted.").

Is there a way to exclude an goal from the project-info-reports plugin to
get rid from this issue.
(i.e project-info-reports:dependency-management)

Thanks
/Subash

Re: Problem with Maven Project Info Reports Plugin in maven 3

Posted by Subash Chaturanga <su...@gmail.com>.
This is the log I see when maven reports info plugin runs at second time in
single build command

Building index for all the packages and classes...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/overview-tree.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/index-all.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/deprecated-list.html...
Building index for all classes...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/allclasses-frame.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/allclasses-noframe.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/index.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/overview-summary.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/help-doc.html...
Generating
/home/subash/development/carbon/kernel/trunk/core/org.wso2.carbon.registry.core/target/site/testapidocs/stylesheet.css...
[INFO] Generating "Distribution Management" report    ---
maven-project-info-reports-plugin:2.4
[INFO] Generating "About" report    ---
maven-project-info-reports-plugin:2.4
[INFO] Generating "Dependencies" report    ---
maven-project-info-reports-plugin:2.4
[WARNING] The repository url 'https://repository.jboss.org/maven2/' is
invalid - Repository 'jboss-deprecated-repository' will be blacklisted.


...*and buid hangs*.

Can we stop this running second time ?

On Wed, Mar 21, 2012 at 9:47 PM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi Likas,
>
> Thank you very much for the quick response.
>
> Your first link is the way I implemented the pom in maven 2. So I followed
> one of the methods in the link you provided.  According to following
> configuration I must get only the specified reports in the site. But maven
> tries to generate all reports including dependencies .
>
> NOTE: I found this log : [INFO] plugin
> org.apache.maven.plugins:maven-project-info-reports-plugin will be executed
> more than one time
> I think this is what causing. Any idea ?
>
>
> *My pom config*
> *
> *
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-site-plugin</artifactId>
>                 <version>3.0</version>
>                 <executions>
>                 <execution>
>                 <phase>package</phase>
>                 <goals>
>                     <goal>site</goal>
>                 </goals>
>                 <configuration>
>                     <reportPlugins>
>                         <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-project-info-reports-plugin</artifactId>
>                             <version>2.4</version>
>                             <reportSets>
>                                 <reportSet>
>                                     <reports>
>                                         <report>project-team</report>
>                                         <report>mailing-list</report>
>                                         <report>issue-tracking</report>
>                                         <report>license</report>
>                                     </reports>
>                                 </reportSet>
>                             </reportSets>
>                         </plugin>
>                         <plugin>
>                             <groupId>org.apache.maven.plugins</groupId>
>                             <artifactId>maven-javadoc-plugin</artifactId>
>                             <version>2.8</version>
>                         </plugin>
>                     </reportPlugins>
>                 </configuration>
>                 </execution>
>                 </executions>
>             </plugin>
>
>
> Thanks
> /subash
>



-- 
Subash Chaturanga
Department of Computer Science & Engineering
University of Moratuwa
Sri Lanka

Blog -  http://subashsdm.blogspot.com/
Twitter - http://twitter.com/subash89

Re: Problem with Maven Project Info Reports Plugin in maven 3

Posted by Subash Chaturanga <su...@gmail.com>.
Hi Likas,

Thank you very much for the quick response.

Your first link is the way I implemented the pom in maven 2. So I followed
one of the methods in the link you provided.  According to following
configuration I must get only the specified reports in the site. But maven
tries to generate all reports including dependencies .

NOTE: I found this log : [INFO] plugin
org.apache.maven.plugins:maven-project-info-reports-plugin will be executed
more than one time
I think this is what causing. Any idea ?


*My pom config*
*
*
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.0</version>
                <executions>
                <execution>
                <phase>package</phase>
                <goals>
                    <goal>site</goal>
                </goals>
                <configuration>
                    <reportPlugins>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-project-info-reports-plugin</artifactId>
                            <version>2.4</version>
                            <reportSets>
                                <reportSet>
                                    <reports>
                                        <report>project-team</report>
                                        <report>mailing-list</report>
                                        <report>issue-tracking</report>
                                        <report>license</report>
                                    </reports>
                                </reportSet>
                            </reportSets>
                        </plugin>
                        <plugin>
                            <groupId>org.apache.maven.plugins</groupId>
                            <artifactId>maven-javadoc-plugin</artifactId>
                            <version>2.8</version>
                        </plugin>
                    </reportPlugins>
                </configuration>
                </execution>
                </executions>
            </plugin>


Thanks
/subash

Re: Problem with Maven Project Info Reports Plugin in maven 3

Posted by Lukas Theussl <lt...@apache.org>.
http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/selective-project-info-reports.html

Note the different reporting configuration in maven 3:

http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Configuration_formats

HTH,
-Lukas


Subash Chaturanga wrote:
> Hi all,
>
> NOTE : In other words, in my maven-project-info-reports-plugin, it
> generates following.(as logs indicates). I want to remove generating  two
> of them.
> Which are *"Dependency Management*" report  and *"Dependencies"* report .
>   It will be great if anybody can provide me a solution.
>
> [INFO] Generating "About" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Source Repository" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Plugin Management" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Mailing Lists" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Issue Tracking" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Project Plugins" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Project Summary" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "*Dependency Management*" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating *"Dependencies"* report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Project License" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Project Team" report    ---
> maven-project-info-reports-plugin:2.2
> [INFO] Generating "Continuous Integration" report    ---
> maven-project-info-reports-plugin:2.2
>
> On Wed, Mar 21, 2012 at 2:49 PM, Subash Chaturanga<su...@gmail.com>wrote:
>
>> Hi all,
>> I am using maven 3.
>>
>> In Maven Project Info Reports Plugin (version 2.4), I am having problems
>> in report generating. I found out that, the reason cause of report
>> generation related to dependency management .
>>
>> Because in maven-project-info-reports-plugin they have several goals
>> running and one of them, which is unnecessary for me is
>>   "project-info-reports:dependency-management"  which
>> causing me trouble (hangs the build for 4-5 mins saying "[WARNING] The
>> repository url 'https://repository.jboss.org/maven2/' is invalid -
>> Repository 'jboss-deprecated-repository' will be blacklisted.").
>>
>> Is there a way to exclude an goal from the project-info-reports plugin to
>> get rid from this issue.
>> (i.e project-info-reports:dependency-management)
>>
>> Thanks
>> /Subash
>
>
>
>

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


Re: Problem with Maven Project Info Reports Plugin in maven 3

Posted by Subash Chaturanga <su...@gmail.com>.
Hi all,

NOTE : In other words, in my maven-project-info-reports-plugin, it
generates following.(as logs indicates). I want to remove generating  two
of them.
Which are *"Dependency Management*" report  and *"Dependencies"* report .
 It will be great if anybody can provide me a solution.

[INFO] Generating "About" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Source Repository" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Plugin Management" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Mailing Lists" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Issue Tracking" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Project Plugins" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Project Summary" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "*Dependency Management*" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating *"Dependencies"* report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Project License" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Project Team" report    ---
maven-project-info-reports-plugin:2.2
[INFO] Generating "Continuous Integration" report    ---
maven-project-info-reports-plugin:2.2

On Wed, Mar 21, 2012 at 2:49 PM, Subash Chaturanga <su...@gmail.com>wrote:

> Hi all,
> I am using maven 3.
>
> In Maven Project Info Reports Plugin (version 2.4), I am having problems
> in report generating. I found out that, the reason cause of report
> generation related to dependency management .
>
> Because in maven-project-info-reports-plugin they have several goals
> running and one of them, which is unnecessary for me is
>  "project-info-reports:dependency-management"  which
> causing me trouble (hangs the build for 4-5 mins saying "[WARNING] The
> repository url 'https://repository.jboss.org/maven2/' is invalid -
> Repository 'jboss-deprecated-repository' will be blacklisted.").
>
> Is there a way to exclude an goal from the project-info-reports plugin to
> get rid from this issue.
> (i.e project-info-reports:dependency-management)
>
> Thanks
> /Subash




-- 
Subash Chaturanga
Department of Computer Science & Engineering
University of Moratuwa
Sri Lanka

Blog -  http://subashsdm.blogspot.com/
Twitter - http://twitter.com/subash89