Skip to content

Instantly share code, notes, and snippets.

@yuanmai
Created February 5, 2013 08:21
Show Gist options
  • Select an option

  • Save yuanmai/4713058 to your computer and use it in GitHub Desktop.

Select an option

Save yuanmai/4713058 to your computer and use it in GitHub Desktop.
Got "The input line is too long." while executing "lein.bat trampoline run". It happened right after copying resource files using lein-resource plugin
(defproject foo "0.1.0-SNAPSHOT"
:description "Foo website"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.springframework.security/spring-security-web "3.1.0.RELEASE"]
[org.springframework.security/spring-security-config "3.1.0.RELEASE"]
[org.clojure/clojure "1.4.0"]
[ring "1.1.6"]
[org.slf4j/slf4j-api "1.6.1"]
[org.slf4j/jcl-over-slf4j "1.6.1"]
[ch.qos.logback/logback-classic "0.9.29"]
[joda-time/joda-time "2.0"]
[enlive "1.0.1"]
[lib-noir "0.3.5"]
[clj-time "0.4.4"]
[compojure "1.1.3"]
[ring-middleware-force-reload "0.1.0-SNAPSHOT"]
[org.clojure/tools.trace "0.7.3"]
[org.clojure/core.incubator "0.1.2"]
[ring/ring-jetty-adapter "1.0.2"] ;; The last Jetty 6 version
[com.draines/postal "1.9.0"]
[org.hibernate/hibernate-core "4.0.0.CR6"]
[mysql/mysql-connector-java "5.1.9"]
[net.sourceforge.jtds/jtds "1.2.4"]
[org.apache.poi/poi "3.9"]
[org.apache.poi/poi-scratchpad "3.9"]
[org.apache.poi/poi-excelant "3.9"]
[org.hsqldb/hsqldb "2.2.6"]
[org.ocpsoft.prettytime/prettytime "2.1.2.Final"]
]
:java-source-paths ["src/main/java"]
:resource-paths ["target" "resources" "jars/*"]
:resource
{:resource-paths ["src/main/resources"]
:extra-values
{:connection-driver-class "net.sourceforge.jtds.jdbc.Driver"
:connection-url "jdbc:hsqldb:mem:foo"
:connection-username "sa"
:connection-password ""
:dialect "org.hibernate.dialect.HSQLDialect"
:hbm2ddl-auto "create-drop"}}
:profiles {:sqlserver
{:resource
{:resource-paths ["src/main/resources"]
:extra-values
{:connection-driver-class "net.sourceforge.jtds.jdbc.Driver"
:connection-url "jdbc:jtds:sqlserver://localhost:1433;DatabaseName=foo"
:connection-username "sa"
:connection-password ""
:dialect "org.hibernate.dialect.SQLServer2008Dialect"
:hbm2ddl-auto "create-drop"}}}}
:injections [(require 'clojure.pprint)]
:repositories [["sonatype" "https://oss.sonatype.org/content/repositories/snapshots/"]]
:prep-tasks ["javac" "compile" "resource"]
:warn-on-reflection true
:hooks [leiningen.resource]
:plugins [[lein-resource "0.3.1"]]
:exclusions [commons-logging/commons-logging]
:main foo.main
:jvm-opts ["-Xmx1g" "-server"]
:repl-options {:port 4005 :host "0.0.0.0" }
:uberjar-exclusions [#"(?i)^META-INF/[^/]*\.SF$"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment