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 :

Pb avec les "missing artifact"


Sujet :

Maven Java

  1. #1
    Membre à l'essai
    Homme Profil pro
    Ingénieur Études et développements
    Inscrit en
    Avril 2008
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Études et développements
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 29
    Points : 22
    Points
    22
    Par défaut Pb avec les "missing artifact"
    Bonjour,

    j'utilise Springsource Tool Suite (2.6.0) et donc maven (2.2.1) et lorsque que je créé un nouveau projet (par exemple : spring roo project), j'ai un gros problème de dépendances. J'ai essayé de résoudre le problème en regardant sur google mais rien n'a marché et j'ai vu personne avec autant de "missing artifact". Si quelqu'un a une hypothèse, merci d'avance.

    Voici le message d'erreur console :
    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
    22/04/11 10:46:01 CEST: Missing artifact junit:junit:jar:4.8.2:test
    22/04/11 10:46:01 CEST: Missing artifact log4j:log4j:jar:1.2.16:compile
    22/04/11 10:46:01 CEST: Missing artifact org.slf4j:slf4j-api:jar:1.6.1:compile
    22/04/11 10:46:01 CEST: Missing artifact org.slf4j:jcl-over-slf4j:jar:1.6.1:compile
    22/04/11 10:46:01 CEST: Missing artifact org.slf4j:slf4j-log4j12:jar:1.6.1:compile
    22/04/11 10:46:01 CEST: Missing artifact javax.servlet:servlet-api:jar:2.5:provided
    22/04/11 10:46:01 CEST: Missing artifact net.sf.flexjson:flexjson:jar:2.1:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-core:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-test:jar:3.0.5.RELEASE:test
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-context:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact aopalliance:aopalliance:jar:1.0:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-aspects:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-context-support:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Missing artifact org.springframework:spring-tx:jar:3.0.5.RELEASE:compile
    22/04/11 10:46:01 CEST: Generating sources /testbd2/pom.xml
    22/04/11 10:46:01 CEST: Build error for /testbd2/pom.xml; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project testbd2: Could not resolve dependencies for project testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.2 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M2 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.1 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile)]
    .metadata/.log >
    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
    ENTRY org.maven.ide.eclipse 4 0 2011-04-22 10:46:01.541
    !MESSAGE Build error for /testbd2/pom.xml
    !STACK 0
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project testbd2: Could not resolve dependencies for project testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.2 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M2 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.1 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile)]
    	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
    	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    	at org.maven.ide.eclipse.internal.embedder.MavenImpl.execute(MavenImpl.java:223)
    	at org.maven.ide.eclipse.jdt.internal.GenericJavaProjectConfigurator.getMavenProject(GenericJavaProjectConfigurator.java:61)
    	at org.maven.ide.eclipse.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:91)
    	at org.maven.ide.eclipse.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:57)
    	at org.maven.ide.eclipse.internal.project.GenericLifecycleMapping.configure(GenericLifecycleMapping.java:48)
    	at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:306)
    	at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:292)
    	at org.maven.ide.eclipse.actions.UpdateSourcesAction$1.runInWorkspace(UpdateSourcesAction.java:92)
    	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.2 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M2 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.1 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile)]
    	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:127)
    	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
    	... 21 more
    Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [junit:junit:jar:4.8.2 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M2 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.1 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile)]
    	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:251)
    	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:318)
    	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:119)
    	... 22 more
    Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.aspectj:aspectjrt:jar:1.6.11.M2
    	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:283)
    	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:173)
    	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:419)
    	at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:233)
    	... 24 more
    Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to transfer org.aspectj:aspectjrt:pom:1.6.11.M2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.aspectj:aspectjrt:pom:1.6.11.M2 from/to spring-maven-release (http://maven.springframework.org/release): ConnectException
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:526)
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:214)
    	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:268)
    	... 27 more
    Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Failure to transfer org.aspectj:aspectjrt:pom:1.6.11.M2 from http://maven.springframework.org/release was cached in the local repository, resolution will not be reattempted until the update interval of spring-maven-release has elapsed or updates are forced. Original error: Could not transfer artifact org.aspectj:aspectjrt:pom:1.6.11.M2 from/to spring-maven-release (http://maven.springframework.org/release): ConnectException
    	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:201)
    	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:408)
    	... 29 more
    Je suis dans les locaux d'une entreprise qui utilise un proxy, j'ai paramétré Eclipse pour utiliser le proxy.

    Windows XP

  2. #2
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 804
    Points
    48 804
    Par défaut
    rajoutez -u à votre commande maven pour forcer un update. Une particularité bien chiante de maven 3, c'est que si un trasnfert échoue, il ne le réessaie pas dans un certain délai, ce qui est facheux quand on a juste eu un petit problème de transmission

  3. #3
    Membre à l'essai
    Homme Profil pro
    Ingénieur Études et développements
    Inscrit en
    Avril 2008
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Études et développements
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 29
    Points : 22
    Points
    22
    Par défaut
    en fait j'utilise le plugin m2 pour eclipse donc les missing artifact apparaissent lorsque je fais un "update project configuration" mais si je fais un "update dependencies" alors le pom.xml devient invalide..

    je me suis placer en dos sur la racine de mon projet et j'ai fais "mvn compile -U", voici le résultat :
    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
    Microsoft Windows XP [version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
     
    E:\GNFZ5493\Mes doks\workspace spring-roo 2\testbd2>mvn compile -U
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building testbd2
    [INFO]    task-segment: [compile]
    [INFO] ------------------------------------------------------------------------
    Downloading: http://10.170.224.81/m2-repository/org/aspectj/aspectjrt/1.6.11.M2/
    aspectjrt-1.6.11.M2.pom
    [INFO] Unable to find resource 'org.aspectj:aspectjrt:pom:1.6.11.M2' in reposito
    ry karma.central (http://10.170.224.81/m2-repository)
    Downloading: http://maven.springframework.org/release/org/aspectj/aspectjrt/1.6.
    11.M2/aspectjrt-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjrt:pom:1.6.11.M2' from repo
    sitory spring-maven-release (http://maven.springframework.org/release): Error tr
    ansferring file: maven.springframework.org
    Downloading: http://maven.springframework.org/milestone/org/aspectj/aspectjrt/1.
    6.11.M2/aspectjrt-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjrt:pom:1.6.11.M2' from repo
    sitory spring-maven-milestone (http://maven.springframework.org/milestone): Erro
    r transferring file: maven.springframework.org
    Downloading: http://spring-roo-repository.springsource.org/release/org/aspectj/a
    spectjrt/1.6.11.M2/aspectjrt-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjrt:pom:1.6.11.M2' from repo
    sitory spring-roo-repository (http://spring-roo-repository.springsource.org/rele
    ase): Error transferring file: spring-roo-repository.springsource.org
    Downloading: http://maven2.rd.francetelecom.fr/proxy/repository/public/org/aspec
    tj/aspectjrt/1.6.11.M2/aspectjrt-1.6.11.M2.pom
    [INFO] Unable to find resource 'org.aspectj:aspectjrt:pom:1.6.11.M2' in reposito
    ry central (http://repo1.maven.org/maven2)
    Downloading: http://10.170.224.81/m2-repository/org/aspectj/aspectjweaver/1.6.11
    .M2/aspectjweaver-1.6.11.M2.pom
    [INFO] Unable to find resource 'org.aspectj:aspectjweaver:pom:1.6.11.M2' in repo
    sitory karma.central (http://10.170.224.81/m2-repository)
    Downloading: http://maven.springframework.org/release/org/aspectj/aspectjweaver/
    1.6.11.M2/aspectjweaver-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:pom:1.6.11.M2' from
    repository spring-maven-release (http://maven.springframework.org/release): Erro
    r transferring file: maven.springframework.org
    Downloading: http://maven.springframework.org/milestone/org/aspectj/aspectjweave
    r/1.6.11.M2/aspectjweaver-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:pom:1.6.11.M2' from
    repository spring-maven-milestone (http://maven.springframework.org/milestone):
    Error transferring file: maven.springframework.org
    Downloading: http://spring-roo-repository.springsource.org/release/org/aspectj/a
    spectjweaver/1.6.11.M2/aspectjweaver-1.6.11.M2.pom
    [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:pom:1.6.11.M2' from
    repository spring-roo-repository (http://spring-roo-repository.springsource.org/
    release): Error transferring file: spring-roo-repository.springsource.org
    Downloading: http://maven2.rd.francetelecom.fr/proxy/repository/public/org/aspec
    tj/aspectjweaver/1.6.11.M2/aspectjweaver-1.6.11.M2.pom
    [INFO] Unable to find resource 'org.aspectj:aspectjweaver:pom:1.6.11.M2' in repo
    sitory central (http://repo1.maven.org/maven2)
    Downloading: http://10.170.224.81/m2-repository/org/springframework/roo/org.spri
    ngframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annotations-1.
    1.2.RELEASE.pom
    [INFO] Unable to find resource 'org.springframework.roo:org.springframework.roo.
    annotations:pom:1.1.2.RELEASE' in repository karma.central (http://10.170.224.81
    /m2-repository)
    Downloading: http://maven.springframework.org/release/org/springframework/roo/or
    g.springframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annotati
    ons-1.1.2.RELEASE.pom
    [WARNING] Unable to get resource 'org.springframework.roo:org.springframework.ro
    o.annotations:pom:1.1.2.RELEASE' from repository spring-maven-release (http://ma
    ven.springframework.org/release): Error transferring file: maven.springframework
    .org
    Downloading: http://maven.springframework.org/milestone/org/springframework/roo/
    org.springframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annota
    tions-1.1.2.RELEASE.pom
    [WARNING] Unable to get resource 'org.springframework.roo:org.springframework.ro
    o.annotations:pom:1.1.2.RELEASE' from repository spring-maven-milestone (http://
    maven.springframework.org/milestone): Error transferring file: maven.springframe
    work.org
    Downloading: http://spring-roo-repository.springsource.org/release/org/springfra
    mework/roo/org.springframework.roo.annotations/1.1.2.RELEASE/org.springframework
    .roo.annotations-1.1.2.RELEASE.pom
    [WARNING] Unable to get resource 'org.springframework.roo:org.springframework.ro
    o.annotations:pom:1.1.2.RELEASE' from repository spring-roo-repository (http://s
    pring-roo-repository.springsource.org/release): Error transferring file: spring-
    roo-repository.springsource.org
    Downloading: http://maven2.rd.francetelecom.fr/proxy/repository/public/org/sprin
    gframework/roo/org.springframework.roo.annotations/1.1.2.RELEASE/org.springframe
    work.roo.annotations-1.1.2.RELEASE.pom
    [INFO] Unable to find resource 'org.springframework.roo:org.springframework.roo.
    annotations:pom:1.1.2.RELEASE' in repository central (http://repo1.maven.org/mav
    en2)
    Downloading: http://10.170.224.81/m2-repository/org/springframework/roo/org.spri
    ngframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annotations-1.
    1.2.RELEASE.jar
    Downloading: http://10.170.224.81/m2-repository/org/aspectj/aspectjweaver/1.6.11
    .M2/aspectjweaver-1.6.11.M2.jar
    [INFO] Unable to find resource 'org.springframework.roo:org.springframework.roo.
    annotations:jar:1.1.2.RELEASE' in repository karma.central (http://10.170.224.81
    /m2-repository)
    Downloading: http://maven.springframework.org/release/org/springframework/roo/or
    g.springframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annotati
    ons-1.1.2.RELEASE.jar
    [INFO] Unable to find resource 'org.aspectj:aspectjweaver:jar:1.6.11.M2' in repo
    sitory karma.central (http://10.170.224.81/m2-repository)
    [WARNING] Unable to get resource 'org.springframework.roo:org.springframework.ro
    o.annotations:jar:1.1.2.RELEASE' from repository spring-maven-release (http://ma
    ven.springframework.org/release): Error transferring file: maven.springframework
    .org
    Downloading: http://maven.springframework.org/release/org/aspectj/aspectjweaver/
    1.6.11.M2/aspectjweaver-1.6.11.M2.jar
    Downloading: http://maven.springframework.org/milestone/org/springframework/roo/
    org.springframework.roo.annotations/1.1.2.RELEASE/org.springframework.roo.annota
    tions-1.1.2.RELEASE.jar
    [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:jar:1.6.11.M2' from
    repository spring-maven-release (http://maven.springframework.org/release): Erro
    r transferring file: maven.springframework.org
    [WARNING] Unable to get resource 'org.springframework.roo:org.springframework.ro
    o.annotations:jar:1.1.2.RELEASE' from repository spring-maven-milestone (http://
    maven.springframework.org/milestone): Error transferring file: maven.springframe
    work.org
    Downloading: http://maven.springframework.org/milestone/org/aspectj/aspectjweave
    r/1.6.11.M2/aspectjweaver-1.6.11.M2.jar
    Downloading: http://spring-roo-repository.springsource.org/release/org/springfra
    mework/roo/org.springframework.roo.annotations/1.1.2.RELEASE/org.springframework
    .roo.annotations-1.1.2.RELEASE.jar
    [WARNING] [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:jar:1.6.11
    .M2' from repository spring-maven-milestone (http://maven.springframework.org/mi
    lestone): Error transferring file: maven.springframework.org
    Unable to get resource 'org.springframework.roo:org.springframework.roo.annotati
    ons:jar:1.1.2.RELEASE' from repository spring-roo-repository (http://spring-roo-
    repository.springsource.org/release): Error transferring file: spring-roo-reposi
    tory.springsource.org
    Downloading: http://maven2.rd.francetelecom.fr/proxy/repository/public/org/sprin
    gframework/roo/org.springframework.roo.annotations/1.1.2.RELEASE/org.springframe
    work.roo.annotations-1.1.2.RELEASE.jar
    Downloading: http://spring-roo-repository.springsource.org/release/org/aspectj/a
    spectjweaver/1.6.11.M2/aspectjweaver-1.6.11.M2.jar
    [WARNING] Unable to get resource 'org.aspectj:aspectjweaver:jar:1.6.11.M2' from
    repository spring-roo-repository (http://spring-roo-repository.springsource.org/
    release): Error transferring file: spring-roo-repository.springsource.org
    Downloading: http://maven2.rd.francetelecom.fr/proxy/repository/public/org/aspec
    tj/aspectjweaver/1.6.11.M2/aspectjweaver-1.6.11.M2.jar
    [INFO] Unable to find resource 'org.aspectj:aspectjweaver:jar:1.6.11.M2' in repo
    sitory central (http://repo1.maven.org/maven2)
    [INFO] Unable to find resource 'org.springframework.roo:org.springframework.roo.
    annotations:jar:1.1.2.RELEASE' in repository central (http://repo1.maven.org/mav
    en2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
     
    Missing:
    ----------
    1) org.aspectj:aspectjweaver:jar:1.6.11.M2
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.aspectj -DartifactId=aspectjweaver
    -Dversion=1.6.11.M2 -Dpackaging=jar -Dfile=/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=org.aspectj -DartifactId=aspectjweaver -D
    version=1.6.11.M2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryI
    d=[id]
     
      Path to dependency:
            1) testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT
            2) org.aspectj:aspectjweaver:jar:1.6.11.M2
     
    2) org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE
     
     
      Try downloading the file manually from the project website.
     
      Then, install it using the command:
          mvn install:install-file -DgroupId=org.springframework.roo -DartifactId=or
    g.springframework.roo.annotations -Dversion=1.1.2.RELEASE -Dpackaging=jar -Dfile
    =/path/to/file
     
      Alternatively, if you host your own repository you can deploy the file there:
     
          mvn deploy:deploy-file -DgroupId=org.springframework.roo -DartifactId=org.
    springframework.roo.annotations -Dversion=1.1.2.RELEASE -Dpackaging=jar -Dfile=/
    path/to/file -Durl=[url] -DrepositoryId=[id]
     
      Path to dependency:
            1) testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT
            2) org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2
    .RELEASE
     
    ----------
    2 required artifacts are missing.
     
    for artifact:
      testbd.p2:testbd2:jar:0.1.0.BUILD-SNAPSHOT
     
    from the specified remote repositories:
      FTRDProxy_central (http://maven2.rd.francetelecom.fr/proxy/repository/public),
     
      spring-maven-milestone (http://maven.springframework.org/milestone),
      spring-roo-repository (http://spring-roo-repository.springsource.org/release),
     
      spring-maven-release (http://maven.springframework.org/release),
      karma.central (http://10.170.224.81/m2-repository)
     
     
     
    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 27 seconds
    [INFO] Finished at: Fri Apr 22 11:53:55 CEST 2011
    [INFO] Final Memory: 12M/23M
    [INFO] ------------------------------------------------------------------------
    E:\GNFZ5493\Mes doks\workspace spring-roo 2\testbd2>

  4. #4
    Membre à l'essai
    Homme Profil pro
    Ingénieur Études et développements
    Inscrit en
    Avril 2008
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Études et développements
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 29
    Points : 22
    Points
    22
    Par défaut
    J'ai rajouté quelques dépôts dans le settings.xml, du coup si je compile en ligne de commande ça marche très bien alors que sous STS (eclipse configuré pour SpringRoo) mon projet reste inutilisable car il n'arrive pas récupérer les dépendances...

    Est ce que quelqu'un a déjà eu le même problème ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Build error for /t1/pom.xml; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project t1: Could not resolve dependencies for project com.t1:t1:war:0.1.0.BUILD-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.8.2 (test), log4j:log4j:jar:1.2.16 (compile), org.slf4j:slf4j-api:jar:1.6.1 (compile), org.slf4j:jcl-over-slf4j:jar:1.6.1 (compile), org.slf4j:slf4j-log4j12:jar:1.6.1 (compile), org.aspectj:aspectjrt:jar:1.6.11.M2 (compile), org.aspectj:aspectjweaver:jar:1.6.11.M2 (compile), javax.servlet:servlet-api:jar:2.5 (provided), net.sf.flexjson:flexjson:jar:2.1 (compile), org.springframework.roo:org.springframework.roo.annotations:jar:1.1.2.RELEASE (provided), org.springframework:spring-core:jar:3.0.5.RELEASE (compile), org.springframework:spring-test:jar:3.0.5.RELEASE (test), org.springframework:spring-context:jar:3.0.5.RELEASE (compile), org.springframework:spring-aop:jar:3.0.5.RELEASE (compile), org.springframework:spring-aspects:jar:3.0.5.RELEASE (compile), org.springframework:spring-tx:jar:3.0.5.RELEASE (compile), org.hsqldb:hsqldb:jar:1.8.0.10 (compile), org.hibernate:hibernate-core:jar:3.6.1.Final (compile), org.hibernate:hibernate-entitymanager:jar:3.6.1.Final (compile), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final (compile), org.hibernate:hibernate-validator:jar:4.1.0.Final (compile), javax.validation:validation-api:jar:1.0.0.GA (compile), cglib:cglib-nodep:jar:2.2 (compile), javax.transaction:jta:jar:1.1 (compile), org.springframework:spring-jdbc:jar:3.0.5.RELEASE (compile), org.springframework:spring-orm:jar:3.0.5.RELEASE (compile), commons-pool:commons-pool:jar:1.5.4 (compile), commons-dbcp:commons-dbcp:jar:1.3 (compile), org.apache.tiles:tiles-core:jar:2.2.1 (compile), org.apache.tiles:tiles-jsp:jar:2.2.1 (compile), org.springframework:spring-web:jar:3.0.5.RELEASE (compile), org.springframework:spring-webmvc:jar:3.0.5.RELEASE (compile), org.springframework.webflow:spring-js-resources:jar:2.2.1.RELEASE (compile), commons-digester:commons-digester:jar:2.0 (compile), commons-fileupload:commons-fileupload:jar:1.2.1 (compile), javax.servlet:jstl:jar:1.2 (compile), javax.el:el-api:jar:1.0 (provided), joda-time:joda-time:jar:1.6 (compile), javax.servlet.jsp:jsp-api:jar:2.1 (provided)]
    Merci d'avance

  5. #5
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 804
    Points
    48 804
    Par défaut
    vérifiez dans la configuration "maven" de eclipse que le settings.xml et que les repository sont bien les même que ceux utilisés en ligne de commande.

  6. #6
    Membre à l'essai
    Homme Profil pro
    Ingénieur Études et développements
    Inscrit en
    Avril 2008
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Études et développements
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 29
    Points : 22
    Points
    22
    Par défaut
    Oui eclipse utilise le même maven et le même fichier de settings que en ligne de commande.

    Dans mon settings j'utilise un profile et je n'avais pas défini dans eclipse d'utiliser ce profile, voir fichier "workspace/nomprojet/.settings/org.maven.ide.eclipse.prefs" > activeProfiles=monProfile

    Ça compile bien sous eclipse et les dépendances suivent, merci pour ton aide quand même

  7. #7
    Membre à l'essai
    Homme Profil pro
    Ingénieur Études et développements
    Inscrit en
    Avril 2008
    Messages
    29
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur Études et développements
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2008
    Messages : 29
    Points : 22
    Points
    22
    Par défaut
    Pour ceux qui ont des problèmes avec les dépendances avec le plugin M2 d'eclipse, voici comment j'ai fait :

    - ouvrir un DOS et compiler le projet en ligne de commande
    > mvn clean compile -U

    - télécharger les jar manquants, les installer manuellement
    > mvn install:install-file ......

    - Dans éclipse > Window > Preferences > Maven > activer la case a cocher "mode offline"

    ENJOY!

  8. #8
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 46
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Points : 7 275
    Points
    7 275
    Par défaut
    Un autre moyen pour télécharger toutes les dépendances nécessaires d'un projet :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    mvn dependency:go-offline
    (info)

  9. #9
    Membre du Club
    Homme Profil pro
    Inscrit en
    Décembre 2010
    Messages
    50
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations forums :
    Inscription : Décembre 2010
    Messages : 50
    Points : 40
    Points
    40
    Par défaut
    Salut tout le monde,

    J'ai un problème similaire avec une seule dépendance qui me pourrit l'existence

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    19/08/11 16:16:37 CEST: Build errors for PTWebService; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project PTWebService: Could not resolve dependencies for project PTWebService:PTWebService:war:0.0.1-SNAPSHOT: Failure to find org.apache.ws.security:wss4j:bundle:1.6.2 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
    Si vous pouvez m'aider, ça serait très sympa.

    Merci.

  10. #10
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 804
    Points
    48 804
    Par défaut
    il est ici
    http://repo1.maven.org/maven2/org/ap...ss4j-1.6.2.jar
    et je n'ai aucune problème d'accès. Vous avez probablement eu une erreur temporaire, forcez le rechargement

  11. #11
    Membre du Club
    Homme Profil pro
    Inscrit en
    Décembre 2010
    Messages
    50
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations forums :
    Inscription : Décembre 2010
    Messages : 50
    Points : 40
    Points
    40
    Par défaut
    Citation Envoyé par tchize_ Voir le message
    il est ici
    http://repo1.maven.org/maven2/org/ap...ss4j-1.6.2.jar
    et je n'ai aucune problème d'accès. Vous avez probablement eu une erreur temporaire, forcez le rechargement
    Je te remercie, effectivement, lors de l'update le lendemain, RAS

  12. #12
    Candidat au Club
    Homme Profil pro
    Home
    Inscrit en
    Novembre 2018
    Messages
    4
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Cameroun

    Informations professionnelles :
    Activité : Home

    Informations forums :
    Inscription : Novembre 2018
    Messages : 4
    Points : 4
    Points
    4
    Par défaut
    Svp j'ai le même souci avec spring tools suites 3.9.7 que faire ? J'ai essayé toute vos solutions pourtant

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

Discussions similaires

  1. Sudo problème avec les simples quotes
    Par Tronche dans le forum Shell et commandes GNU
    Réponses: 5
    Dernier message: 23/03/2007, 12h02
  2. Réponses: 15
    Dernier message: 21/02/2007, 17h29
  3. Formulaires : problème avec les slashes et les quotes
    Par GarGamel55 dans le forum Langage
    Réponses: 1
    Dernier message: 12/10/2005, 15h59

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