librelist archives

« back to archive

Re: [leiningen] Packaging and uploading a WAR to a repository

Re: [leiningen] Packaging and uploading a WAR to a repository

From:
Phil Hagelberg
Date:
2013-05-01 @ 17:10
Colin Yates writes:

> I understand I can generate a war with 'lein ring uberwar'.  How do I get
> this uploaded to a local or remote repository?

Typically repositories just contain library jars. All the tooling in
Leiningen makes this assumption, but as far as I know there's no
technical reason why it has to be this way.

But Leiningen out of the box doesn't know anything about war files or
uberwars. You'd have to write a plugin that either generates uberwar
files and deploys that, or one that takes an arbitrary pom/war file from
the command line to deploy. You would use the
cemerick.pomegranate.aether/deploy function to do this; check
leiningen.deploy for an example of how this would work.

-Phil

Re: [leiningen] Packaging and uploading a WAR to a repository

From:
Colin Yates
Date:
2013-05-01 @ 17:14
OK - thanks Phil.


On 1 May 2013 18:10, Phil Hagelberg <phil@hagelb.org> wrote:

>
> Colin Yates writes:
>
> > I understand I can generate a war with 'lein ring uberwar'.  How do I get
> > this uploaded to a local or remote repository?
>
> Typically repositories just contain library jars. All the tooling in
> Leiningen makes this assumption, but as far as I know there's no
> technical reason why it has to be this way.
>
> But Leiningen out of the box doesn't know anything about war files or
> uberwars. You'd have to write a plugin that either generates uberwar
> files and deploys that, or one that takes an arbitrary pom/war file from
> the command line to deploy. You would use the
> cemerick.pomegranate.aether/deploy function to do this; check
> leiningen.deploy for an example of how this would work.
>
> -Phil
>