chrisprice / phonegap-build

This project aims to provide a stand-alone Java API for communicating with the PhoneGap Build REST API and a Maven Plugin which makes use of the API to turn WAR projects into binaries for mobile platforms.
http://chrisprice.github.com/phonegap-build/phonegap-build-maven-plugin
Apache License 2.0
11 stars 18 forks source link

Can't define certificates as properties #17

Closed DURK closed 10 years ago

DURK commented 10 years ago

Hi, thanks for sharing your great plugin :) :+1:

You mention the following in the docs: It is possible to configure the above using properties but it is not recommended.

Now, I am able to use phonegap-build.username and phonegap-build.password as properties, but not the certificate-settings.

I'm using:

<ios-distribution-certificate.privateKey>../signing/ios.p12</ios-distribution-certificate.privateKey>
<ios-distribution-certificate.passphrase>...</ios-distribution-certificate.passphrase>

Error message: ios certificate password not defined or blank

Do you have any idea what I'm missing here?

chrisprice commented 10 years ago

The documentation is a bit unclear because of how the key management "evolved" over time. You should be able to use -

<iOsCertificate>...</iOsCertificate>
<iOsCertificatePassword>...</iOsCertificate>

In the same place you would use iOsMobileProvision described here.

DURK commented 10 years ago

Thanks :) got it working using with properties defined as phonegap-build.ios.certificate, phonegap-build.android.keystore.password etc.