1<project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant" 2 xmlns:maven="jelly:maven"> 3 4 <preGoal name="java:compile"> 5 <ant:filter token="VERSION" value="${pom.currentVersion}" /> 6 <ant:filter token="JAR" value="${maven.final.name}-full.jar" /> 7 <copy toDir="target/src" filtering="true" overwrite="true"> 8 <fileset dir="${pom.build.sourceDirectory}"> 9 <includes name="**/*" /> 10 </fileset> 11 </copy> 12 <path id="maven.compile.src.set" location="target/src" /> 13 </preGoal> 14 15 <postGoal name="uberjar"> 16 <ant:move file="${maven.build.dir}/${maven.final.name}-uber.jar" 17 toFile="${maven.build.dir}/${maven.final.name}-full.jar" 18 overwrite="true" /> 19 </postGoal> 20 21 <postGoal name="dist:build"> 22 <attainGoal name="uberjar" /> 23 <j:set var="distdir" 24 value="${pom.getPluginContext('maven-dist-plugin').getVariable('maven.dist.dir')}" /> 25 <!-- Copy UberJars --> 26 <ant:copy todir="${distdir}"> 27 <ant:fileset dir="${maven.build.dir}"> 28 <ant:include name="${maven.final.name}-full.jar" /> 29 </ant:fileset> 30 </ant:copy> 31 </postGoal> 32 33 <goal name="dist:snapshot" 34 description="Create a snapshot distribution"> 35 36 <maven:snapshot project="${pom}" /> 37 38 <j:set var="maven.final.name" value="${snapshotSignature}" /> 39 <ant:echo>Building snapshot JAR: ${maven.final.name}</ant:echo> 40 41 <attainGoal name="dist" /> 42 </goal> 43 44</project> 45