Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8692611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:20:54+00:00 2026-06-13T00:20:54+00:00

in the sample project, https://github.com/technomancy/leiningen/blob/master/sample.project.clj on line 217 , there is a directive for

  • 0

in the sample project,

https://github.com/technomancy/leiningen/blob/master/sample.project.clj

on line 217, there is a directive for including non-code files :

:resource-paths ["src/main/resource"] ; non-code files included in classpath/jar

I have a resources folder in my project and this line in my project.clj

:resource-paths ["resources"] ; non-code files included in classpath/jar

however, when I run lein jar to generate the .jar file, it does not package up the resources folder.

Is there something that I am missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:20:55+00:00Added an answer on June 13, 2026 at 12:20 am

    Actually, it did get packaged. I just was not looking in the right spot:

    from:
    Resources in Clojure applications

    ‘Leiningen borrows the convention for resources from maven, with slightly different folder layouts. The rule states that the resources folder must be used as a compile time classpath root, meaning that leiningen is right in putting all the files inside resources folder in the root location inside the jar.’

    I thought that a resources directory would get created with the jar itself but lein jar copied all the files in the resources directory to the root of the jar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to https://github.com/technomancy/leiningen/blob/master/sample.project.clj I can attach a :init inside of a :repl-options. However, when
I am trying to implement the multiple uploading to Amazon S3 https://github.com/jnicklas/carrierwave/blob/master/README.md (under Using
I'm using the backbone.layoutmanager project: https://github.com/tbranyen/backbone.layoutmanager#readme can some one please post a sample with
I am trying to figure out how FRIEND_TEST works in Google Tests. https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#testing-private-code I
I am attempting to run a sample in facebook-csharp-sdk found here https://github.com/facebook-csharp-sdk/facebook-csharp-sdk . I
UPDATE 2016-03-15 Please take a look at this project: https://github.com/ooper-shlab/aurioTouch2.0-Swift . It has been
I'm trying to do a simple git clone https://github.com/org/project.git on a CentOS box but
https://github.com/JakeWharton/Android-ViewPagerIndicator I'm trying to include that library/project into my workspace, however nothing shows up
I am using sample from https://github.com/liveservices/LiveSDK but it isn't working. I managed to run
I'm going to use django-threadedcomments library at my Django project. https://github.com/HonzaKral/django-threadedcomments The tutorial gives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.