[KIE Workbench] Deployment to authenticated repository with encrypted password in maven settings.xml

425 views
Skip to first unread message

Philipp Förmer

unread,
Jun 9, 2015, 9:09:51 AM6/9/15
to drools...@googlegroups.com
Hi,

maven offers the possibility to encrypt passwords in the maven settings.xml (see https://maven.apache.org/guides/mini/guide-encryption.html). This is useful in some cases, for example settings.xml exchange.
I use this feature. I tried to deploy a rule project to a remote maven repository via KIE workbench and the authentication failed. After I exchanged the encrypted password with the plain text password in settings.xml the deployment worked.
Are there any plans to support encrypted maven passwords?

Additionaly I would like to mention a word choice improvement in chapter "4.2.3.5. Settings.xml and Remote Repository Setup" of the documentation:

"[...]Folder location specified by the system property kie.maven.settings.custom[...]". I think the word "file" would be more precise and clear than "folder".

Best regards,
Philipp

Michael Anstis

unread,
Jun 9, 2015, 10:32:26 AM6/9/15
to drools...@googlegroups.com
Hi,

Could you please confirm the steps you're taking?

I assume something like this:-

1) Configure <distributionManagement> in the project's pom.xml; 

2) In Project Editor click "Build & Deploy" 

The expectation is that the resulting JAR will be deployed to the remote configured in <distributionManagement>?

If it's something else could you please advise.

With kind regards,

Mike

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/820080d1-9058-41a0-81f8-2ba5c86fade2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philipp Förmer

unread,
Jun 9, 2015, 11:08:45 AM6/9/15
to drools...@googlegroups.com
Hi Mike,

exactly, your steps are correct with the difference that the distributionManagement is defined in a super pom, but that should not matter. The used drools version is 6.2.0.Final on tomcat 7 using jdk 7.
Additionaly to your described step the password credential in the settings.xml must be encrypted for the server id defined in the distributionManagement section. For the password encryption, please see https://maven.apache.org/guides/mini/guide-encryption.html.

Regards,
Philipp

Michael Anstis

unread,
Jun 9, 2015, 12:00:53 PM6/9/15
to drools...@googlegroups.com
OK, we don't at present have any support for encrypted passwords :(

I'm researching the topic.. let's see where it leads (PRs always welcome!!).



With kind regards,

Mike


Philipp Förmer

unread,
Jun 9, 2015, 12:26:30 PM6/9/15
to drools...@googlegroups.com
No problem - its free and changeable :).
Thank you for your great support, Mike.
Reply all
Reply to author
Forward
0 new messages