Maven 2 & 3
  1. Maven 2 & 3
  2. MNG-2883

Make sure that the network isn't used for snapshots in offline mode when legacy repositories are used

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      1

      Description

      We determined that the network is not touched for m2 repositories in offline mode, but make sure the same holds true for legacy repositories.

        Issue Links

          Activity

          Hide
          brianfox brianfox added a comment -

          bumping to the next version

          Show
          brianfox brianfox added a comment - bumping to the next version
          Hide
          John Casey added a comment -

          I get the following output on the test I constructed. I'll post the test project, but the paths for repositories may need to be adjusted. I'll try to generalize it first.

          [DEBUG] Artifact not found - using stub model: System is offline.
          
            tests:snapshots-offline-legacyRepo-dep:pom:1.0-SNAPSHOT
          
          
          [DEBUG] Using defaults for missing POM tests:snapshots-offline-legacyRepo-dep:pom:1.0-SNAPSHOT:compile
          [DEBUG]   tests:snapshots-offline-legacyRepo-dep:jar:1.0-SNAPSHOT:compile (selected for compile)
          [DEBUG]   junit:junit:jar:3.8.1:test (selected for test)
          [DEBUG] snapshots-offline-legacyRepo-dep: using locally installed snapshot
          [DEBUG] System is offline.
          
          Show
          John Casey added a comment - I get the following output on the test I constructed. I'll post the test project, but the paths for repositories may need to be adjusted. I'll try to generalize it first. [DEBUG] Artifact not found - using stub model: System is offline. tests:snapshots-offline-legacyRepo-dep:pom:1.0-SNAPSHOT [DEBUG] Using defaults for missing POM tests:snapshots-offline-legacyRepo-dep:pom:1.0-SNAPSHOT:compile [DEBUG] tests:snapshots-offline-legacyRepo-dep:jar:1.0-SNAPSHOT:compile (selected for compile) [DEBUG] junit:junit:jar:3.8.1:test (selected for test) [DEBUG] snapshots-offline-legacyRepo-dep: using locally installed snapshot [DEBUG] System is offline.
          Hide
          John Casey added a comment -

          This is the generalized test. You'll want to unzip it to the /tmp directory.

          Next step is to try to create an integration test around this project.

          Show
          John Casey added a comment - This is the generalized test. You'll want to unzip it to the /tmp directory. Next step is to try to create an integration test around this project.
          Hide
          John Casey added a comment -

          Added integration tests verifying this behavior.

          Show
          John Casey added a comment - Added integration tests verifying this behavior.
          Hide
          Benjamin Bentmann added a comment -

          This was meant as an addition to MNG-2433 which was only fixed recently.

          Show
          Benjamin Bentmann added a comment - This was meant as an addition to MNG-2433 which was only fixed recently.

            People

            • Assignee:
              John Casey
              Reporter:
              Jason van Zyl
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: