Advertisement
Guest User

Untitled

a guest
Oct 24th, 2010
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. // packaging variable is jar
  2.  
  3. // pom definition
  4.  
  5. <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">
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.liferay.portal</groupId>
  8. <artifactId>portal-impl</artifactId>
  9. <name>Liferay Portal Impl</name>
  10. <version>@version@</version>
  11. <description>Contains implementation for the portal services.</description>
  12. <url>http://www.liferay.com</url>
  13. <developers>
  14. <developer>
  15. <id>brian.chan</id>
  16. <name>Brian Chan</name>
  17. </developer>
  18. <developer>
  19. <id>mika.koivisto</id>
  20. <name>Mika Koivisto</name>
  21. </developer>
  22. <developer>
  23. <id>thiago.moreira</id>
  24. <name>Thiago Moreira</name>
  25. </developer>
  26. </developers>
  27. <licenses>
  28. <license>
  29. <name>GNU Lesser General Public License</name>
  30. <url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
  31. <distribution>repo</distribution>
  32. </license>
  33. </licenses>
  34. <scm>
  35. <connection>scm:svn:svn://svn.liferay.com/repos/public/portal/trunk/portal-impl</connection>
  36. <url>http://guest:guest@svn.liferay.com/repos/public/portal/trunk/portal-impl</url>
  37. </scm>
  38. <dependencies>
  39. <dependency>
  40. <groupId>com.liferay.portal</groupId>
  41. <artifactId>portal-service</artifactId>
  42. <version>@version@</version>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.liferay.portal</groupId>
  47. <artifactId>util-bridges</artifactId>
  48. <version>@version@</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>com.liferay.portal</groupId>
  53. <artifactId>util-java</artifactId>
  54. <version>@version@</version>
  55. <scope>provided</scope>
  56. </dependency>
  57. </dependencies>
  58. </project>
  59.  
  60. execution from Ant
  61.  
  62. <exec dir="." executable="${maven.executable}" failonerror="true">
  63. <arg value="-U" />
  64. <arg value="gpg:sign-and-deploy-file" />
  65. <arg value="-DartifactId=${artifact.id}" />
  66. <arg value="-Dfile=${artifact.id}/${artifact.id}.${packaging}" />
  67. <arg value="-Dgpg.executable=${gpg.executable}" />
  68. <arg value="-Dgpg.keyname=${gpg.keyname}" />
  69. <arg value="-Dgpg.passphrase=${gpg.passphrase}" />
  70. <arg value="-DgroupId=com.liferay.portal" />
  71. <arg value="-Dpackaging=${packaging}" />
  72. <arg value="-DpomFile=tools/maven/${artifact.id}.pom" />
  73. <arg value="-DrepositoryId=${maven.repository.id}" />
  74. <arg value="-Durl=${maven.url}" />
  75. <arg value="-Dversion=${maven.version}" />
  76. </exec>
  77.  
  78. <exec dir="." executable="${maven.executable}" failonerror="true">
  79. <arg value="-U" />
  80. <arg value="gpg:sign-and-deploy-file" />
  81. <arg value="-DartifactId=${artifact.id}" />
  82. <arg value="-Dfile=${artifact.id}/${artifact.id}-sources.${packaging}" />
  83. <arg value="-Dclassifier=sources" />
  84. <arg value="-DgeneratePom=false" />
  85. <arg value="-Dgpg.executable=${gpg.executable}" />
  86. <arg value="-Dgpg.keyname=${gpg.keyname}" />
  87. <arg value="-Dgpg.passphrase=${gpg.passphrase}" />
  88. <arg value="-DgroupId=com.liferay.portal" />
  89. <arg value="-Dpackaging=${packaging}" />
  90. <arg value="-DrepositoryId=${maven.repository.id}" />
  91. <arg value="-Durl=${maven.url}" />
  92. <arg value="-Dversion=${maven.version}" />
  93. </exec>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement