<artifactId>jersey-all</artifactId>
</dependency>
<dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-annotations</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-core</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.dataformat</groupId>
- <artifactId>jackson-dataformat-xml</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.datatype</groupId>
- <artifactId>jackson-datatype-json-org</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.jaxrs</groupId>
- <artifactId>jackson-jaxrs-base</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.jaxrs</groupId>
- <artifactId>jackson-jaxrs-json-provider</artifactId>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.module</groupId>
- <artifactId>jackson-module-jaxb-annotations</artifactId>
+ <groupId>com.fasterxml.jackson</groupId>
+ <artifactId>jackson-bom</artifactId>
+ <type>pom</type>
+ <version>2.8.9</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
xmlstarlet sel -N "maven=http://maven.apache.org/POM/4.0.0" -t \
-m "maven:project/maven:dependencyManagement/maven:dependencies/maven:dependency" \
--v maven:groupId -o " " -v maven:artifactId -o " classifier=" -v maven:classifier -o " type=" -v maven:type -n \
+-v maven:groupId -o " " -v maven:artifactId -o " classifier=" -v maven:classifier -o " type=" -v maven:type \
+-o " scope=" -v maven:scope -o " version=" -v maven:version -n \
../odlparent/pom.xml |
sort |
awk '
printf " <dependency>\n"
printf " <groupId>%s</groupId>\n", $1
printf " <artifactId>%s</artifactId>\n", $2
+ needversion = 0
for (i = 3; i <= NF; i++) {
equalidx = index($i, "=")
if (equalidx != length($i)) {
element = substr($i, 1, equalidx - 1)
value = substr($i, equalidx + 1)
- printf " <%s>%s</%s>\n", element, value, element
+ if (element == "scope") {
+ if (value == "import") {
+ # Scope import dependencies need to have their version mentioned explicitly
+ needversion = 1
+ }
+ } else if (element != "version" || needversion) {
+ printf " <%s>%s</%s>\n", element, value, element
+ }
}
}
printf " </dependency>\n"