Uploaded image for project: 'Immutant'
  1. Immutant
  2. IMMUTANT-425

Deploying archives still resolves plugin dependencies

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1
    • Labels:
      None
    • Steps to Reproduce:
      Hide
      • Create a project.clj which has plugin dependencies, and which also overrides lein's default repositories (example: https://gist.github.com/iantruslove/f8f1b6c03ef99f9023cc - this sample project is called "mutant", and it uses env vars to configure the repo URLs. In reality, the important things to configure via env vars are the repo credentials, but in practice this exposes the same problem).
      • Create an archive of the project:
        `RELEASES_REPO_URL="https://clojars.org/repo/" lein immutant archive`
      • Ensure plugin deps are removed from your machine:
        `rm -rf ~/.m2/repository/lein-ring`
      • Without the repository URL being made available, deploy and run the ima:
        `cp target/mutant.ima ~/.immutant/current/jboss/standalone/deployments && touch ~/.immutant/current/jboss/standalone/deployments/mutant.ima.dodeploy`

      App fails to deploy due to unresolvable dependencies, specifically for the "mutant" project, lein-ring.

      Show
      Create a project.clj which has plugin dependencies, and which also overrides lein's default repositories (example: https://gist.github.com/iantruslove/f8f1b6c03ef99f9023cc - this sample project is called "mutant", and it uses env vars to configure the repo URLs. In reality, the important things to configure via env vars are the repo credentials, but in practice this exposes the same problem). Create an archive of the project: `RELEASES_REPO_URL="https://clojars.org/repo/" lein immutant archive` Ensure plugin deps are removed from your machine: `rm -rf ~/.m2/repository/lein-ring` Without the repository URL being made available, deploy and run the ima: `cp target/mutant.ima ~/.immutant/current/jboss/standalone/deployments && touch ~/.immutant/current/jboss/standalone/deployments/mutant.ima.dodeploy` App fails to deploy due to unresolvable dependencies, specifically for the "mutant" project, lein-ring.

      Description

      When deploying a .ima archive, plugin dependencies are still resolved.

      In my case this is a problem because we have an internal archiva repo for dependencies, and the production servers don't have access to this repo. Dependency resolution for the plugins fails, and the app fails to deploy.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcrawley Toby Crawley
                Reporter:
                iantruslove Ian Truslove
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: