Moving to dev list.
Mike,
I spent some time reviewing GuvnorM2Repository with Mark's help. It looks like the
workbench will never deploy to a remote repository and it can't currently be
configured to do so because of how it gets the deploy URL. Right now it mixes a local
folder with the URL so there isn't any way to change that to an external location. It
will only deploy to the http repository exposed by Guvnor. Details are in the JIRA.
I believe that the tool should inspect the pom for the package and see if there are
repositories and deploy to those. Or it should use the repositories configured in
settings.xml for the maven install. Or both.
I opened GUVNOR-2088 for this. Ping me on IRC tomorrow and I may take a shot at fixing
this and issuing a pull.
Joe
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 4:03 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories
The workbench attempts an install and deploy. GuvnorM2Repository in the guvnor project is
the class (IIRC).
Sent on the move
On 20 Mar 2014 21:47, "Joe White"
<Joe.White@recondotech.com<mailto:Joe.White@recondotech.com>> wrote:
In fact, if I manually go into the guvnor repository, copy the pom.xml directly from the
workbench, and command line run "mvn deploy" the jar gets pushed out to my
remote repository. So I know for sure the pom is configured correctly in the workbench
Is the workbench actually calling "deploy" or just "install" ? Where
in the code would be a good starting point to dig a little deeper on this?
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Joe White
Sent: Thursday, March 20, 2014 3:15 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories
I've got distribution management that matches my settings xml added to the pom but it
doesn't seem to connect (or to attempt to connect)
<distributionManagement>
<repository>
<id>recondo-repo</id>
<url>http://papaafrepo001.recondo.vci:8081/artifactory/recondo-release</url<http://papaafrepo001.recondo.vci:8081/artifactory/recondo-release%3c/url>>
</repository>
<snapshotRepository>
<id>recondo-repo</id>
<url>http://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot</url<http://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot%3c/url>>
</snapshotRepository>
</distributionManagement>
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 2:56 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories
That depends how you're configuring your project's distribution management.
Adding (I assume) your remote to the repositories section is only telling maven a remote
to query to *download* artifacts.
Sent on the move
On 20 Mar 2014 20:41, "Joe White"
<Joe.White@recondotech.com<mailto:Joe.White@recondotech.com>> wrote:
So if I change the configuration in the WB UI should I expect the jar to end up in my
remote repo? It is only ending up in my local repository.
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 1:10 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories
I've asked a colleague to comment.
We do manipulate the pom for the UI but should retain original content that is not
modified by the Project Editor.
@Toni... What's your opinion?
Sent on the move
On 20 Mar 2014 18:03, "Joe White"
<Joe.White@recondotech.com<mailto:Joe.White@recondotech.com>> wrote:
Also, that is the same configuration that is in my settings.xml for my installed maven
instance and the profile is active.
From:
rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Subject: [rules-users] Updating project repositories
I have updated my repository configuration but when I build and deploy by package two
things happen:
- The jar only gets deployed to my local repo it doesn't go out to the remote
instance
- The pom doesn't contain the full repository configuration when deployed.
The <snapshot> and <releases> config are dropped
Am I missing a piece of config to get the jar pushed out to my remote repo?
My repository config inside the WB:
<repositories>
<repository>
<id>recondo-repo</id>
<name>papaafrepo001-releases</name>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
<url>http://papaafrepo001.recondo.vci:8081/artifactory/repo</url<http://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url>>
</repository>
</repositories>
Repo config inside the deployed pom:
<repositories>
<repository>
<id>recondo-repo</id>
<name>papaafrepo001-releases</name>
<url>http://papaafrepo001.recondo.vci:8081/artifactory/repo</url<http://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url>>
</repository>
</repositories>
Joe White
CIO Technology Enabled Services
303-974-2849<tel:303-974-2849> (Office)
720-232-9023<tel:720-232-9023> (Cell)
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users