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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <dependencies>
  16. <!-- Project modules -->
  17. <dependency>
  18. <groupId>com.vaadin</groupId>
  19. <artifactId>vaadin-shared</artifactId>
  20. <version>${project.version}</version>
  21. </dependency>
  22. </dependencies>
  23. <build>
  24. <plugins>
  25. <plugin>
  26. <groupId>org.apache.maven.plugins</groupId>
  27. <artifactId>maven-checkstyle-plugin</artifactId>
  28. <executions>
  29. <execution>
  30. <goals>
  31. <goal>checkstyle</goal>
  32. </goals>
  33. <phase>process-sources</phase>
  34. </execution>
  35. </executions>
  36. </plugin>
  37. <plugin>
  38. <groupId>org.apache.felix</groupId>
  39. <artifactId>maven-bundle-plugin</artifactId>
  40. <extensions>true</extensions>
  41. <configuration>
  42. <instructions>
  43. <Bundle-RequiredExecutionEnvironment>${osgi.execution.environment}</Bundle-RequiredExecutionEnvironment>
  44. <Bundle-Version>${osgi.bundle.version}</Bundle-Version>
  45. <Export-Package>com.vaadin.*;version="${osgi.bundle.version}"</Export-Package>
  46. <Require-Bundle>
  47. com.vaadin.shared;bundle-version="${osgi.bundle.version}"
  48. </Require-Bundle>
  49. </instructions>
  50. </configuration>
  51. <executions>
  52. <execution>
  53. <id>bundle-manifest</id>
  54. <phase>prepare-package</phase>
  55. <goals>
  56. <goal>manifest</goal>
  57. </goals>
  58. </execution>
  59. </executions>
  60. </plugin>
  61. <plugin>
  62. <artifactId>maven-resources-plugin</artifactId>
  63. <executions>
  64. <!-- Copy .java files to package -->
  65. <execution>
  66. <id>copy-sources</id>
  67. <!-- here the phase you need -->
  68. <phase>prepare-package</phase>
  69. <goals>
  70. <goal>copy-resources</goal>
  71. </goals>
  72. <configuration>
  73. <outputDirectory>${project.build.outputDirectory}</outputDirectory>
  74. <resources>
  75. <resource>
  76. <directory>src/main/resources</directory>
  77. <filtering>false</filtering>
  78. </resource>
  79. <resource>
  80. <directory>src/main/java</directory>
  81. <filtering>false</filtering>
  82. </resource>
  83. </resources>
  84. </configuration>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-jar-plugin</artifactId>
  91. <configuration>
  92. <archive>
  93. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  94. <index>false</index>
  95. <manifest>
  96. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  97. </manifest>
  98. </archive>
  99. </configuration>
  100. </plugin>
  101. <plugin>
  102. <groupId>org.apache.maven.plugins</groupId>
  103. <artifactId>maven-surefire-plugin</artifactId>
  104. </plugin>
  105. </plugins>
  106. </build>
  107. </project>