IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

ResourceManager : unable to find resource 'VM_global_library.vm' in any resource load


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre du Club
    Inscrit en
    Juillet 2008
    Messages
    5
    Détails du profil
    Informations forums :
    Inscription : Juillet 2008
    Messages : 5
    Par défaut 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 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é.
    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..

    J'ai oublié le pom.xml:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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:

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

  2. #2
    Membre confirmé
    Inscrit en
    Juillet 2007
    Messages
    68
    Détails du profil
    Informations forums :
    Inscription : Juillet 2007
    Messages : 68
    Par défaut
    ce ne sont que des warning, du moment que tu as à la fin
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    [INFO] ----------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL Gestion:Gestion:war:0.0.1-SNAPSHOT ( task-segment: [site] )
    [INFO] ----------------------------------------------------------------------------
    c bon alors

  3. #3
    Membre expérimenté
    Homme Profil pro
    Inscrit en
    Février 2008
    Messages
    197
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 48
    Localisation : France, Seine et Marne (Île de France)

    Informations forums :
    Inscription : Février 2008
    Messages : 197
    Par défaut
    [WARN] Unable to locate Source XRef to link to - DISABLED
    C'est parceque tu n'as pas activé le rapport XRef pour les liens de PMD et autres plugins. C'est pas grave. Je ne vois pas non plus d'erreur. Quand tu dis le rapport est vide c'est la page blanche ou que tu as tout simplement aucune erreur ?

Discussions similaires

  1. [CR 2008] "Unable to find the report in the manifest resources."
    Par Marc_27 dans le forum SAP Crystal Reports
    Réponses: 2
    Dernier message: 22/01/2010, 10h34
  2. [Checkstyle] [Maven] unable to find resource 'VM_global_library.vm' in any resource loader.
    Par Rambler dans le forum Qualimétrie
    Réponses: 2
    Dernier message: 16/05/2008, 14h21
  3. [Tomcat] Unable to find a javac compiler
    Par wdionysos dans le forum Tomcat et TomEE
    Réponses: 18
    Dernier message: 17/11/2007, 17h23
  4. Réponses: 1
    Dernier message: 26/10/2006, 17h45
  5. [Plugin Tomcat]Unable to find a javac compiler
    Par SEMPERE Benjamin dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 14/12/2005, 11h17

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo