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

Qualimétrie Discussion :

[MAVEN PUGINS] Probleme lors de l'utilisation du plugin Dashboard de codehaus


Sujet :

Qualimétrie

  1. #1
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut [MAVEN PUGINS] Probleme lors de l'utilisation du plugin Dashboard de codehaus
    Bonjour,
    J'ai un petit souci de hierarchie de Log dans mon projet et je n'arrive pas a m'en sortir
    voici la stackTrace :
    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    [INFO] Velocity successfully started.
    [INFO] ------------------------------------------------------------------------
    [ERROR] FATAL ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] null
    Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
    [INFO] ------------------------------------------------------------------------
    [INFO] Trace
    java.lang.ExceptionInInitializerError
            at org.codehaus.mojo.dashboard.report.plugin.hibernate.HibernateServiceImpl.initialize(HibernateServiceImpl.java:116)
            at org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.execute(InitializePhase.java:16)
            at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
            at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
            at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
            at org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(ClassicSingletonComponentManager.java:92)
            at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
            at org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:129)
            at org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
            at org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
            at org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.java:1486)
            at org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:29)
            at org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
            at org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:105)
            at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
            at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
            at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
            at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
            at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:609)
            at org.apache.maven.plugin.DefaultPluginManager.getReport(DefaultPluginManager.java:542)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:711)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:661)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:536)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
            at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
            at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
            at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: In
    valid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfi
    gurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.co
    mmons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.c
    ommons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one ver
    sion of 'org.apache.commons.logging.Log' visible, which is not allowed.))
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
            at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
            at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
            at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:120)
            ... 39 more
    Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one
    version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  Yo
    u have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
            at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
            ... 43 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy.  You have more than one version of 'org.apache.commons.logging.Log' visible, w
    hich is not allowed.
            at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:385)
            ... 44 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 21 seconds
    [INFO] Finished at: Mon Aug 18 13:02:20 CEST 2008
    [INFO] Final Memory: 38M/68M
    [INFO] ------------------------------------------------------------------------
    Comment faire pour regler ce probleme ??

  2. #2
    Membre actif Avatar de dvicente72
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 213
    Points : 226
    Points
    226
    Par défaut
    c'est une issue qui a été remontée : MOJO-1118

    sinon la solution est dans la FAQ :

    il faut utiliser le mecanisme de surcharge de dépendances dans Maven 2.0.9

  3. #3
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    Cela ne semble pas changer grand chose

  4. #4
    Membre actif Avatar de dvicente72
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 213
    Points : 226
    Points
    226
    Par défaut
    est-tu en maven 2.0.9 ? peux-tu poster ton pom.xml ?

  5. #5
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    oui je suis en maven-2.0.9
    et pour mon pom.xml c'est assez compliqué :
    j'ai un projet contenant un pom model utilisé par tous les projets d'un client dans notre centre de service :
    le voici
    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    <?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>com.sqli</groupId>
    	<artifactId>model</artifactId>
    	<packaging>pom</packaging>
    	<name>model-project</name>
    	<version>4</version>
    	<description></description>
    
    	<reporting>
    		<plugins>
    			<plugin>
    				<artifactId>maven-javadoc-plugin</artifactId>
    				<version>2.4</version>
    			</plugin>
    
    			<plugin>
    				<artifactId>maven-jxr-plugin</artifactId>
    				<version>2.0</version>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-dependency-plugin</artifactId>
    				<version>2.0</version>
    			</plugin>
    
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>jdepend-maven-plugin</artifactId>
    				<version>2.0-SNAPSHOT</version>
    			</plugin>
    
    			<plugin>
    				<artifactId>
    					maven-project-info-reports-plugin
    				</artifactId>
    				<version>2.1-maestro-1.5</version>
    				<reportSets>
    					<reportSet>
    						<reports>
    							<report>index</report>
    							<report>summary</report>
    							<report>cim</report>
    							<report>scm</report>
    							<report>dependencies</report>
    							<!--							<report>dependency-convergence</report>-->
    							<report>project-team</report>
    						</reports>
    					</reportSet>
    				</reportSets>
    			</plugin>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-checkstyle-plugin</artifactId>
    				<version>2.1</version>
    			</plugin>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-pmd-plugin</artifactId>
    				<version>2.4</version>
    				<configuration>
    					<sourceEncoding>utf-8</sourceEncoding>
    					<targetJdk>1.5</targetJdk>
    				</configuration>
    			</plugin>
    
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>cobertura-maven-plugin</artifactId>
    				<version>2.2</version>
    			</plugin>
    
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-surefire-report-plugin</artifactId>
    				<version>2.4.3</version>
    			</plugin>
    			<!--			<plugin>-->
    			<!--				<groupId>org.apache.maven.plugins</groupId>-->
    			<!--				<artifactId>maven-plugin-plugin</artifactId>-->
    			<!--				<version>2.4.1</version>-->
    			<!--			</plugin>-->
    			<!--			<plugin>-->
    			<!--				<groupId>org.codehaus.mojo</groupId>-->
    			<!--				<artifactId>findbugs-maven-plugin</artifactId>-->
    			<!--				<version>1.1.1</version>-->
    			<!--				<configuration>-->
    			<!--					<xmlOutput>true</xmlOutput>-->
    			<!--					<effort>Max</effort>-->
    			<!--				</configuration>-->
    			<!--			</plugin>-->
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>dashboard-maven-plugin</artifactId>
    				<version>1.0.0-beta-1</version>
    			</plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>taglist-maven-plugin</artifactId>
    				<version>2.1</version>
    				<configuration>
    					<tags>
    						<tag>TODO</tag>
    						<tag>@TODO</tag>
    						<tag>FIXME</tag>
    						<tag>@FIXME</tag>
    					</tags>
    				</configuration>
    			</plugin>
    		</plugins>
    	</reporting>
    
    	<build>
    		<pluginManagement>
    			<plugins>
    				<plugin>
    					<artifactId>maven-checkstyle-plugin</artifactId>
    					<version>2.1</version>
    					<configuration>
    						<configLocation>
    							${checkstyleLocation}
    						</configLocation>
    					</configuration>
    				</plugin>
    				<plugin>
    					<groupId>org.codehaus.mojo</groupId>
    					<artifactId>dashboard-maven-plugin</artifactId>
    					<version>1.0.0-beta-1</version>
    
    					<!--jar file that has the jdbc driver -->
    					<dependencies>
    						<dependency>
    							<groupId>postgresql</groupId>
    							<artifactId>postgresql</artifactId>
    							<version>8.1-404.jdbc3</version>
    						</dependency>
    					</dependencies>
    					<configuration>
    						<configLocation>
    							${dashboardConfigLocation}
    						</configLocation>
    
    						<!-- set the hibernate dialect for your specific database -->
    						<dialect>${reportDB.hibernateDialect}</dialect>
    						<!-- database driver classname -->
    						<driverClass>
    							${reportDB.driverClass}
    						</driverClass>
    						<!-- database URL -->
    						<connectionUrl>
    							${reportDataBaseConnectionURL}
    						</connectionUrl>
    						<!-- database username -->
    						<username>${reportDB.username}</username>
    						<!-- database password -->
    						<password>${reportDB.password}</password>
    					</configuration>
    				</plugin>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-plugin-plugin</artifactId>
    					<version>2.4.1</version>
    				</plugin>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-site-plugin</artifactId>
    					<configuration>
    						<siteDirectory>
    							${MaestroDistributionManagementSiteUrl}
    						</siteDirectory>
    						<locales>fr</locales>
    					</configuration>
    
    				</plugin>
    				<plugin>
    					<artifactId>maven-clean-plugin</artifactId>
    					<configuration>
    						<filesets>
    							<fileset>
    								<directory>target-eclipse</directory>
    								<includes>
    									<include>**/*</include>
    								</includes>
    								<followSymlinks>false</followSymlinks>
    							</fileset>
    							<fileset>
    								<directory>
    									WebContent/WEB-INF/lib
    								</directory>
    								<includes>
    									<include>*.jar</include>
    								</includes>
    								<followSymlinks>false</followSymlinks>
    							</fileset>
    						</filesets>
    					</configuration>
    				</plugin>
    				<plugin>
    					<groupId>org.apache.maven.plugins</groupId>
    					<artifactId>maven-release-plugin</artifactId>
    					<configuration>
    						<preparationGoals>
    							clean install
    						</preparationGoals>
    						<goals>clean deploy</goals>
    						
    					</configuration>
    				</plugin>
    			</plugins>
    		</pluginManagement>
    	</build>
    
    	<ciManagement>
    		<system>Maestro v1.5 - Continuum v 1.1</system>
    		<url>${maestro.continuum.url}</url>
    	</ciManagement>
    
    	<inceptionYear>2008</inceptionYear>
    
    	<issueManagement>
    		<system>Mantis</system>
    	</issueManagement>
    
    
    
    	<distributionManagement>
    		<repository>
    			<id>deploy</id>
    			<name>Maestro repository</name>
    			<url>${DistributionManagementRepositoryUrl}</url>
    		</repository>
    		<snapshotRepository>
    			<id>deploy</id>
    			<name>Maestro repository</name>
    			<url>${DistributionManagementSnapshotRepositoryUrl}</url>
    		</snapshotRepository>
    		<site>
    			<id>gene.site</id>
    			<name>${project-code}</name>
    			<url>${MaestroDistributionManagementSiteUrl}</url>
    		</site>
    	</distributionManagement>
    </project>
    ensuite je l'utilise dans un de mes projets comme suis
    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
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    <project 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>com.sqli.slg</groupId>
    	<artifactId>SLGParent</artifactId>
    	<packaging>pom</packaging>
    	<name>SLG :: Parent</name>
    	<version>01.00.00.009-SNAPSHOT</version>
    	<description />
    
    	<parent>
    		<groupId>com.sqli</groupId>
    		<artifactId>model</artifactId>
    		<version>4</version>
    	</parent>
    
    	<properties>
    		<project_name>SLG</project_name>
    		<socle.version>v3.2</socle.version>
    		<framework.version>3.4.4</framework.version>
    		<codeAppli>SLG</codeAppli>
    		<versionApplication>${project.version}</versionApplication>
    	</properties>
    
    
    	<scm>
    		<connection>xxxxxx</connection>
    		<developerConnection>xxxxx</developerConnection>
    	</scm>
    
    	<modules>
    		<module>SLG</module>
    		<module>SLGProperties</module>
    		<module>SLGEJB</module>
    		<module>SLGWEB</module>
    		<module>SLGBuild</module>
    	</modules>
    
    	<inceptionYear>2008</inceptionYear>
    	<issueManagement>
    		<system>Mantis</system>
    	</issueManagement>
    
    	<build>
    		<extensions>
    			<extension>
    				<groupId>org.apache.maven.wagon</groupId>
    				<artifactId>wagon-webdav</artifactId>
    				<version>1.0-beta-2</version>
    			</extension>
    		</extensions>
    
    		<plugins>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-site-plugin</artifactId>
    				<configuration>
    					<siteDirectory>src/site</siteDirectory>
    					<locales>fr</locales>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
    	<reporting>
    		<outputDirectory>target/site</outputDirectory>
    		<plugins>
    			<plugin>
    				<artifactId>
    					maven-project-info-reports-plugin
    				</artifactId>
    				<reportSets>
    					<reportSet>
    						<reports>
    							<report>index</report>
    							<report>summary</report>
    							<report>cim</report>
    							<report>scm</report>
    							<report>dependencies</report>
    							<report>dependency-convergence</report>
    							<report>project-team</report>
    						</reports>
    					</reportSet>
    				</reportSets>
    			</plugin>
    		</plugins>
    	</reporting>
    	<dependencyManagement>
    		<dependencies>
    			<dependency>
    				<groupId>commons-beanutils</groupId>
    				<artifactId>commons-beanutils</artifactId>
    				<version>1.6</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-collections</groupId>
    				<artifactId>commons-collections</artifactId>
    				<version>2.1</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-fileupload</groupId>
    				<artifactId>commons-fileupload</artifactId>
    				<version>1.0</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-lang</groupId>
    				<artifactId>commons-lang</artifactId>
    				<version>2.1</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-logging</groupId>
    				<artifactId>commons-logging</artifactId>
    				<version>1.1</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-dbcp</groupId>
    				<artifactId>commons-dbcp</artifactId>
    				<version>1.2.2</version>
    			</dependency>
    			<dependency>
    				<groupId>commons-pool</groupId>
    				<artifactId>commons-pool</artifactId>
    				<version>1.4</version>
    			</dependency>
    			<dependency>
    				<groupId>jfree</groupId>
    				<artifactId>jfreechart</artifactId>
    				<version>0.9.21</version>
    			</dependency>
    			<dependency>
    				<groupId>log4j</groupId>
    				<artifactId>log4j</artifactId>
    				<version>1.2.8</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf</groupId>
    				<artifactId>portlet-api</artifactId>
    				<version>1.0</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf</groupId>
    				<artifactId>fwmc</artifactId>
    				<version>3.4.4</version>
    			</dependency>
    			<dependency>
    				<groupId>org.springframework</groupId>
    				<artifactId>spring</artifactId>
    				<version>1.2.7</version>
    			</dependency>
    			<dependency>
    				<groupId>j2ee</groupId>
    				<artifactId>j2ee</artifactId>
    				<version>1.4</version>
    			</dependency>
    			<dependency>
    				<groupId>junit</groupId>
    				<artifactId>junit</artifactId>
    				<version>3.8.2</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf.cheops</groupId>
    				<artifactId>ClientCheops</artifactId>
    				<version>1.4</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf.trace</groupId>
    				<artifactId>TraceHelper</artifactId>
    				<version>1.2.01</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf.form</groupId>
    				<artifactId>DynaForm</artifactId>
    				<version>2.01</version>
    			</dependency>
    			<dependency>
    				<groupId>fr.laposte.disf.auth</groupId>
    				<artifactId>
    					AuthentificationGuichetSecurityManager-fwmc33
    				</artifactId>
    				<version>1.0</version>
    			</dependency>
    			<dependency>
    				<groupId>gnu-regexp</groupId>
    				<artifactId>gnu-regexp</artifactId>
    				<version>1.1.4</version>
    			</dependency>
    			<dependency>
    				<groupId>com.sqli.test</groupId>
    				<artifactId>CDMExterneTest</artifactId>
    				<version>1.0</version>
    				<scope>test</scope>
    			</dependency>
    			<dependency>
    				<groupId>org.springframework</groupId>
    				<artifactId>spring-mock</artifactId>
    				<version>1.2.7</version>
    				<scope>test</scope>
    			</dependency>
    			<dependency>
    				<groupId>org.easymock</groupId>
    				<artifactId>easymock</artifactId>
    				<version>2.4</version>
    				<scope>test</scope>
    			</dependency>
    			<dependency>
    				<groupId>org.easymock</groupId>
    				<artifactId>easymockclassextension</artifactId>
    				<version>2.3</version>
    				<scope>test</scope>
    			</dependency>
    		</dependencies>
    	</dependencyManagement>
    </project>

  6. #6
    Membre actif Avatar de dvicente72
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 213
    Points : 226
    Points
    226
    Par défaut
    il faut rajouter ta dépendance :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <dependency>
    	<groupId>commons-logging</groupId>
    	<artifactId>commons-logging</artifactId>
    	<version>1.1</version>
    </dependency>
    dans ton pom model dans la config du dashboard comme suit :

    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
    .....
    <plugin>
    					<groupId>org.codehaus.mojo</groupId>
    					<artifactId>dashboard-maven-plugin</artifactId>
    					<version>1.0.0-beta-1</version>
     
    					<!--jar file that has the jdbc driver -->
    					<dependencies>
    						<dependency>
    							<groupId>postgresql</groupId>
    							<artifactId>postgresql</artifactId>
    							<version>8.1-404.jdbc3</version>
    						</dependency>
                                                    <dependency>
    	                                             <groupId>commons-logging</groupId>
    	                                        <artifactId>commons-logging</artifactId>
    	                                              <version>1.1</version>
                                                     </dependency>
    					</dependencies>
    					<configuration>
    						<configLocation>
    							${dashboardConfigLocation}
    						</configLocation>
     
    						<!-- set the hibernate dialect for your specific database -->
    						<dialect>${reportDB.hibernateDialect}</dialect>
    						<!-- database driver classname -->
    						<driverClass>
    							${reportDB.driverClass}
    						</driverClass>
    						<!-- database URL -->
    						<connectionUrl>
    							${reportDataBaseConnectionURL}
    						</connectionUrl>
    						<!-- database username -->
    						<username>${reportDB.username}</username>
    						<!-- database password -->
    						<password>${reportDB.password}</password>
    					</configuration>
    				</plugin>
    ......

  7. #7
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    Excuse-moi mais en fait c'est ce que j'ai fais ( petite erreur de copier-coller )
    voila mon pom model
    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
    .....
    				<plugin>
    					<groupId>org.codehaus.mojo</groupId>
    					<artifactId>dashboard-maven-plugin</artifactId>
    					<version>1.0.0-beta-1</version>
    
    					<!--jar file that has the jdbc driver -->
    					<dependencies>
    						<dependency>
    							<groupId>postgresql</groupId>
    							<artifactId>postgresql</artifactId>
    							<version>8.1-404.jdbc3</version>
    						</dependency>
    						<dependency>
    							<groupId>commons-logging</groupId>
    							<artifactId>commons-logging</artifactId>
    							<version>1.1</version>
    						</dependency>
    					</dependencies>
    					<configuration>
    
    						<configLocation>
    							${dashboardConfigLocation}
    						</configLocation>
    
    						<!-- set the hibernate dialect for your specific database -->
    						<dialect>${reportDB.hibernateDialect}</dialect>
    						<!-- database driver classname -->
    						<driverClass>
    							${reportDB.driverClass}
    						</driverClass>
    						<!-- database URL -->
    						<connectionUrl>
    							${reportDataBaseConnectionURL}
    						</connectionUrl>
    						<!-- database username -->
    						<username>${reportDB.username}</username>
    						<!-- database password -->
    						<password>${reportDB.password}</password>
    					</configuration>
    				</plugin>
    .....

  8. #8
    Membre actif Avatar de dvicente72
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 213
    Points : 226
    Points
    226
    Par défaut
    ben là je vois pas ce qui pourrait poser problème car c'est exactement ça qu'il faut faire pour corriger cette incompatibilité entre le commons-logging utilisé dans ton projet et celui utilisé par Hibernate dans le Dashboard.

    A moins que l'override de dépendances ne fonctionne que dans la section build ?

    Dans ce cas, il faut recopier toute ta config dashboard dans la section build et ne laisser que la définition du plugin dashboard dans la section "reporting"

  9. #9
    Membre habitué Avatar de DanielW33
    Profil pro
    Inscrit en
    Mai 2006
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France, Gironde (Aquitaine)

    Informations forums :
    Inscription : Mai 2006
    Messages : 327
    Points : 164
    Points
    164
    Par défaut
    Bon alors voila :
    Il faut effectivement mettre cet override dans la partie Build mais il faut meme la mettre dans la partie <plugins> (alors que moi, je l'ai mis dans la partie <pluginManagement>

    Merci de ton aide

    (Au fait .... super ce plugin
    BRAVO à toi est l'equipe de dev. )

  10. #10
    Membre actif Avatar de dvicente72
    Profil pro
    Inscrit en
    Novembre 2004
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 52
    Localisation : France

    Informations forums :
    Inscription : Novembre 2004
    Messages : 213
    Points : 226
    Points
    226
    Par défaut
    De rien, je suis là pour ça

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [AC-2000] Probleme lors de l'utilisation d'un call
    Par zandeparis dans le forum VBA Access
    Réponses: 5
    Dernier message: 04/11/2009, 21h59
  2. Réponses: 1
    Dernier message: 17/06/2009, 15h42
  3. Réponses: 5
    Dernier message: 11/04/2008, 12h53
  4. Probleme lors de l'utilisation statspack
    Par magboom dans le forum Administration
    Réponses: 6
    Dernier message: 14/08/2007, 17h14
  5. Réponses: 12
    Dernier message: 03/09/2006, 18h26

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