Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid sourceDirectory in generated pom #33

Open
blabno opened this issue Jan 6, 2020 · 0 comments
Open

Invalid sourceDirectory in generated pom #33

blabno opened this issue Jan 6, 2020 · 0 comments

Comments

@blabno
Copy link

blabno commented Jan 6, 2020

My deps.edn looks like this:

{
 :paths   ["src/cljc"]
 :aliases {
           :jar {:extra-deps {luchiniatwork/cambada {:mvn/version "1.0.2"}}
                 :main-opts  ["-m" "cambada.jar"
                              "-m" "xyz.core"
                              "--app-group-id" "abc"
                              "--app-artifact-id" "xyz"]}}}

Now clj -A:jar --app-version 0.0.1 generates pom.xml that includes this:

  <build>
    <sourceDirectory>src</sourceDirectory>
  </build>

while clj -Spom results with this:

  <build>
    <sourceDirectory>src/cljc</sourceDirectory>
  </build>

The jar built by cambada includes both cljs/xyz/core.cljc and xyz/core.cljc. I think that only the latter is correct and it might be result of bad sourceDirectory evaluation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant