[ 
http://jira.codehaus.org/browse/MOJO-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_111788
 ] 

Marat Radchenko commented on MOJO-937:
--------------------------------------

Hi, David
Looks like maven cannot download plugin. Did you add snapshot repo as described 
at http://mojo.codehaus.org/using-sandbox-plugins.html?

Anyway, I've uploaded a little bit changed version of plugin.

That's how I've tested it:

# removed all ~/.m2/repository
# ran "mvn archetype:create -DartifactId=test -DgroupId=test && cd test && 
touch test.xml"
# added pluginRepository as described at 
http://mojo.codehaus.org/using-sandbox-plugins.html to pom.xml
# added reporting configuration. full pom.xml:
{code:xml}
<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>test</groupId>
  <artifactId>test</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <pluginRepositories>
    <pluginRepository>
      <id>Codehaus Snapshots</id>
      <url>http://snapshots.repository.codehaus.org/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>
  </pluginRepositories>
  <reporting>
    <plugins>
        <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>maven-springbeandoc-plugin</artifactId>
                <version>1.0.8-SNAPSHOT</version>
                <configuration>
                        <executable>/usr/bin/dot</executable>
                        <resources>
                                <resource>test.xml</resource>
                        </resources>
                </configuration>
        </plugin>
    </plugins>
  </reporting>
</project>
{code}
# ran "mvn site". It triggered downloading of maven-springbeandoc-plugin. Of 
course build failed because of fake spring config, but plugin was downloaded 
and executed.

Please tell me if this helped you or give more details (preferrably small test 
project).

> org.codehaus.mojo:maven-springbeandoc-plugin fails when generating site-report
> ------------------------------------------------------------------------------
>
>                 Key: MOJO-937
>                 URL: http://jira.codehaus.org/browse/MOJO-937
>             Project: Mojo
>          Issue Type: Bug
>         Environment: maven 2.0.7/JDK 1.6.0_03
>            Reporter: David J. M. Karlsen
>            Assignee: Marat Radchenko
>            Priority: Critical
>
> The springbeandoc plugin fails during site-generation:
> -----------------------------------------------------
> this realm = 
> app0.child-container[org.codehaus.mojo:maven-springbeandoc-plugin]
> urls[0] = 
> file:/c:/data/.m2/repository/org/codehaus/mojo/maven-springbeandoc-plugin/1.0.8-SNAPSHOT/maven-springbeandoc-p
> lugin-1.0.8-SNAPSHOT.jar
> urls[1] = 
> file:/c:/data/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> Number of imports: 4
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> this realm = plexus.core
> urls[0] = file:/c:/data/maven-2.0.7/bin/../lib/maven-core-2.0.7-uber.jar
> urls[1] = 
> file:/c:/data/.m2/repository/com/sybase/jconnect3/6.0.5/jconnect3-6.0.5.jar
> Number of imports: 4
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> -----------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error getting reports from the plugin 
> 'org.codehaus.mojo:maven-springbeandoc-plugin': Unable to find the mojo 'or
> g.codehaus.mojo:maven-springbeandoc-plugin:1.0.8-SNAPSHOT:springbeandoc' in 
> the plugin 'org.codehaus.mojo:maven-springbe
> andoc-plugin'
> org/apache/maven/reporting/AbstractMavenReport
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Wed Oct 24 12:53:05 CEST 2007
> [INFO] Final Memory: 19M/34M
> [INFO] 
> ------------------------------------------------------------------------
> Config:
> <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>       <artifactId>maven-springbeandoc-plugin</artifactId>
>       <version>1.0.8-SNAPSHOT</version>
>       <configuration>
>               <resources>
>                       <resource>src/main/config/beanRefContext.xml</resource>
>               </resources>
>       </configuration>
> </plugin>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to