3 Replies Latest reply on Jul 24, 2014 4:14 PM by kcbabo

    Problem creating my first SwitchYard Project

    michael.chong

      Hi,

           I'm trying to create my first SwitchYard project in JBDS 7.1.1 for FSW 6.0. However, I got following Maven error:

       

       

      I clicked "OK" to continue project creation but got the following error after creation:

       

       

      Failure to transfer org.switchyard:switchyard-plugin:pom:1.1.0.M3-redhat-2 from http://maven.repository.redhat.com/techpreview/all/ was cached in the local repository, resolution will not be reattempted until the update interval of redhat-techpreview-all-repository has elapsed or updates are forced. Original error: Could not transfer artifact org.switchyard:switchyard-plugin:pom:1.1.0.M3-redhat-2 from/to redhat-techpreview-all-repository (http://maven.repository.redhat.com/techpreview/all/): Connection refused: no further information to http://maven.repository.redhat.com/techpreview/all/org/switchyard/switchyard-plugin/1.1.0.M3-redhat-2/switchyard-plugin-1.1.0.M3-redhat-2.pom

       

      My JBDS Maven repositories have been added as follows:

       

       

      Any ideas on what's wrong or where to get the missing repository?

        • 1. Re: Problem creating my first SwitchYard Project
          kcbabo

          The version of the Maven repositories listed in your screenshot correspond to the FSW 6.0 GA release, but the version you selected for your SY project (1.1.0.M3-redhat-2) corresponds to the Beta release.  The correct version string should be 1.1.1-p5-redhat-1.  Do you see that version in the list of versions presented in the new project wizard?  An easy way to take care of this is to add your FSW 6.0 GA installation as a runtime within JBDS and then the version string will be populated automatically for you.

          • 2. Re: Problem creating my first SwitchYard Project
            michael.chong

            Hi Keith, I've done as you suggested and managed to get the correct SwitchYard version during project creation:

             

             

            but upon project creation, I got other errors in the pom.xml file:

             

             

            Failure to transfer org.codehaus.plexus:plexus-interpolation:pom:1.13 from http://maven.repository.redhat.com/

             

            techpreview/all/ was cached in the local repository, resolution will not be reattempted until the update interval of

             

            redhat-techpreview-all-repository has elapsed or updates are forced. Original error: Could not transfer artifact

             

            org.codehaus.plexus:plexus-interpolation:pom:1.13 from/to jboss-ga-plugin-repository (http://

             

            maven.repository.redhat.com/techpreview/all): The operation was cancelled.

             

             

            Multiple annotations found at this line:

             

            - Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:resources failed:

             

            Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to

             

            collect dependencies for org.apache.maven.plugins:maven-resources-plugin:jar:2.5 () (org.apache.maven.plugins:maven-

             

            resources-plugin:2.5:resources:default-resources:process-resources)

             

            - Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.5:testResources

             

            failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved:

             

            The following artifacts could not be resolved: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6,

             

            org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7, commons-cli:commons-cli:jar:1.0, org.codehaus.plexus:plexus-

             

            interactivity-api:jar:1.0-alpha-4, junit:junit:jar:3.8.1, org.codehaus.plexus:plexus-utils:jar:2.0.5,

             

            org.apache.maven.shared:maven-filtering:jar:1.0, org.codehaus.plexus:plexus-interpolation:jar:1.12: Failure to transfer

             

            org.apache.maven.reporting:maven-reporting-api:jar:2.0.6 from http://maven.repository.redhat.com/techpreview/all/

             

            was cached in the local repository, resolution will not be reattempted until the update interval of redhat-techpreview-all-

             

            repository has elapsed or updates are forced. Original error: Could not transfer artifact

             

            org.apache.maven.reporting:maven-reporting-api:jar:2.0.6 from/to jboss-ga-plugin-repository (http://

             

            maven.repository.redhat.com/techpreview/all): The operation was cancelled. (org.apache.maven.plugins:maven-

             

            resources-plugin:2.5:testResources:default-testResources:process-test-resources)

             

             

            Multiple annotations found at this line:

             

            - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:

             

            2.3.2:compile (execution: default-compile, phase: compile)

             

            - CoreException: Could not get the value for parameter compilerId for plugin execution default-compile:

             

            PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies

             

            could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://

             

            maven.repository.redhat.com/techpreview/all/ was cached in the local repository, resolution will not be reattempted

             

            until the update interval of redhat-techpreview-all-repository has elapsed or updates are forced. Original error: Could not

             

            transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to jboss-ga-plugin-repository (http://

             

            maven.repository.redhat.com/techpreview/all): The operation was cancelled.

             

            - CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile:

             

            PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its dependencies

             

            could not be resolved: Failure to transfer org.codehaus.plexus:plexus-utils:jar:2.0.5 from http://

             

            maven.repository.redhat.com/techpreview/all/ was cached in the local repository, resolution will not be reattempted

             

            until the update interval of redhat-techpreview-all-repository has elapsed or updates are forced. Original error: Could not

             

            transfer artifact org.codehaus.plexus:plexus-utils:jar:2.0.5 from/to jboss-ga-plugin-repository (http://

             

            maven.repository.redhat.com/techpreview/all): The operation was cancelled.

             

            - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:

             

            2.3.2:testCompile (execution: default-testCompile, phase: test-compile)

            • 3. Re: Problem creating my first SwitchYard Project
              kcbabo

              org.codehaus.plexus:plexus-interpolation is in Maven central, so it's not clear to me why that's not resolving for you.  One thing you can try is building the project from shell/command-line, which will help identify whether it's an issue with Maven configuration or JBDS.  Just go to the project directory for the project you have created (in shell, not inside JBDS) and use "mvn install" to build it.