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 :

tycho-maven-plugin et target plateform


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Juillet 2003
    Messages
    139
    Détails du profil
    Informations forums :
    Inscription : Juillet 2003
    Messages : 139
    Par défaut tycho-maven-plugin et target plateform
    Bonjour,

    j'ai suivi le tuto de Mickael Introduction à Tycho qui s'est parfaitement dérouler.

    Mon environnement de Dev n'ayant pas accès à internet, je voudrais remplacer le repository p2 par un repertoire en local qui contient tous les plugins eclipse potentiellement disponible pour mon client. J'ai donc ajouter ceci dans mon pom du projet parent :
    Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    <repositories>
     	<!-- configure p2 repository to resolve against
     	<repository>
      		<id>helios</id>
       		<layout>p2</layout>
    		<url>http://download.eclipse.org/releases/helios/</url>
    	</repository> -->
     
    	<repository>
    		<id>helios</id>
    		<layout>p2</layout>
    		<url>file:///C:/Java/Eclipse/target-platform-3.8.2</url>
    	</repository>
    </repositories>

    Quand je lance la commande mvn clean install depuis le projet aggregator il commence par récupérer des jar puis il s’arrête sur un qu'il ne trouve pas (il est pourtant bien pressent)
    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
    C:\Java\Workspaces\Tycho\test.tychorcpdemo.aggregator>mvn clean install
    [INFO] Scanning for projects...
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [WARNING] No explicit target runtime environment configuration. Build is platform dependent.
    [INFO] Resolving target platform for project MavenProject: tychorcpdemo:test.tychorcpdemo.rcp:1.0.0-SNAPSHOT @ C:\Java\Workspaces\Tycho\test.tychorcpdemo.aggregator\test.tychorcpdemo.rcp\pom.xml
    [INFO] Adding repository file:/C:/Java/Eclipse/target-platform-3.8.2
    [INFO] Adding repository file:/C:/Java/Eclipse/target-platform-3.8.2
    [INFO] Downloading org.eclipse.osgi
    [INFO] Fetching org.eclipse.osgi_3.8.2.v20130124-134944.jar (0B of 1,34MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
    [INFO] Fetching org.eclipse.osgi_3.8.2.v20130124-134944.jar (4kB of 1,34MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
    [INFO] 1 operation remaining.
    [INFO] Downloading org.eclipse.core.commands
    [INFO] Fetching org.eclipse.core.commands_3.6.1.v20120912-135020.jar (0B of 104,84kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.core.commands_3.6.1.v20120912-135020.jar
    [INFO] 1 operation remaining.
    ...
    ...
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.jface_3.8.0.v20120912-135020.jar (4kB of 1,05MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.jface_3.8.0.v20120912-135020.jar
    [INFO] Downloading org.eclipse.swt
    [INFO] Fetching org.eclipse.swt_3.8.1.v3836b.jar (0B of 14,92kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.swt_3.8.1.v3836b.jar
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.swt_3.8.1.v3836b.jar (4kB of 14,92kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.swt_3.8.1.v3836b.jar
    [INFO] Downloading org.eclipse.jface.databinding
    [INFO] Fetching org.eclipse.jface.databinding_1.6.0.v20120912-135020.jar (0B of274,24kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.jface.databinding_1.6.0.v20120912-135020.jar
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.jface.databinding_1.6.0.v20120912-135020.jar (4kB of 274,24kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.jface.databinding_1.6.0.v20120912-135020.jar
    [INFO] Downloading org.eclipse.ui
    [INFO] Fetching org.eclipse.ui_3.8.2.v20121018-234953.jar (0B of 151,31kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.ui_3.8.2.v20121018-234953.jar
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.ui_3.8.2.v20121018-234953.jar (4kB of 151,31kB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.ui_3.8.2.v20121018-234953.jar
    [INFO] Downloading org.eclipse.ui.workbench
    [INFO] Fetching org.eclipse.ui.workbench_3.8.2.v20121128-133708.jar (0B of 4,05MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.ui.workbench_3.8.2.v20121128-133708.jar
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.ui.workbench_3.8.2.v20121128-133708.jar (4kB of 4,05MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.ui.workbench_3.8.2.v20121128-133708.jar
    [INFO] Downloading org.eclipse.swt.win32.win32.x86
    [INFO] Fetching org.eclipse.swt.win32.win32.x86_3.8.1.v3836b.jar (0B of 2,6MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.swt.win32.win32.x86_3.8.1.v3836b.jar
    [INFO] 1 operation remaining.
    [INFO] Fetching org.eclipse.swt.win32.win32.x86_3.8.1.v3836b.jar (4kB of 2,6MB at 0B/s) from file:/C:/Java/Eclipse/target-platform-3.8.2/plugins/org.eclipse.swt.win32.win32.x86_3.8.1.v3836b.jar
    [ERROR] Internal error: java.lang.RuntimeException: Could not download artifacts
     from any repository[ERROR] osgi.bundle,org.eclipse.osgi,3.8.2.v20130124-134944[ERROR] osgi.bundle,org.eclipse.core.commands,3.6.1.v20120912-135020
    [ERROR] osgi.bundle,org.eclipse.equinox.common,3.6.100.v20120522-1841
    [ERROR] osgi.bundle,org.eclipse.core.contenttype,3.4.200.v20120523-2004
    [ERROR] osgi.bundle,org.eclipse.equinox.preferences,3.5.1.v20121031-182809
    [ERROR] osgi.bundle,org.eclipse.equinox.registry,3.5.200.v20120522-1841
    [ERROR] osgi.bundle,org.eclipse.core.databinding,1.4.1.v20120912-135020
    [ERROR] osgi.bundle,org.eclipse.core.databinding.observable,1.4.1.v20120521-2332
    [ERROR] osgi.bundle,org.eclipse.core.databinding.property,1.4.100.v20120523-1956
    [ERROR] osgi.bundle,com.ibm.icu,4.4.2.v20110823
    [ERROR] osgi.bundle,org.eclipse.core.expressions,3.4.400.v20120523-2004
    [ERROR] osgi.bundle,org.eclipse.core.runtime,3.8.0.v20120521-2346
    [ERROR] osgi.bundle,org.eclipse.core.jobs,3.5.200.v20120521-2346
    [ERROR] osgi.bundle,org.eclipse.equinox.app,1.3.100.v20120522-1841
    [ERROR] osgi.bundle,org.eclipse.help,3.6.0.v20120912-134126
    [ERROR] osgi.bundle,org.eclipse.jface,3.8.0.v20120912-135020
    [ERROR] osgi.bundle,org.eclipse.swt,3.8.1.v3836b
    [ERROR] osgi.bundle,org.eclipse.jface.databinding,1.6.0.v20120912-135020
    [ERROR] osgi.bundle,org.eclipse.ui,3.8.2.v20121018-234953
    [ERROR] osgi.bundle,org.eclipse.ui.workbench,3.8.2.v20121128-133708
    [ERROR] osgi.bundle,org.eclipse.swt.win32.win32.x86,3.8.1.v3836b
    [ERROR] -> [Help 1]
    org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not download artifacts from any repository
       osgi.bundle,org.eclipse.osgi,3.8.2.v20130124-134944
       osgi.bundle,org.eclipse.core.commands,3.6.1.v20120912-135020
       osgi.bundle,org.eclipse.equinox.common,3.6.100.v20120522-1841
       osgi.bundle,org.eclipse.core.contenttype,3.4.200.v20120523-2004
       osgi.bundle,org.eclipse.equinox.preferences,3.5.1.v20121031-182809
       osgi.bundle,org.eclipse.equinox.registry,3.5.200.v20120522-1841
       osgi.bundle,org.eclipse.core.databinding,1.4.1.v20120912-135020
       osgi.bundle,org.eclipse.core.databinding.observable,1.4.1.v20120521-2332
       osgi.bundle,org.eclipse.core.databinding.property,1.4.100.v20120523-1956
       osgi.bundle,com.ibm.icu,4.4.2.v20110823
       osgi.bundle,org.eclipse.core.expressions,3.4.400.v20120523-2004
       osgi.bundle,org.eclipse.core.runtime,3.8.0.v20120521-2346
       osgi.bundle,org.eclipse.core.jobs,3.5.200.v20120521-2346
       osgi.bundle,org.eclipse.equinox.app,1.3.100.v20120522-1841
       osgi.bundle,org.eclipse.help,3.6.0.v20120912-134126
       osgi.bundle,org.eclipse.jface,3.8.0.v20120912-135020
       osgi.bundle,org.eclipse.swt,3.8.1.v3836b
       osgi.bundle,org.eclipse.jface.databinding,1.6.0.v20120912-135020
       osgi.bundle,org.eclipse.ui,3.8.2.v20121018-234953
       osgi.bundle,org.eclipse.ui.workbench,3.8.2.v20121128-133708
       osgi.bundle,org.eclipse.swt.win32.win32.x86,3.8.1.v3836b
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:601)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
       at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: java.lang.RuntimeException: Could not download artifacts from any repository
       osgi.bundle,org.eclipse.osgi,3.8.2.v20130124-134944
       osgi.bundle,org.eclipse.core.commands,3.6.1.v20120912-135020
       osgi.bundle,org.eclipse.equinox.common,3.6.100.v20120522-1841
       osgi.bundle,org.eclipse.core.contenttype,3.4.200.v20120523-2004
       osgi.bundle,org.eclipse.equinox.preferences,3.5.1.v20121031-182809
       osgi.bundle,org.eclipse.equinox.registry,3.5.200.v20120522-1841
       osgi.bundle,org.eclipse.core.databinding,1.4.1.v20120912-135020
       osgi.bundle,org.eclipse.core.databinding.observable,1.4.1.v20120521-2332
       osgi.bundle,org.eclipse.core.databinding.property,1.4.100.v20120523-1956
       osgi.bundle,com.ibm.icu,4.4.2.v20110823
       osgi.bundle,org.eclipse.core.expressions,3.4.400.v20120523-2004
       osgi.bundle,org.eclipse.core.runtime,3.8.0.v20120521-2346
       osgi.bundle,org.eclipse.core.jobs,3.5.200.v20120521-2346
       osgi.bundle,org.eclipse.equinox.app,1.3.100.v20120522-1841
       osgi.bundle,org.eclipse.help,3.6.0.v20120912-134126
       osgi.bundle,org.eclipse.jface,3.8.0.v20120912-135020
       osgi.bundle,org.eclipse.swt,3.8.1.v3836b
       osgi.bundle,org.eclipse.jface.databinding,1.6.0.v20120912-135020
       osgi.bundle,org.eclipse.ui,3.8.2.v20121018-234953
       osgi.bundle,org.eclipse.ui.workbench,3.8.2.v20121128-133708
       osgi.bundle,org.eclipse.swt.win32.win32.x86,3.8.1.v3836b
     
       at org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:398)
       at org.sonatype.tycho.p2.impl.resolver.P2ResolverImpl.resolveProject(P2ResolverImpl.java:319)
       at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:472)
       at org.sonatype.tycho.p2.facade.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:151)
       at org.codehaus.tycho.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:86)
       at org.codehaus.tycho.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:94)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
       ... 11 more
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please rea
    d the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorE
    xception
    C:\Java\Workspaces\Tycho\test.tychorcpdemo.aggregator>
    J'ai essayer de créer un nouveau projet avec un target definition pointant sur mon répertoire mais sans grand succès.

    Merci d'avance.

  2. #2
    Membre confirmé
    Inscrit en
    Juillet 2003
    Messages
    139
    Détails du profil
    Informations forums :
    Inscription : Juillet 2003
    Messages : 139
    Par défaut
    Il y avait un conflit entre le target Plateforme configurer dans eclipse et celui indiquer dans le pom parent.

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

Discussions similaires

  1. Nom de la dll via native-maven-plugin
    Par ejl07 dans le forum Maven
    Réponses: 10
    Dernier message: 28/06/2012, 09h35
  2. Réponses: 10
    Dernier message: 24/04/2009, 10h40
  3. [MAVEN] plugin non attacher au cycle de vie standard
    Par DanielW33 dans le forum Maven
    Réponses: 3
    Dernier message: 25/04/2007, 22h47
  4. [exec-maven-plugin] Ne trouve pas l'éxecutable java
    Par KooKoolen dans le forum Maven
    Réponses: 1
    Dernier message: 19/12/2006, 13h54
  5. MAVEN plugins....error MOJO
    Par lipczynski dans le forum Maven
    Réponses: 2
    Dernier message: 31/03/2006, 15h47

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