This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """" | |
| nexus-uploader.py | |
| Allows mirroring local M2 repositories to a remote Nexus server with a single command. | |
| Supports: | |
| - uploading of common classifiers (sources, javadocs) if available | |
| - using regex include pattern for artifactIds/groupIds | |
| - recursively processing local repo, just point to the root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import BaseHTTPServer, SimpleHTTPServer, ssl, argparse, re | |
| from tempfile import mkdtemp | |
| from shutil import rmtree | |
| from contextlib import contextmanager | |
| from OpenSSL import crypto | |
| from os.path import exists, join, abspath | |
| @contextmanager | |
| def TemporaryDirectory(): |