ResourceManager : unable to find resource 'VM_global_library.vm' in any resource load
Bonjour tout le monde
j'ai un problème pour la génération des rapports sous maven (PMD, Checkstyle, Javadoc..).Lors de l'execution de mvn site, le site est créé mais les rapports non :roll: et j'ai l'erreur : "ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader." en plus j'ai le warning:"Unable to locate Source XRef to link to - DISABLED"
Pour pmd, il génère un rapport vide, alors que pour checkstyle et javadoc je n'ai même pas le lien depuis le site généré.:cry:
Je mentionne que je travaille sous eclipse, et que si je lance la génération des rapports pmd depuis le projet, c'est fait comme il le faut dans un dossier Projet/reports.
Aidez-moi s'il vous plait..j'attend vos réponses avec impatience:(
Merci infiniment..:oops:
J'ai oublié le pom.xml:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| <?xml version="1.0" encoding="UTF-8"?>
<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>Gestion</groupId>
<artifactId>Gestion</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Gestion</name>
<url>http://localhost:9090/Gestion</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<minmemory>128m</minmemory>
<maxmemory>512m</maxmemory>
</configuration>
</plugin>
</plugins>
</reporting>
</project> |
et Dans la console j'ai ceci:
Citation:
[INFO] ----------------------------------------------------------------------------
[INFO] Building Gestion
[INFO] task-segment: [site]
[INFO] ----------------------------------------------------------------------------
[INFO] statemgmt:start-fork
[INFO] Starting forked execution [fork id: -954705705]
[INFO] pmd:pmd
[WARN] Unable to locate Source XRef to link to - DISABLED
[INFO] pmd:cpd
[WARN] Unable to locate Source XRef to link to - DISABLED
[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] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] checkstyle:checkstyle
[INFO] Source directory does not exist - skipping report.
[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] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] javadoc:javadoc
[INFO] javadoc:test-javadoc
[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
[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
[INFO] project-info-reports:dependencies
[INFO] project-info-reports:dependency-convergence
[INFO] project-info-reports:issue-tracking
[INFO] project-info-reports:license
[INFO] project-info-reports:mailing-list
[INFO] project-info-reports:index
[INFO] project-info-reports:summary
[INFO] project-info-reports:scm
[INFO] project-info-reports:project-team
[INFO] statemgmt:end-fork
[INFO] Ending forked execution [fork id: -954705705]
[INFO] site:site
[INFO] Generating "Issue Tracking" report.
[INFO] Generating "Project Team" report.
[INFO] Generating "Continuous Integration" report.
[INFO] Generating "PMD Report" report.
[WARN] Unable to locate Source XRef to link to - DISABLED
[INFO] Generating "Dependencies" report.
[INFO] Generating "Source Repository" report.
[INFO] Generating "Mailing Lists" report.
[INFO] Generating "Project Summary" report.
[INFO] Generating "About" report.
[INFO] Generating "Project License" report.
[INFO] Generating "CPD Report" report.
[WARN] Unable to locate Source XRef to link to - DISABLED
[INFO] statemgmt:clear-fork-context
[INFO] Cleaning up forked execution context [fork id: -954705705]
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL Gestion:Gestion:war:0.0.1-SNAPSHOT ( task-segment: [site] )
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 38 second
[INFO] Finished at: Fri Aug 15 16:00:29 GMT 2008
[INFO] Memory 7M/44M
[INFO] ----------------------------------------------------------------------------