Advertisement
Guest User

Untitled

a guest
Nov 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. `<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <groupId>org.sonatype.mcookbook</groupId>
  4. <artifactId>groovy-script-ex</artifactId>
  5. <packaging>jar</packaging>
  6. <version>1.0-SNAPSHOT</version>
  7. <name>groovy-script-ex</name>
  8. <dependencies>
  9. <dependency>
  10. <groupId>org.apache.maven</groupId>
  11. <artifactId>maven-model</artifactId>
  12. <version>2.2.0</version>
  13. </dependency>
  14. <dependency>
  15. <groupId>org.codehaus.groovy</groupId>
  16. <artifactId>groovy-bsf</artifactId>
  17. <version>2.4.3</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.codehaus.groovy</groupId>
  21. <artifactId>groovy-all</artifactId>
  22. <!-- any version of Groovy >= 1.5.0 should work here -->
  23. <version>2.4.12</version>
  24. </dependency>
  25. </dependencies>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-surefire-plugin</artifactId>
  31. <version>2.12.3</version>
  32. <configuration>
  33. <failIfNoTests>false</failIfNoTests>
  34. <includes>
  35. <include>**/*test*.*</include>
  36. </includes>
  37. </configuration>
  38. </plugin>
  39. <plugin>
  40. <groupId>org.codehaus.gmaven</groupId>
  41. <artifactId>gmaven-plugin</artifactId>
  42. <version>1.5</version>
  43. <executions>
  44. <execution>
  45. <phase>generate-resources</phase>
  46. <goals>
  47. <goal>compile</goal>
  48. <goal>testCompile</goal>
  49. <goal>execute</goal>
  50. </goals>
  51. <configuration>
  52. <source>${pom.basedir}/src/Cagri_groovy/testfirst.groovy</source>
  53. </configuration>
  54. </execution>
  55. </executions>
  56. </plugin>
  57. </plugins>
  58. </build>
  59.  
  60. [ERROR] Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.5:execute (default) on project groovy-script-ex: startup failed, script1511249885612.groovy: 1: expecting EOF, found 'TESTLERİ' @ line 1, column 41.
  61. [ERROR] 1 error
  62. [ERROR] -> [Help 1]
  63. [ERROR]
  64. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  65. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  66. [ERROR]
  67. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  68. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  69.  
  70. package Cagri_groovy;
  71. import Cagri_groovy.Application
  72. import Cagri_groovy.firstgclass
  73.  
  74.  
  75. def object=new firstgclass()
  76. object.openBrowser()
  77. object.setUserName("abc")
  78. object.setPassword("123456")
  79. object.Login(object.UserName,object.Password)
  80. object.Sayfa_Acma("test.jsf")
  81. Application.open_connection()
  82. object.Simulator()
  83. Application.close_connection()`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement