Advertisement
Guest User

maven parent pom broken in gradle

a guest
Jun 28th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. I found that one of my POMs works fine if I remove the <parent> section. My parent pom is very simple. When I copy its contents directly into the project, the build also succeeds. It seems to be the use of <parent> itself that causes the problem.
  2.  
  3. My parent pom looks like this:
  4.  
  5. <project>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.example</groupId>
  8. <artifactId>example</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. <packaging>pom</packaging>
  11.  
  12. <properties>
  13. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14. </properties>
  15.  
  16. <distributionManagement>
  17. <repository>
  18. <id>releases</id>
  19. <url>http://corp.repo/content/repositories/releases</url>
  20. </repository>
  21. <snapshotRepository>
  22. <id>snapshots</id>
  23. <url>http://corp.repo/content/repositories/snapshots</url>
  24. </snapshotRepository>
  25. </distributionManagement>
  26. </project>
  27.  
  28. and it is being included like this:
  29.  
  30. <parent>
  31. <groupId>com.example</groupId>
  32. <artifactId>example</artifactId>
  33. <version>1.0-SNAPSHOT</version>
  34. </parent>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement