I have a project which builds a jar file. That project also uses a jar file which is manually built once in a while. It lives in the /lib directory for the project, and is accessed via a jar override. In maven.xml, I have a postgoal to jar:install, which also installs this jar to the local repo, since it is needed by the main jar.
<postGoal name="jar:install">
<ant:property name="jardir__" value="${maven.repo.local}/${pom.artifactDirectory}/jars"/>
<ant:mkdir dir="${jardir__}"/> <ant:copy
file="${basedir}/lib/core/xmltypes.jar"
tofile="${jardir__}/${pom.artifactId}-xmltypes-${pom.currentVersion}.jar"
overwrite="true"
/>
</postGoal>
This would probably be better handled by taking advantage of the artifact tags, however, I only want the repo info from the POM used, not the artifact id or version, since I obviously need control over the final name.
What do you think?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]