Jason Dillon wrote:
On Mar 27, 2007, at 4:50 PM, Filip Hanik - Dev Lists wrote:
I don't expect that Tomcat will switch to m2, though if they are
gonna be publishing m2 repos they should use the m2 antlib for
that. But, looks like the m2 antlib is not up to snuff wrt the new?
apache requirements to publish .asc files for releases. I think the
antlib tasks probably need to be updated to allow extra files to be
attached when install/deploying and then ant folks should be
sorted... well, that and if they implement a task or macro to sign
stuff.
we're note even using the antlibs, they were not really working out.
It was easier to just exec the mvn script directly. If Maven has the
command line option to do what we want, then we can do it.
Just curious, what wasn't working out with the antlibs? They should
prolly be fixed if they are not usable by ant projects.
So if you show me the "$MAVEN_HOME/bin/mvn" command to publish a
single JAR(with a POM) and being able to make sure the signature goes
with it, then we are fine.
GPG signing is a no brainer, we can do that any day.
Hrm... I'm not sure there exists such a command at the moment, though
its probably easy enough to craft a simple goal to implement what you
need.
yeah, I might just implement this in ANT all together, and skip maven,
if it is a simple SCP copy.
The reason it doesn't work asis, is that the gpg .asc stuff is
attached to the current projects artifact and the install/deploy will
handle the primary artifact and then any attached artifacts
separately. The install-file/deploy-file goals don't have a project
to work on so there is nothing to attach to.
I suppose that either install-file/deploy-file need to take an
additional csv list of other files to "attach" or perhaps simply craft
a pom.xml which uses build-helper:attach-artifact (
http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html
) and dance around mvn a little to make `mvn deploy` work.
But, it would really be better IMO, to use the <deploy> task and
update the task to have a nested set of <attached-file> elements which
can be used to effectively behave the same as mvn would normally by
deploying the primary artifact, and then any attached artifacts.
Thats *much* less of a hack.
Can you tell me why the antlib tasks aren't working for you?
there were a few things
1. documentation or my inability to work with it
2. learning curve, I'm trying to do something really simple
3. SCP with maven on windows simply didn't work, turns out that it still
doesn't work when using the command line arguments, so I am still
running from linux.
since all I wanna do is SCP a .jar .pom .md5 and .asc, why does this
have to be so complicated :)
if I can reverse engineer what it is Maven is doing when publishing a
file to a repo, it will be easier for me to implement it in pure ant.
Filip
--jason
--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date:
3/26/2007 2:31 PM