Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-1745

Problem with cleaning switchyard-tools modul on maven 3.1.0

    XMLWordPrintable

Details

    Description

      I have found problem with cleaning (or compiling) of switchyard's modul "tools". When the repository is cloned it is unpossible to clean the project. Problem appears with maven version 3.1.0. Version 3.0.5 works ok!

      Console output
      [INFO] Scanning for projects...
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.tools:org.switchyard.tools.cxf:eclipse-plugin:1.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 166, column 15
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.tools:org.switchyard.tools.xsd:eclipse-plugin:1.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 212, column 15
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.tools:org.switchyard.tools.core:eclipse-plugin:1.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 211, column 15
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.tools:org.switchyard.tools.m2e.tests:eclipse-test-plugin:1.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 169, column 15
      [WARNING] 
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.tools:org.switchyard.tools.ui.tests:eclipse-test-plugin:1.1.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-clean-plugin is missing. @ line 232, column 15
      [WARNING] 
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING] 
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING] 
      ---------------------------------------------------
      constituent[0]: file:/home/mbasovni/sw/maven/default-mvn/lib/commons-cli-1.2.jar
      constituent[1]: file:/home/mbasovni/sw/maven/default-mvn/lib/aether-connector-wagon-0.9.0.M2.jar
      constituent[2]: file:/home/mbasovni/sw/maven/default-mvn/lib/slf4j-simple-1.7.4.jar
      constituent[3]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-artifact-3.1.0.jar
      constituent[4]: file:/home/mbasovni/sw/maven/default-mvn/lib/javax.inject-1.jar
      constituent[5]: file:/home/mbasovni/sw/maven/default-mvn/lib/org.eclipse.sisu.plexus-0.0.0.M2a.jar
      constituent[6]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-settings-builder-3.1.0.jar
      constituent[7]: file:/home/mbasovni/sw/maven/default-mvn/lib/aether-util-0.9.0.M2.jar
      constituent[8]: file:/home/mbasovni/sw/maven/default-mvn/lib/jsr305-1.3.9.jar
      constituent[9]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-repository-metadata-3.1.0.jar
      constituent[10]: file:/home/mbasovni/sw/maven/default-mvn/lib/wagon-http-2.4-shaded.jar
      constituent[11]: file:/home/mbasovni/sw/maven/default-mvn/lib/asm-3.3.1.jar
      constituent[12]: file:/home/mbasovni/sw/maven/default-mvn/lib/aopalliance-1.0.jar
      constituent[13]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-plugin-api-3.1.0.jar
      constituent[14]: file:/home/mbasovni/sw/maven/default-mvn/lib/aether-impl-0.9.0.M2.jar
      constituent[15]: file:/home/mbasovni/sw/maven/default-mvn/lib/aether-spi-0.9.0.M2.jar
      constituent[16]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-settings-3.1.0.jar
      constituent[17]: file:/home/mbasovni/sw/maven/default-mvn/lib/jsr250-api-1.0.jar
      constituent[18]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-embedder-3.1.0.jar
      constituent[19]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-compat-3.1.0.jar
      constituent[20]: file:/home/mbasovni/sw/maven/default-mvn/lib/plexus-utils-3.0.10.jar
      constituent[21]: file:/home/mbasovni/sw/maven/default-mvn/lib/plexus-sec-dispatcher-1.3.jar
      constituent[22]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-model-builder-3.1.0.jar
      constituent[23]: file:/home/mbasovni/sw/maven/default-mvn/lib/plexus-component-annotations-1.5.5.jar
      constituent[24]: file:/home/mbasovni/sw/maven/default-mvn/lib/wagon-file-2.4.jar
      constituent[25]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-aether-provider-3.1.0.jar
      constituent[26]: file:/home/mbasovni/sw/maven/default-mvn/lib/cdi-api-1.0.jar
      constituent[27]: file:/home/mbasovni/sw/maven/default-mvn/lib/sisu-guice-3.1.3-no_aop.jar
      constituent[28]: file:/home/mbasovni/sw/maven/default-mvn/lib/aether-api-0.9.0.M2.jar
      constituent[29]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-model-3.1.0.jar
      constituent[30]: file:/home/mbasovni/sw/maven/default-mvn/lib/guava-11.0.2.jar
      constituent[31]: file:/home/mbasovni/sw/maven/default-mvn/lib/plexus-cipher-1.7.jar
      constituent[32]: file:/home/mbasovni/sw/maven/default-mvn/lib/org.eclipse.sisu.inject-0.0.0.M2a.jar
      constituent[33]: file:/home/mbasovni/sw/maven/default-mvn/lib/wagon-provider-api-2.4.jar
      constituent[34]: file:/home/mbasovni/sw/maven/default-mvn/lib/maven-core-3.1.0.jar
      constituent[35]: file:/home/mbasovni/sw/maven/default-mvn/lib/slf4j-api-1.7.4.jar
      constituent[36]: file:/home/mbasovni/sw/maven/default-mvn/lib/plexus-interpolation-1.16.jar
      constituent[37]: file:/home/mbasovni/sw/maven/default-mvn/conf/logging/
      ---------------------------------------------------
      Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.execution.MavenSession.getRepositorySession()Lorg/sonatype/aether/RepositorySystemSession;
      	at org.eclipse.tycho.core.maven.utils.PluginRealmHelper.execute(PluginRealmHelper.java:86)
      	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.getDependencyMetadata(P2TargetPlatformResolver.java:146)
      	at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.setupProjects(P2TargetPlatformResolver.java:128)
      	at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.setupProject(DefaultTychoDependencyResolver.java:81)
      	at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:77)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      	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:606)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbasovni Martin Basovnik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: