我在Artifactory中创建了一个带有gradle布局的存储库。 伪像路径模式为
###################################
yum install -y libevent-devel git gcc
mkdir ~/shadowsocks
cd ~/shadowsocks
git clone https://github.com/darkk/redsocks
cd ~/shadowsocks/redsocks
make
cp ~/shadowsocks/redsocks/redsocks /usr/local/bin/
###################################
nano /root/redsocks.conf
base {
log_debug = off;
log_info = on;
log = stderr;
daemon = off;
redirector = iptables;
}
redsocks {
/* `local_ip' defaults to 127.0.0.1 for security reasons,
* use 0.0.0.0 if you want to listen on every interface.
* `local_*' are used as port to redirect to.
*/
local_ip = 127.0.0.1;
local_port = 12345;
// `ip' and `port' are IP and tcp-port of proxy-server
ip = 1.1.1.1;
port = 2;
// known types: socks4, socks5, http-connect, http-relay
type = socks5;
// login = "foobar";
// password = "baz";
}
###################################
/usr/local/bin/redsocks -c /root/redsocks.conf
###################################
sysctl -w net.ipv4.conf.all.forwarding=1
iptables -t nat -N REDSOCKS
iptables -t nat -A PREROUTING -i ens37 -p tcp -j REDSOCKS
iptables -t nat -A PREROUTING -i ens37 -p udp -j REDSOCKS
iptables -A INPUT -i ens37 -p tcp --dport 12345 -j ACCEPT
iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
iptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURN
iptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURN
iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-port 12345
iptables -t nat -A REDSOCKS -p udp -j REDIRECT --to-port 12345
###################################
和独特的描述符路径模式
[org]/[module]/[baseRev](-[folderItegRev])/[module]-[baseRev](-[fileItegRev])(-[classifier]).[ext]`
问题是如何解决属于[org]/[module]/ivy-[baseRev](-[fileItegRev]).xml
fileItegRev
例如,我们假设我在路径baseRev
中发布了一个jar文件,其中org/module/1.0-20170411/module-1.0-20170411.jar
是当前日期/时间戳。现在我希望fileItegRev/folderItegRev
之类的路径解析为属于1.0 baseRev org/module/1.0-latest
的最新jar文件。
我是新手,如果我的条款松散,请耐心等待。
答案 0 :(得分:0)
我最终在gradle中使用了动态版本支持。