jamesnetherton commented on code in PR #31163:
URL: https://github.com/apache/camel/pull/31163#discussion_r4752215098
##########
components/camel-salesforce/camel-salesforce-component/pom.xml:
##########
@@ -401,12 +401,12 @@
${salesforce.component.root}/it/resources/salesforce-source]]></message>
<argument>setup-salesforce.sh</argument>
</arguments>
<environmentVariables>
-
<SALESFORCE_USERNAME>${env.SALESFORCE_USERNAME}</SALESFORCE_USERNAME>
-
<SALESFORCE_PASSWORD>${env.SALESFORCE_PASSWORD}</SALESFORCE_PASSWORD>
-
<SALESFORCE_LOGIN_URL>${env.SALESFORCE_LOGIN_URL}</SALESFORCE_LOGIN_URL>
<SALESFORCE_DEV_HUB>${env.SALESFORCE_DEV_HUB}</SALESFORCE_DEV_HUB>
<SALESFORCE_DEPLOY_SOURCE>${env.SALESFORCE_DEPLOY_SOURCE}</SALESFORCE_DEPLOY_SOURCE>
<SALESFORCE_SCRATCH_ORG_DURATION>${env.SALESFORCE_SCRATCH_ORG_DURATION}</SALESFORCE_SCRATCH_ORG_DURATION>
+ <!-- -D options reach the tests as
system properties, the script checks them -->
+
<MAVEN_SALESFORCE_PASSWORD>${salesforce.password}</MAVEN_SALESFORCE_PASSWORD>
+
<MAVEN_SALESFORCE_AUTH_TYPE>${salesforce.auth.type}</MAVEN_SALESFORCE_AUTH_TYPE>
Review Comment:
Thanks, but an undefined property does not stay literal here: with Maven
3.9.16 (the version of the project's wrapper), the exec plugin receives an
empty value when `-Dsalesforce.password` is not set, so
`MAVEN_SALESFORCE_PASSWORD` is empty and `has_login_setting` is false. A full
`mvn verify -Pintegration` run with this pom and no password set passes the
script's check. The suggested `${env.MAVEN_SALESFORCE_PASSWORD}` would read an
environment variable that nobody sets, so a `-Dsalesforce.password` would no
longer reach the script.
_Claude Code on behalf of jamesnetherton_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]