camel-salesforce-maven-plugin 生成无法编译的代码

camel-salesforce-maven-plugin generates code that does not compile

当 运行宁 pom.xml 与

<plugin>
    <groupId>org.apache.camel.maven</groupId>
    <artifactId>camel-salesforce-maven-plugin</artifactId>
    <version>2.22.2</version>
    <executions>
        <execution>
            <id>camel-sforce</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <outputDirectory>${project.basedir}/src/main/java</outputDirectory>
        <version>44.0</version>
        <clientId>${my.clientId}</clientId>
        <clientSecret>${my.clientSecret}</clientSecret>
        <userName>${my.username}</userName>
        <password>${my.password}</password>
        <loginUrl>${my.loginUrl}</loginUrl>
        <packageName>com.my.entities4camel</packageName>
        <includes>
            <include>Task</include>
        </includes>
    </configuration>
</plugin>

生成的代码无法编译 因为

这样的代码
 private Account_Lookup What;

    @JsonProperty("What")
    public Account_Lookup getWhat() {
        return this.What;
    }

    @JsonProperty("What")
    public void setWhat(Account_Lookup What) {
        this.What = What;
    }
    private rtms__CarrierPayment__c_Lookup What;

    @JsonProperty("What")
    public rtms__CarrierPayment__c_Lookup getWhat() {
        return this.What;
    }

    @JsonProperty("What")
    public void setWhat(rtms__CarrierPayment__c_Lookup What) {
        this.What = What;
    }

似乎任何具有 Salesforce "polymorphism"(能够引用任何类型的实体)的字段都会导致问题。

Task 只是最简单的例子。

另一件可能很重要的事情:我 运行 在已安装的软件包之上 前缀为 rtms__ 的字段来自托管包。

是的。

这是一个错误。

并且已经解决了。

修复将在下一个周期发布。

非常感谢 Camel 开发团队和贡献者。

谢谢大家!!!

这是 Camel Jira 中的门票

https://issues.apache.org/jira/browse/CAMEL-12963