[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-13 Thread srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250231#comment-16250231
 ] 

srinivas commented on CAMEL-11987:
--

Sorry I was on vacation and coul;dn't get to this until this point. I checked 
right now and it did generated all the classes. 

Thank you, I'll use these classes and will let you know if I run into any 
issues.

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-salesforce-maven-plugin ---
> ERROR StatusLogger No log4j2 configuration file found. Using default 
> configuration: logging only e

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-09 Thread Zoran Regvart (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245453#comment-16245453
 ] 

Zoran Regvart commented on CAMEL-11987:
---

[~srinivasks22] you seem to be using version {{2.20.0.fuse-000120-redhat-1}} 
this is not something we can support at the Apache, you need to contact RedHat 
support for that. This was fixed in version 2.21 that you can use by running 
{{mvn 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.21.0-SNAPSHOT:generate 
...}}.

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-sale

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-08 Thread srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245176#comment-16245176
 ] 

srinivas commented on CAMEL-11987:
--

Hi Zoran,

   Kindly ignore the above stack trace. Please find the latest stack trace as 
below:


[INFO] --- camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate 
(default-cli) @ camel-salesforce-maven-plugin ---
ERROR StatusLogger No log4j2 configuration file found. Using default 
configuration: logging only errors to the console. Set system property 
'log4j2.debug' to show Log4j2 internal initialization logging.
[INFO] Logging initialized @2421ms
[INFO] Available providers: SUN version 1.8.
[INFO] Salesforce login...
[INFO] Login at Salesforce loginUrl: 
https://test.salesforce.com/services/oauth2/token
[INFO] Login successful
[INFO] Salesforce login successful
[INFO] Getting Salesforce Objects...
[WARNING] Generating Java classes for all 627 Objects, this may take a while...
[INFO] Retrieving Object descriptions...
[INFO] Generating Java Classes...
[INFO] Logout successful
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 01:22 min
[INFO] Finished at: 2017-11-08T23:15:10-05:00
[INFO] Final Memory: 40M/664M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
 (default-cli) on project camel-salesforce-maven-plugin: Execution default-cli 
of goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
 failed: Invocation of method 'getFieldType' in  class 
org.apache.camel.maven.CamelSalesforceMojo$GeneratorUtility threw exception 
org.apache.maven.plugin.MojoExecutionException: Unsupported type 
urn:RelationshipReferenceTo for field ReferenceTo at /sobject-pojo.vm[line 80, 
column 30] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

Thanks

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-08 Thread srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16245165#comment-16245165
 ] 

srinivas commented on CAMEL-11987:
--

Hi Xoran, I just tried again and I see the below error:

ERROR StatusLogger No log4j2 configuration file found. Using default 
configuration: logging only errors to the console. Set system property 
'log4j2.debug' to show Log4j2 internal initialization logging.
[INFO] Logging initialized @21808ms
[INFO] Available providers: SUN version 1.8.
[INFO] Salesforce login...
[INFO] Login at Salesforce loginUrl: https:///services/oauth2/token
[INFO] Login successful
[INFO] Salesforce login successful
[INFO] Getting Salesforce Objects...
[INFO] Logout successful
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 23.772 s
[INFO] Finished at: 2017-11-08T22:48:28-05:00
[INFO] Final Memory: 38M/407M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.camel.maven:camel-salesforce-maven-plugin:2.20.0.fuse-000120-redhat-1:generate
 (default-cli) on project camel-salesforce-maven-plugin: Error getting global 
Objects: {errors:[{"errorCode":"NOT_FOUND","message":"The requested resource 
does not exist"}],statusCode:404} -> [Help 1]

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or u

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-06 Thread Zoran Regvart (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16240694#comment-16240694
 ] 

Zoran Regvart commented on CAMEL-11987:
---

Yes [~srinivasks22] it should be in the latest 2.21.0-SNAPSHOT, keep in mind 
that the DTOs generated with the latest Maven plugin might not work with an 
older version of Camel. IIRC in 2.19 we redesigned the class hierarchy of DTOs 
and older versions simply don't have the new base class.

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-salesforce-maven-plugin ---
> ERROR Statu

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-06 Thread srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16240185#comment-16240185
 ] 

srinivas commented on CAMEL-11987:
--

Thank you Zoran for your updates. Can I take the latest 2.21.0-SNAPSHOT and 
test this out since the release is not yet out?

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
> Fix For: 2.21.0
>
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-salesforce-maven-plugin ---
> ERROR StatusLogger No log4j2 configuration file found. Using default 
> configuration: logging only errors to the console. Set system property 
> 'org.apache.logging.log4j.simplelog.Status

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-06 Thread Zoran Regvart (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16240069#comment-16240069
 ] 

Zoran Regvart commented on CAMEL-11987:
---

The Camel Salesforce Maven plugin seems to be missing a type mapping for 
{{urn:RelationshipReferenceTo}} I think as a first step we can block this 
property from being considered for DTO generation similar to {{PicklistValues}} 
and {{ChildRelationships}} currently.

I'll make this modification, in the meantime [~srinvas] perhaps you could run 
the plugin excluding {{EntityParticle}} SObject from DTO generation, see 
{{excludePattern}} in the 
[documentation|https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/docs/salesforce-component.adoc#camel-salesforce-maven-plugin].

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Assignee: Zoran Regvart
>Priority: Blocker
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in t

[jira] [Commented] (CAMEL-11987) Camel-SalesForce DTO Issue while using camel-salesforce-maven

2017-11-05 Thread srinivas (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-11987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16239761#comment-16239761
 ] 

srinivas commented on CAMEL-11987:
--

As per your suggestion, I've posted on various communities. I couldn't find any 
response or help yet.

> Camel-SalesForce DTO Issue while using camel-salesforce-maven
> -
>
> Key: CAMEL-11987
> URL: https://issues.apache.org/jira/browse/CAMEL-11987
> Project: Camel
>  Issue Type: Bug
>  Components: camel-salesforce
>Affects Versions: 2.17.7, 2.20.0
>Reporter: srinivas
>Priority: Blocker
>
> I'm trying to connect to our private salesforce cloud using camel and trying 
> to generate DTO's using the camel-salesforce-maven. It connects well and it 
> shows that there are about 627 objects found. Then while trying to generate 
> the java classes it throws the exception as below. I'm using the below 
> command and I've tried with the 2.18. 2.19 and 2.20 versions but I see this 
> consistent error across all the versions. 
> mvn camel-salesforce:generate -DcamelSalesforce.clientId= 
> -DcamelSalesforce.clientSecret=-DcamelSalesforce.userName= 
> -DcamelSalesforce.password= -DcamelSalesforce.loginUrl= 
> -DcamelSalesforce.version=41.0
> [INFO] Scanning for projects...
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO]
>  
> [INFO] 
> 
> [INFO] Building Camel :: Salesforce :: Maven plugin 2.17.8-SNAPSHOT
> [INFO] 
> 
> [WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.eclipse.m2e:lifecycle-mapping:1.0.0: Plugin 
> org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its dependencies could not 
> be resolved: Failure to find org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 in 
> https://maven.repository.redhat.com/techpreview/all/ was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> redhat-techpreview-all-repository has elapsed or updates are forced
> [WARNING] The POM for 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  is missing, no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}:
>  Plugin 
> org.apache.maven.plugins:maven-surefire-plugin:{maven-surefire-plugin-version}
>  or one of its dependencies could not be resolved: Failure to find 
> org.apache.maven.plugins:maven-surefire-plugin:jar:{maven-surefire-plugin-version}
>  in https://maven.repository.redhat.com/techpreview/all/ was cached in the 
> local repository, resolution will not be reattempted until the update 
> interval of redhat-techpreview-all-repository has elapsed or updates are 
> forced
> [INFO] 
> [INFO] --- camel-salesforce-maven-plugin:2.18.1.redhat-21:generate 
> (default-cli) @ camel-salesforce-maven-plugin ---
> ERROR StatusLogger No log4j2 configuration file found. Using default 
> configuration: logging only errors to the console. Set system property 
> 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show 
> Log4j2 internal initialization logging.
> [INFO] Logging