Description of problem: dtgov-workflows seems to not support SNAPSHOT versions, however documentation states that dtgov.properties file is accepting maven versions (so the SNAPSHOT version should be supported) Version-Release number of selected component (if applicable): * 6.0.0.GA How reproducible: * 100% Steps to Reproduce: 1. Install FSW 6.0 2. Configure DTGov (in dtgov.properties) to use dtgov-workflows with SNAPSHOT version (e.g. 1.0.1-SNAPSHOT) 3. Start FSW 6.0 4. deploy dtgov-workflows (from dtgov-data by mvn clean deploy) Actual results: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.352s [INFO] Finished at: Thu Apr 17 15:16:53 CEST 2014 [INFO] Final Memory: 29M/433M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project dtgov-default-workflows: Failed to retrieve remote metadata org.overlord.dtgov:dtgov-default-workflows:1.0.3-SNAPSHOT/maven-metadata.xml: Could not transfer metadata org.overlord.dtgov:dtgov-default-workflows:1.0.3-SNAPSHOT/maven-metadata.xml from/to local-sramp-repo-snapshots (sramp://localhost:8080/s-ramp-server/?artifactType=KieJarArchive): Failed to connect to the S-RAMP repository. Authentication failure while attempting to access the S-RAMP repository. -> [Help 1] Expected results: * Either implement support for SNAPSHOT versions of dtgov-workflows, or * Display more appropriate error message, since it's not true that there is a problem with authentication Additional info: * Deployment of dtgov-workflows with 'regular' version works fine
Your settings.xml must have credentials for the S-RAMP server or you will get this failure. Note that the pom.xml is often configured with a different server ID for release vs. snapshot deployments. If that's the case then you need a different "server" entry in your settings.xml for snapshot deployments. Alternatively just use the same ID for both releases and snapshots in your pom.
I have settings.xml configured properly, afaik: <servers> <server> <id>local-sramp-repo</id> <username>fswAdmin</username> <password>[PWD]</password> </server> <server> <id>local-sramp-repo-snapshots</id> <username>fswAmin</username> <password>[PWD]</password> </server> </servers> The non-snapshot deployment works fine, just snapshot version in dtgov-workflows pom.xml causes this exception.
Interesting! Can you post your pom.xml?
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.overlord.dtgov</groupId> <artifactId>dtgov-default-workflows</artifactId> <!-- <version>1.0.2.Final-redhat-8</version> --> <version>1.0.2-SNAPSHOT</version> <name>Design Time Governance: Workflows</name> <packaging>jar</packaging> <description>Design Time Governance governance workflows.</description> <build> <extensions> <extension> <groupId>org.overlord.sramp</groupId> <artifactId>s-ramp-wagon</artifactId> <version>0.3.1.Final-redhat-7</version> </extension> </extensions> </build> <distributionManagement> <repository> <id>local-sramp-repo</id> <name>S-RAMP Releases Repository</name> <url>sramp://localhost:8080/s-ramp-server/?artifactType=KieJarArchive</url> </repository> <snapshotRepository> <id>local-sramp-repo-snapshots</id> <name>S-RAMP Snapshots Repository</name> <url>sramp://localhost:8080/s-ramp-server/?artifactType=KieJarArchive</url> </snapshotRepository> </distributionManagement> </project>
I just tested this with FSW6.GA and it worked fine (using what I configured for my Summit presentation demo). :( I'll try again with a fresh install of FSW.
Ok I tried this again with a fresh FSW6 GA install and it worked. Here's what I did: 1) install FSW 2) modify jboss-eap-6.1/quickstarts/overlord/sramp/s-ramp-demos-switchyard a) change the version to 1.0.0-SNAPSHOT b) created a my-settings.xml file with my credentials in it 3) do a "mvn -s my-settings.xml clean deploy" The result was a successful build and all the appropriate content in the repository. My relevant pom.xml markup is: <distributionManagement> <repository> <id>local-sramp-repo</id> <name>S-RAMP Releases Repository</name> <url>sramp://localhost:8080/s-ramp-server/?artifactType=SwitchYardApplication</url> </repository> <snapshotRepository> <id>local-sramp-repo-snapshots</id> <name>S-RAMP Snapshots Repository</name> <url>sramp://localhost:8080/s-ramp-server/?artifactType=SwitchYardApplication</url> </snapshotRepository> </distributionManagement> My relevant settings.xml markup is: <servers> <server> <id>local-sramp-repo</id> <username>admin</username> <password>b00bies!</password> </server> <server> <id>local-sramp-repo-snapshots</id> <username>admin</username> <password>b00bies!</password> </server> </servers>
I can confirm that the upload of SNAPSHOT version works. I had a typo in my settings.xml credentials for snapshots repo :-/