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

Build failure with the [org.switchyard:switchyard-api:0.1.0] versions and Forge

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 0.1
    • None
    • tooling
    • None
    • Workaround Exists
    • Hide

      Make sure you have the JBoss Nexus repo defined in your Maven settings.xml (located in $HOME/.m2/). It should look something like this:

      <settings>
        <profiles>
          <profile>
            <id>jboss-public-repository</id>
            <repositories>
              <repository>
                <id>jboss-public-repository-group</id>
                <name>JBoss Public Maven Repository Group</name>
                <url>http://repository.jboss.org/nexus/content/groups/public/</url>
                <layout>default</layout>
                <releases>
                  <enabled>true</enabled>
                  <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                  <enabled>true</enabled>
                  <updatePolicy>never</updatePolicy>
                </snapshots>
              </repository>
            </repositories>
            <pluginRepositories>
              <pluginRepository>
                <id>jboss-public-repository-group</id>
                <name>JBoss Public Maven Repository Group</name>
                <url>http://repository.jboss.org/nexus/content/groups/public/</url>
                <layout>default</layout>
                <releases>
                  <enabled>true</enabled>
                  <updatePolicy>never</updatePolicy>
                </releases>
                <snapshots>
                  <enabled>true</enabled>
                  <updatePolicy>never</updatePolicy>
                </snapshots>
              </pluginRepository>
            </pluginRepositories>
          </profile>
      
        </profiles>
      
        <activeProfiles>
          <activeProfile>jboss-public-repository</activeProfile>
        </activeProfiles>
      
      </settings>
      
      Show
      Make sure you have the JBoss Nexus repo defined in your Maven settings.xml (located in $HOME/.m2/). It should look something like this: <settings> <profiles> <profile> <id>jboss-public-repository</id> <repositories> <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>jboss-public-repository</activeProfile> </activeProfiles> </settings>

    Description

      Seeing this build failure with the [org.switchyard:switchyard-api:0.1.0] versions and Forge.

      (Not seeing the failures with [org.switchyard:switchyard-api:0.2.0-SNAPSHOT])

      Note: The same failure is being seen with "mvn install" or "mvn package"

      ----------------------------------------------

      Getting these results:

      ./forge
      ____ _____
      / __| ___ __ _ _ __ ___ | ___|_ _ __ __ _ ___
      ___ \ / _ \/ ` | ' ` _ \ | |_ / _ | '__/ _` |/ _ \
      __) | __/ (| | | | | | | | | () | | | (_| | __/ //

      ___/ __ _, _   _   _   _ ___/ _ __, ___
      ___/
      [no project] bin $ new-project --named tempProject --topLevelPackage org.switchyard.examples.forge
      **ERROR** [/jboss/local/forge-1.0.0.Alpha3/bin/tempProject] already contains a project; please use a different folder.

      Where would you like to create the project? [Press ENTER to use the current directory: bin]
      Wrote /jboss/local/forge-1.0.0.Alpha3/bin/src/main/resources/META-INF/forge.xml
      **SUCCESS** Created project [tempProject] in new working directory [/jboss/local/forge-1.0.0.Alpha3/bin]
      [tempProject] bin $ project install-facet switchyard
      Please select a version to install:

      1 - [org.switchyard:switchyard-api:0.1.0-M1]
      2 - [org.switchyard:switchyard-api:0.1.0-SNAPSHOT]
      3 - [org.switchyard:switchyard-api:0.1.0]
      4 - [org.switchyard:switchyard-api:0.2.0-SNAPSHOT]

      Choose an option by typing the number of the selection: 3
      Application name (e.g. myApp) tempProject
      **SUCCESS** Installed [switchyard] successfully.
      [tempProject] bin $ project install-facet switchyard.bean
      Please select a version to install:

      1 - [org.switchyard.components:switchyard-component-bean:0.1.0-M1]
      2 - [org.switchyard.components:switchyard-component-bean:0.1.0-SNAPSHOT]
      3 - [org.switchyard.components:switchyard-component-bean:0.1.0]
      4 - [org.switchyard.components:switchyard-component-bean:0.2.0-SNAPSHOT]
      5 - [org.switchyard.components:switchyard-component-bean:1.0-SNAPSHOT]

      Choose an option by typing the number of the selection: 3
      Wrote /jboss/local/forge-1.0.0.Alpha3/bin/src/main/resources/META-INF/beans.xml
      **SUCCESS** Installed [switchyard.bean] successfully.
      [tempProject] bin $ bean-service create --serviceName HelloService
      Wrote /jboss/local/forge-1.0.0.Alpha3/bin/src/main/java/org/switchyard/examples/forge/HelloService.java
      Wrote /jboss/local/forge-1.0.0.Alpha3/bin/src/main/java/org/switchyard/examples/forge/HelloServiceBean.java
      Created service interface [HelloService]
      Created service implementation [HelloServiceBean]
      NOTE: Run 'mvn package' to make HelloService visible to SwitchYard shell.
      [tempProject] bin $ mvn install
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.switchyard.examples.forge:tempProject:jar:1.0.0-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 41, 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]
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building tempProject 1.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.187s
      [INFO] Finished at: Tue Jun 21 09:08:30 EDT 2011
      [INFO] Final Memory: 2M/71M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Plugin org.switchyard:switchyard-plugin:0.1.0 or one of its dependencies could not be resolved: Failure to find org.switchyard:switchyard-plugin:jar:0.1.0 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 -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [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 read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

      Attachments

        Activity

          People

            Unassigned Unassigned
            ldimaggi@redhat.com Len DiMaggio
            Archiver:
            ranumula@redhat.com Raju Anumula

            Dates

              Created:
              Updated:
              Resolved:
              Archived: