Bug 1088970 - Deploying SNAPSHOT version of dtgov-workflows causes authentication failure
Summary: Deploying SNAPSHOT version of dtgov-workflows causes authentication failure
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: DT Governance
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Eric Wittmann
QA Contact: Jiri Sedlacek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-17 14:31 UTC by Stefan Bunciak
Modified: 2015-08-02 23:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-28 13:22:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1088957 0 low MODIFIED Missing support for maven keywords - LATEST / RELEASE 2021-10-15 11:51:45 UTC
Red Hat Knowledge Base (Solution) 793253 0 None None None Never

Internal Links: 1088957

Description Stefan Bunciak 2014-04-17 14:31:53 UTC
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

Comment 1 Eric Wittmann 2014-04-23 15:32:03 UTC
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.

Comment 2 Stefan Bunciak 2014-04-24 10:23:17 UTC
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.

Comment 3 Eric Wittmann 2014-04-24 14:25:49 UTC
Interesting!  Can you post your pom.xml?

Comment 4 Stefan Bunciak 2014-04-25 08:00:55 UTC
<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>

Comment 5 Eric Wittmann 2014-04-25 13:57:48 UTC
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.

Comment 6 Eric Wittmann 2014-04-25 20:23:04 UTC
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>

Comment 7 Stefan Bunciak 2014-04-28 13:22:13 UTC
I can confirm that the upload of SNAPSHOT version works. 
I had a typo in my settings.xml credentials for snapshots repo :-/


Note You need to log in before you can comment on or make changes to this bug.