'clojure' packaging & release makes misnamed jar

13 views
Skip to first unread message

Stuart Sierra

unread,
Nov 27, 2010, 12:33:36 PM11/27/10
to Clojure Maven Plugin
An odd quirk:
Using clojure-maven-plugin 1.3.6
and <packaging>clojure</packaging>
and maven-release-plugin 2.0-beta-9

The JAR file that gets uploaded by the release plugin has the
extension ".clojure" instead of ".jar".

For an example, see my personal release repository at
http://stuartsierra.com/maven2/com/stuartsierra/lazytest/1.2.0/

The .clojure file appears to be a valid JAR file, it just has the
wrong extension.

-S

Stuart Sierra

unread,
Nov 27, 2010, 12:41:32 PM11/27/10
to Clojure Maven Plugin
On Nov 27, 12:33 pm, Stuart Sierra <the.stuart.sie...@gmail.com>
wrote:
> An odd quirk:
> Using clojure-maven-plugin 1.3.6
>  and <packaging>clojure</packaging>
>  and maven-release-plugin 2.0-beta-9

The same thing happens with maven-release-plugin 2.1,
see http://stuartsierra.com/maven2/com/stuartsierra/lazytest/1.2.1/

Here's the relevant mvn output:

[INFO] [INFO] [jar:jar {execution: default-jar}]
[INFO] [INFO] Building jar: /Users/stuart/src/stuartsierra/
lazytest/target/checkout/target/lazytest-1.2.1.jar
[INFO] [INFO] Preparing source:jar
[INFO] [WARNING] Removing: jar from forked lifecycle, to prevent
recursive invocation.
[INFO] [INFO] No goals needed for project - skipping
[INFO] [INFO] [source:jar {execution: attach-sources}]
[INFO] [INFO] Building jar: /Users/stuart/src/stuartsierra/
lazytest/target/checkout/target/lazytest-1.2.1-sources.jar
[INFO] [INFO] [javadoc:jar {execution: attach-javadocs}]
[INFO] [INFO] Not executing Javadoc as the project is not a Java
classpath-capable package
[INFO] [INFO] [install:install {execution: default-install}]
[INFO] [INFO] Installing /Users/stuart/src/stuartsierra/lazytest/
target/checkout/target/lazytest-1.2.1.jar to /Users/stuart/.m2/
repository/com/stuartsierra/lazytest/1.2.1/lazytest-1.2.1.clojure
[INFO] [INFO] Installing /Users/stuart/src/stuartsierra/lazytest/
target/checkout/target/lazytest-1.2.1-sources.jar to /Users/stuart/.m2/
repository/com/stuartsierra/lazytest/1.2.1/lazytest-1.2.1-sources.jar
[INFO] [INFO] [deploy:deploy {execution: default-deploy}]
[INFO] Uploading:
ftp://stuartsierra.com/public_html/stuartsierra/maven2/com/stuartsierra/lazytest/1.2.1/lazytest-1.2.1.clojure

Mark Derricutt

unread,
Nov 27, 2010, 7:09:42 PM11/27/10
to clojure-ma...@googlegroups.com
I've found the problem and have a fix in place ( needed to configure
an artifact handler for the custom lifecycle ).

Will push out a SNAPSHOT to a staging repo soon with a few other fixes
(swank on windows) which someone else mentioned.

mark

--
"Great artists are extremely selfish and arrogant things" — Steven
Wilson, Porcupine Tree

Mark Derricutt

unread,
Nov 28, 2010, 6:52:20 AM11/28/10
to clojure-ma...@googlegroups.com
Fixed in 1.3.7 which I've staged at:

https://oss.sonatype.org/content/repositories/comtheoryinpractiseclojure-maven-plugin-037/

I've tried this with Maven 3 but not 2.2.1 and it works fine. Will
probably release the staging repo sometime tomorrow unless anything
comes up...

--
"Great artists are extremely selfish and arrogant things" — Steven
Wilson, Porcupine Tree

On Sun, Nov 28, 2010 at 6:33 AM, Stuart Sierra
<the.stua...@gmail.com> wrote:

Stuart Sierra

unread,
Dec 1, 2010, 12:46:06 PM12/1/10
to Clojure Maven Plugin
On Nov 28, 6:52 am, Mark Derricutt <m...@talios.com> wrote:
> I've tried this with Maven 3 but not 2.2.1 and it works fine.

I tried it with 2.2.1 and it seems to work, at least as far as the
"install" phase.

-S
Reply all
Reply to author
Forward
0 new messages