Đây là những gì một phần của ivy.xml của tôi trông giống như ngay bây giờ:Tôi có thể sử dụng các thuộc tính trong tệp ivy.xml để tránh lặp lại số phiên bản phụ thuộc không?
<dependency org="org.springframework" name="org.springframework.core" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.context" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.jdbc" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.beans" rev="3.0.2.RELEASE" />
<dependency org="org.springframework" name="org.springframework.jms" rev="3.0.2.RELEASE" />
Dưới đây là những gì tôi muốn nó trông giống như:
<dependency org="org.springframework" name="org.springframework.core" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.context" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.jdbc" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.beans" rev="${spring.version}" />
<dependency org="org.springframework" name="org.springframework.jms" rev="${spring.version}" />
Đây có phải là có thể? Cú pháp là gì?
+1 Nice lateral thinking – skaffman
Sử dụng tuyệt vời các thực thể XML. Rất hữu ích thực sự. – Vikas