librelist archives

« back to archive

Compile/JAR problem with 2.3.0?

Compile/JAR problem with 2.3.0?

From:
Sean Corfield
Date:
2013-08-09 @ 16:32
Having successfully upgraded to 2.3.0 (lein upgrade now works on Mac
OS X 10.8.4), I ran into a curious problem where `lein install` claims
to compile my AOT code but omits it from the JAR it creates. Here's a
console log illustrating the problem. If I run `lein do clean,
install` - which works with 2.1.3 - my JAR includes my compiled .class
files. If I do the same on 2.3.0, my .class files are omitted. If I
run `lein do clean, compile, install` - which claims to compile the
code twice - then the .class files ARE included:

(! 547)-> lein do clean, install
Compiling worldsingles.logging.dbappender
Created 
/Developer/workspace/worldsingles/ws/model/clojure/logging/target/ws-logging-0.2.0.jar
Wrote /Developer/workspace/worldsingles/ws/model/clojure/logging/pom.xml

Fri Aug 09 09:28:25
(sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
(! 548)-> jar tvf target/ws-logging-0.2.0.jar
    91 Fri Aug 09 09:28:24 PDT 2013 META-INF/MANIFEST.MF
  2569 Fri Aug 09 09:28:24 PDT 2013
META-INF/maven/worldsingles/ws-logging/pom.xml
    98 Fri Aug 09 09:28:24 PDT 2013
META-INF/maven/worldsingles/ws-logging/pom.properties
   588 Fri Aug 09 09:28:24 PDT 2013
META-INF/leiningen/worldsingles/ws-logging/project.clj
   588 Fri Aug 09 09:28:24 PDT 2013 project.clj
  1398 Wed Nov 23 14:50:22 PST 2011 log4j.properties
  6148 Sun Nov 20 21:09:16 PST 2011 worldsingles/.DS_Store
  1483 Wed Feb 27 20:22:26 PST 2013 worldsingles/logging/dbappender.clj

Fri Aug 09 09:28:29
(sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
(! 549)-> lein do clean, compile, install
Compiling worldsingles.logging.dbappender
Compiling worldsingles.logging.dbappender
Created 
/Developer/workspace/worldsingles/ws/model/clojure/logging/target/ws-logging-0.2.0.jar
Wrote /Developer/workspace/worldsingles/ws/model/clojure/logging/pom.xml

Fri Aug 09 09:28:39
(sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
(! 550)-> jar tvf target/ws-logging-0.2.0.jar
    91 Fri Aug 09 09:28:38 PDT 2013 META-INF/MANIFEST.MF
  2569 Fri Aug 09 09:28:38 PDT 2013
META-INF/maven/worldsingles/ws-logging/pom.xml
    98 Fri Aug 09 09:28:38 PDT 2013
META-INF/maven/worldsingles/ws-logging/pom.properties
   588 Fri Aug 09 09:28:38 PDT 2013
META-INF/leiningen/worldsingles/ws-logging/project.clj
   588 Fri Aug 09 09:28:38 PDT 2013 project.clj
  2661 Fri Aug 09 09:28:36 PDT 2013
worldsingles/logging/dbappender$_append.class
   590 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$_close.class
   664 Fri Aug 09 09:28:36 PDT 2013
worldsingles/logging/dbappender$_requiresLayout.class
  1391 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__16.class
  1304 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__18.class
  1301 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__20.class
  1851 Fri Aug 09 09:28:36 PDT 2013
worldsingles/logging/dbappender$loading__4910__auto__.class
  5125 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender__init.class
  4930 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/DBLogger.class
  1398 Wed Nov 23 14:50:22 PST 2011 log4j.properties
  6148 Sun Nov 20 21:09:16 PST 2011 worldsingles/.DS_Store
  1483 Wed Feb 27 20:22:26 PST 2013 worldsingles/logging/dbappender.clj

Fri Aug 09 09:28:41
(sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
(! 551)->

Shall I just open an issue on Github or is there more debugging I can
do to help before that?
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

Re: Compile/JAR problem with 2.3.0?

From:
Sean Corfield
Date:
2013-08-09 @ 17:52
https://github.com/technomancy/leiningen/issues/1283

Includes a workaround provided by Phil.

On Fri, Aug 9, 2013 at 9:32 AM, Sean Corfield <seancorfield@gmail.com> wrote:
> Having successfully upgraded to 2.3.0 (lein upgrade now works on Mac
> OS X 10.8.4), I ran into a curious problem where `lein install` claims
> to compile my AOT code but omits it from the JAR it creates. Here's a
> console log illustrating the problem. If I run `lein do clean,
> install` - which works with 2.1.3 - my JAR includes my compiled .class
> files. If I do the same on 2.3.0, my .class files are omitted. If I
> run `lein do clean, compile, install` - which claims to compile the
> code twice - then the .class files ARE included:
>
> (! 547)-> lein do clean, install
> Compiling worldsingles.logging.dbappender
> Created 
/Developer/workspace/worldsingles/ws/model/clojure/logging/target/ws-logging-0.2.0.jar
> Wrote /Developer/workspace/worldsingles/ws/model/clojure/logging/pom.xml
>
> Fri Aug 09 09:28:25
> (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
> (! 548)-> jar tvf target/ws-logging-0.2.0.jar
>     91 Fri Aug 09 09:28:24 PDT 2013 META-INF/MANIFEST.MF
>   2569 Fri Aug 09 09:28:24 PDT 2013
> META-INF/maven/worldsingles/ws-logging/pom.xml
>     98 Fri Aug 09 09:28:24 PDT 2013
> META-INF/maven/worldsingles/ws-logging/pom.properties
>    588 Fri Aug 09 09:28:24 PDT 2013
> META-INF/leiningen/worldsingles/ws-logging/project.clj
>    588 Fri Aug 09 09:28:24 PDT 2013 project.clj
>   1398 Wed Nov 23 14:50:22 PST 2011 log4j.properties
>   6148 Sun Nov 20 21:09:16 PST 2011 worldsingles/.DS_Store
>   1483 Wed Feb 27 20:22:26 PST 2013 worldsingles/logging/dbappender.clj
>
> Fri Aug 09 09:28:29
> (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
> (! 549)-> lein do clean, compile, install
> Compiling worldsingles.logging.dbappender
> Compiling worldsingles.logging.dbappender
> Created 
/Developer/workspace/worldsingles/ws/model/clojure/logging/target/ws-logging-0.2.0.jar
> Wrote /Developer/workspace/worldsingles/ws/model/clojure/logging/pom.xml
>
> Fri Aug 09 09:28:39
> (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
> (! 550)-> jar tvf target/ws-logging-0.2.0.jar
>     91 Fri Aug 09 09:28:38 PDT 2013 META-INF/MANIFEST.MF
>   2569 Fri Aug 09 09:28:38 PDT 2013
> META-INF/maven/worldsingles/ws-logging/pom.xml
>     98 Fri Aug 09 09:28:38 PDT 2013
> META-INF/maven/worldsingles/ws-logging/pom.properties
>    588 Fri Aug 09 09:28:38 PDT 2013
> META-INF/leiningen/worldsingles/ws-logging/project.clj
>    588 Fri Aug 09 09:28:38 PDT 2013 project.clj
>   2661 Fri Aug 09 09:28:36 PDT 2013
> worldsingles/logging/dbappender$_append.class
>    590 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$_close.class
>    664 Fri Aug 09 09:28:36 PDT 2013
> worldsingles/logging/dbappender$_requiresLayout.class
>   1391 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__16.class
>   1304 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__18.class
>   1301 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender$fn__20.class
>   1851 Fri Aug 09 09:28:36 PDT 2013
> worldsingles/logging/dbappender$loading__4910__auto__.class
>   5125 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/dbappender__init.class
>   4930 Fri Aug 09 09:28:36 PDT 2013 worldsingles/logging/DBLogger.class
>   1398 Wed Nov 23 14:50:22 PST 2011 log4j.properties
>   6148 Sun Nov 20 21:09:16 PST 2011 worldsingles/.DS_Store
>   1483 Wed Feb 27 20:22:26 PST 2013 worldsingles/logging/dbappender.clj
>
> Fri Aug 09 09:28:41
> (sean)-(jobs:0)-(/Developer/workspace/worldsingles/ws/model/clojure/logging)
> (! 551)->
>
> Shall I just open an issue on Github or is there more debugging I can
> do to help before that?
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
> World Singles, LLC. -- http://worldsingles.com/
>
> "Perfection is the enemy of the good."
> -- Gustave Flaubert, French realist novelist (1821-1880)



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)