Advertisement
aironman

pom.xml with docker. Not working

Dec 11th, 2018
890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.aironman</groupId>
  6. <artifactId>MyStreamjava8</artifactId>
  7. <packaging>jar</packaging>
  8. <version>1.0</version>
  9. <name>MyStreamjava8</name>
  10. <url>http://maven.apache.org</url>
  11. <properties>
  12. <slf4j.version>1.8.0-beta2</slf4j.version>
  13. <docker.image.prefix>aironman</docker.image.prefix>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.slf4j</groupId>
  18. <artifactId>slf4j-api</artifactId>
  19. <version>${slf4j.version}</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.slf4j</groupId>
  23. <artifactId>slf4j-simple</artifactId>
  24. <version>${slf4j.version}</version>
  25. <!-- <scope>test</scope> -->
  26. </dependency>
  27. <dependency>
  28. <groupId>org.apache.commons</groupId>
  29. <artifactId>commons-lang3</artifactId>
  30. <version>3.1</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>junit</groupId>
  34. <artifactId>junit</artifactId>
  35. <version>4.11</version>
  36. <scope>test</scope>
  37. </dependency>
  38. </dependencies>
  39. <build>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-compiler-plugin</artifactId>
  44. <version>2.0.2</version>
  45. <configuration>
  46. <source>1.8</source>
  47. <target>1.8</target>
  48. </configuration>
  49. </plugin>
  50. <plugin>
  51. <groupId>com.spotify</groupId>
  52. <artifactId>docker-maven-plugin</artifactId>
  53. <version>1.2.0</version>
  54. <configuration>
  55. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  56. <dockerDirectory>.</dockerDirectory>
  57. <resources>
  58. <resource>
  59. <targetPath>/</targetPath>
  60. <directory>${project.build.directory}</directory>
  61. <include>${project.build.finalName}.jar</include>
  62. </resource>
  63. </resources>
  64. </configuration>
  65. </plugin>
  66. </plugins>
  67. <resources>
  68. <resource>
  69. <directory>${basedir}/src/main/docker</directory>
  70. <filtering>true</filtering>
  71. <includes>
  72. <include>Dockerfile</include>
  73. </includes>
  74. </resource>
  75. </resources>
  76. </build>
  77. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement