You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by EJ Ciramella <ej...@upromise.com> on 2006/08/01 23:55:06 UTC
RE: Problem with checksum generation
For those of you running ant somewhere, put this build script at the top
of your repository:
<target name="build">
<checksum algorithm="sha1" forceoverwrite="true">
<fileset dir=".">
<include name="**/*.pom"/>
<include name="**/*.jar"/>
<include name="**/*.xml"/>
</fileset>
</checksum>
<checksum algorithm="md5" forceoverwrite="true">
<fileset dir=".">
<include name="**/*.pom"/>
<include name="**/*.jar"/>
<include name="**/*.xml"/>
</fileset>
</checksum>
</target>
(up to you to do the forceoverwrite, my checksum files were a bit
garbled)
-----Original Message-----
From: Max Cooper [mailto:max@maxcooper.com]
Sent: Friday, July 07, 2006 10:29 PM
To: Maven Users List
Subject: Re: Problem with checksum generation
My understanding is that the -Durl param is to tell maven where your
repository is. It isn't totally clear, but in your command it looks like
you are telling maven to install a jar to the spot that it already
exists. That seems like a bad idea, and might be the cause of your
troubles.
Try it without the -Durl param. Or change the -Durl param to point to
your local repo. Or make it point somewhere else, and then copy the
files over, if you are stubborn. :-)
Or move the jar outside of your repository before you try to install it.
I generate my own checksums using md5sum and sha1sum sometimes. You can
get these on Windows by installing Cygwin, and then installing the
package(s) that contain the commands. I don't know what the package
name(s) are.
cat aopalliance-1.0.jar | md5sum > aopalliance-1.0.jar.md5
cat aopalliance-1.0.jar | sha1sum > aopalliance-1.0.jar.sha1
The pom is just a text file. Look at some other ones and adapt them to
what you need.
For aopalliance-1.0, you can just get it from ibiblio:
http://ibiblio.org/maven2/aopalliance/aopalliance/1.0/
-Max
v_waran wrote:
> Hi,
> I am trying to create POM and checksum for existing jar file. When I
tried
> to run the below command POM and checksum files are created but jar
file is
> overwritten to 4k.( I tried with different jar files but consistenly
its
> overwritten to size of 4k.). Command used is
>
> mvn deploy:deploy-file -DrepositoryId=localRepository -Dpackaging=jar
> -Durl=file:\\D:\test\extlib2 -Dversion=1.0 -DgroupId=aopalliance
> -DartifactId=aopalliance
> -Dfile=..\..\extlib2\aopalliance\aopalliance\1.0\aopalliance-1.0.jar
>
> 1. Is their any option to not to overwrite the jar file (if it already
> exist) ? If not why does it create only to 4k ? Any idea ?
>
> 2. Any alternative way to create POM & checksum file(s) for the
existing jar
> file ?
>
> Any input is highly valuable.
>
> Regards,
> waran
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org