You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.vaadin</groupId>
  7. <artifactId>vaadin-root</artifactId>
  8. <version>8.0-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>vaadin-compatibility-shared</artifactId>
  11. <name>vaadin-compatibility-shared</name>
  12. <packaging>jar</packaging>
  13. <url>https://vaadin.com/</url>
  14. <description>Vaadin 7 compatibility package for Vaadin 8</description>
  15. <properties>
  16. <!-- These files are directly from Vaadin 7 -->
  17. <sonar.skip>true</sonar.skip>
  18. </properties>
  19. <dependencies>
  20. <!-- Project modules -->
  21. <dependency>
  22. <groupId>com.vaadin</groupId>
  23. <artifactId>vaadin-shared</artifactId>
  24. <version>${project.version}</version>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <plugins>
  29. <plugin>
  30. <groupId>org.apache.maven.plugins</groupId>
  31. <artifactId>maven-checkstyle-plugin</artifactId>
  32. <executions>
  33. <execution>
  34. <goals>
  35. <goal>checkstyle</goal>
  36. </goals>
  37. <phase>process-sources</phase>
  38. </execution>
  39. </executions>
  40. </plugin>
  41. <plugin>
  42. <groupId>org.apache.felix</groupId>
  43. <artifactId>maven-bundle-plugin</artifactId>
  44. <extensions>true</extensions>
  45. <configuration>
  46. <instructions>
  47. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  48. <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
  49. <Export-Package>com.vaadin.*;version="${osgi.bundle.version}"</Export-Package>
  50. <Require-Bundle>
  51. com.vaadin.shared;bundle-version="${osgi.bundle.version}"
  52. </Require-Bundle>
  53. </instructions>
  54. </configuration>
  55. <executions>
  56. <execution>
  57. <id>bundle-manifest</id>
  58. <phase>prepare-package</phase>
  59. <goals>
  60. <goal>manifest</goal>
  61. </goals>
  62. </execution>
  63. </executions>
  64. </plugin>
  65. <plugin>
  66. <artifactId>maven-resources-plugin</artifactId>
  67. <executions>
  68. <!-- Copy .java files to package -->
  69. <execution>
  70. <id>copy-sources</id>
  71. <!-- here the phase you need -->
  72. <phase>prepare-package</phase>
  73. <goals>
  74. <goal>copy-resources</goal>
  75. </goals>
  76. <configuration>
  77. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  78. <resources>
  79. <resource>
  80. <directory>src/main/resources</directory>
  81. <filtering>false</filtering>
  82. </resource>
  83. <resource>
  84. <directory>src/main/java</directory>
  85. <filtering>false</filtering>
  86. </resource>
  87. </resources>
  88. </configuration>
  89. </execution>
  90. </executions>
  91. </plugin>
  92. <plugin>
  93. <groupId>org.apache.maven.plugins</groupId>
  94. <artifactId>maven-jar-plugin</artifactId>
  95. <configuration>
  96. <archive>
  97. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  98. <index>false</index>
  99. <manifest>
  100. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  101. </manifest>
  102. </archive>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.apache.maven.plugins</groupId>
  107. <artifactId>maven-surefire-plugin</artifactId>
  108. </plugin>
  109. </plugins>
  110. </build>
  111. </project>