Overriding Project Properties

From Basef
Revision as of 22:28, 2 April 2018 by Admin (Talk | contribs) (Criou página com 'To override Project Properties, for example, those defined in pom.xml: <source lang="xml"> <properties> <crx.host>localhost</crx.host> <crx.port>4502</crx.por...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To override Project Properties, for example, those defined in pom.xml:

<properties>
        <crx.host>localhost</crx.host>
        <crx.port>4502</crx.port>
        <crx.username>admin</crx.username>
        <crx.password>admin</crx.password>
        <publish.crx.host>localhost</publish.crx.host>
        <publish.crx.port>4503</publish.crx.port>
        <publish.crx.username>admin</publish.crx.username>
        <publish.crx.password>admin</publish.crx.password>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

Do the following:

mvn -PautoInstallPackage clean install -Dcrx.host=production.hostname -Dcrx.password=productionpasswd