Ich habe eine Frage zu Gradle Builds, die ich habe Schwierigkeiten bei der Auflösung.Problem mit Gradle Build und Pom Parsing
Ich halte einen Fehler bekommen AKTUALISIERT Spruch:
> Could not resolve credit/open/fabric:credit-open-fabric-api:17.4.1.RELEASE.
> Could not parse POM http://Mywebsite/content/groups/public/openapi/17.4.1.RELEASE/open-api-17.4.1.RELEASE.pom
> Could not resolve open:api:17.4.1.RELEASE.
> Could not resolve open:api2:17.4.1.RELEASE.
> Could not parse POM http://Mywebsite/content/groups/public/open/api2/17.4.1.RELEASE/api2-17.4.1.RELEASE.pom
> Could not resolve open:open-parent:17.4.1.RELEASE.
> Could not resolve open:open-parent:17.4.1.RELEASE.
> Could not parse POM http://Mywebsite/content/groups/public/open/open-parent/17.4.1.RELEASE/open-parent-17.4.1.RELEASE.pom
> Unable to resolve version for dependency 'tibco:${tibrv.native}:jar'
und die Stack-Trace zeigt, dass es ein Problem, ein pom in Parsen, die die Abhängigkeit enthält als AKTUALISIERT folgt:
<dependency>
<groupID>tibco</groupID>
<artifactId>${tibrv.native}</artifactID>
</dependency>
<dependency>
<groupID>tibco</groupID>
<artifactId>tibask</artifactID>
</dependency>
.
.
.
<profile>
<id>tib-windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<tibrv.native>tibask</tibrv.native>
</properties>
</profile>
In meinem build .gradle Datei Ich habe:
compile 'tibco:ask:8.3.1'
Wo Krippe die ArtefaktID in meinem POM ist.
Gibt es etwas, das ich in meiner build.gradle-Datei für den Pom-Parser innerhalb von Gradle hinzufügen muss, um einen echten Wert für den Wert ${tibrv.native}
zu erhalten?
Bitte fügen Sie den entsprechenden Abschnitt von 'pom.xml', die die' tibrv.native' Eigenschaft definiert. Hoffentlich ist es nicht innerhalb eines –
Das ist genau das, was es ist ... – koala421
Siehe [hier] (https://blog.gradle.org/maven-pom-profiles) für die Diskussion über Maven-Profil-Unterstützung in Großbuchstaben. Und [hier] (https://dzone.com/articles/maven-profile-best-practices), warum die Verwendung von Profilen im Abhängigkeitsmanagement als ein Anti-Muster betrachtet wird. –