Guest User

Untitled

a guest
Nov 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 KB | None | 0 0
  1. @Override
  2. public void configure() throws Exception {
  3. fromFile();
  4. }
  5. public void fromFTP() {
  6. from("ftps:username@localhost/pickup?password=xxxx&delete=true")
  7. .to("file:E:/output");
  8. }
  9.  
  10. ftps.pickup.location=ftps:username@localhost/pickup?password=xxxx
  11.  
  12. @Override
  13. public void configure() throws Exception {
  14. fromFile();
  15. }
  16. public void fromFTP() {
  17. from("{{ftps.pickup.location}}&delete=true")
  18. .to("file:E:/output");
  19. }
  20.  
  21. C:Userspathakseclipse-workspacecamel-spring-demo>mvn clean install
  22. [INFO] Scanning for projects...
  23. [INFO]
  24. [INFO] ------------------------------------------------------------------------
  25. [INFO] Building camel-spring-demo 0.0.1-SNAPSHOT
  26. [INFO] ------------------------------------------------------------------------
  27. [INFO]
  28. [INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ camel-spring-demo --
  29. -
  30. [INFO] Deleting C:Userspathakseclipse-workspacecamel-spring-demotarget
  31. [INFO]
  32. [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ camel-spri
  33. ng-demo ---
  34. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  35. [INFO] Copying 1 resource
  36. [INFO] ------------------------------------------------------------------------
  37. [INFO] BUILD FAILURE
  38. [INFO] ------------------------------------------------------------------------
  39. [INFO] Total time: 8.996 s
  40. [INFO] Finished at: 2018-11-17T17:56:48Z
  41. [INFO] Final Memory: 22M/123M
  42. [INFO] ------------------------------------------------------------------------
  43. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2
  44. .7:resources (default-resources) on project camel-spring-demo: Mark invalid -> [
  45. Help 1]
  46. [ERROR]
  47. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  48. ch.
  49. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  50. [ERROR]
  51. [ERROR] For more information about the errors and possible solutions, please rea
  52. d the following articles:
  53. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
  54. xception
  55.  
  56. <project xmlns="http://maven.apache.org/POM/4.0.0"
  57. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  58. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  59. <modelVersion>4.0.0</modelVersion>
  60. <groupId>com.pathak</groupId>
  61. <artifactId>camel-spring-demo</artifactId>
  62. <version>0.0.1-SNAPSHOT</version>
  63.  
  64. <parent>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-parent</artifactId>
  67. <version>1.5.17.RELEASE</version>
  68. <relativePath /> <!-- lookup parent from repository -->
  69. </parent>
  70.  
  71. <properties>
  72. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  73. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  74. <java.version>1.8</java.version>
  75. </properties>
  76.  
  77. <dependencies>
  78. <dependency>
  79. <groupId>org.apache.camel</groupId>
  80. <artifactId>camel-spring-boot-starter</artifactId>
  81. <version>2.21.3</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.camel</groupId>
  85. <artifactId>camel-ftp</artifactId>
  86. <version>2.21.3</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.camel</groupId>
  90. <artifactId>camel-csv</artifactId>
  91. <version>2.21.3</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.springframework.boot</groupId>
  95. <artifactId>spring-boot-devtools</artifactId>
  96. <scope>runtime</scope>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-starter-test</artifactId>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104.  
  105. <build>
  106. <plugins>
  107. <plugin>
  108. <groupId>org.springframework.boot</groupId>
  109. <artifactId>spring-boot-maven-plugin</artifactId>
  110. </plugin>
  111. </plugins>
  112. </build>
  113.  
  114. </project>
Add Comment
Please, Sign In to add comment