> I would *love* to be able to make the artifact of a project an
existing jar file.
But you have to understand that this isn't what the "jar" or "pom"
packaging types do.

> Instead I have to struggle with tricking maven into thinking that it
has built a jar file when it hasn't.
You just have you use deploy:deploy-file as documented. No trickery
involved.

> ...which means, not the pom that is autogenerated by deploy-file or
> install-file - deploy-file allows me to specify a concrete pom.
install:install-file has a pomFile property just like deploy:deploy-file

> OK I can write scripts, but the point is that I want maven to do my
build
As far as I can tell, nothing in this thread is related to build.
Deploying a 3rdparty jar should be a one-time operation. The only reason
you'd need to redeploy is when a new version of the 3rdparty jar was
released or you lost your repository and didn't have backups.

Look - I don't want to beat a dead horse here, but I really don't think
you should give up just because of this issue. As I said above, at least
in my world, deploying a 3rdparty jar is a one-time operation. You're
obviously free to do whatever you want, but this seems like way to minor
a point to block your efforts.

-----Original Message-----
From: Dave Syer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 1:26 PM
To: [email protected]
Subject: RE: Automating install:install-file


> From ... "copies the final package to the remote repository for
sharing
> with other developers and projects" meaning the package (artifact) of
a
> project

That's fine.  I would *love* to be able to make the artifact of a
project an
existing jar file.  Instead I have to struggle with tricking maven into
thinking that it has built a jar file when it hasn't.  All I want is
these
3rd party jars in a repo somewhere with a proper pom...

> You can specify a pom with either install:install-file or
> deploy:deploy-file. Check their mojo documentation. The difference is
> that with install:install-file, generatePom defaults to false whereas
> with deploy:deploy-file, it defaults to true. 

...which means, not the pom that is autogenerated by deploy-file or
install-file - deploy-file allows me to specify a concrete pom.

I don't feel like I'm getting any further forward here.  Maven is not
the
only game in town, and there will always be jar files that other people
produce.  It just isn't very easy to use them in a controlled
environment,
within the maven framework.  OK I can write scripts, but the point is
that I
want maven to do my build, and not to have to rely on other tools (that
might not be available according to the platform).
-- 
View this message in context:
http://www.nabble.com/Automating-install%3Ainstall-file-tf2071058.html#a
5730267
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to