1
Wenn maven build
gibt es eine Warnung:Wie löst man die Warnung Nicht erkanntes Tag: 'snapshotPolicy'?
[WARNING] Unrecognised tag: 'snapshotPolicy' (position: START_TAG seen ...</url>\n <snapshotPolicy>... @269:27) @ C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.2\plugins\maven\lib\maven3\conf\settings.xml, line 269, column 27
Die Konfigurationsdatei Abschnitt ist:
<profile>
<id>nexus</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>nexus</id>
<name>Nexus</name>
<url>http://172.16.1.79:8082/repository/maven-public/</url>
<snapshotPolicy>always</snapshotPolicy>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
Gibt es ein Problem?
die Demo-Konfiguration ist wie folgt:
<profile>
<id>jdk-1.4</id>
<activation>
<jdk>1.4</jdk>
</activation>
<repositories>
<repository>
<id>jdk14</id>
<name>Repository for JDK 1.4 builds</name>
<url>http://www.myhost.com/maven/jdk14</url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
</repositories>
</profile>
wie die Warnung nicht erkannt Tag lösen: 'snapshotPolicy', kann ich nicht die Maven Büro Website here
Ihre Antwort sieht OK aus, aber es wäre nett zu erklären, wie und _why_ Sie dieses Einstellungs-Snippet geändert haben. In den OP-Einstellungen kann nicht gefunden werden, woher die snapshotPolicy stammt. Sie können jedoch erläutern, wie Sie sie durch zwei updatePolicy-Tags ersetzt haben, und eine Verknüpfung zur Referenzdokumentation herstellen, in der dieses Tag erwähnt wird, z. https://maven.apache.org/settings.html#Repositories – mmuller