Closed myphysicslab closed 8 years ago
Your settings are malformed. Should have <profiles><profile>....
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
</pluginGroups>
<proxies>
</proxies>
<servers>
</servers>
<mirrors>
</mirrors>
<profiles>
<profile>
<id>allow-snapshots</id>
<activation><activeByDefault>true</activeByDefault></activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
</settings>
Confirmed, works now. Thanks.
The instructions for building Closure Compiler with Maven state that it is necessary to "Add sonatype snapshots repository to
~/.m2/settings.xml
". After creating this file I get errors when building Dossier.I tried changing the settings.xml to be more like what is shown at https://maven.apache.org/settings.html but I only got more similar errors.
If I disable that settings.xml file by renaming it to "XXXsettings.xml" then Dossier builds no problem. But that doesn't seem like a great long term solution.
Here is the latest version of my
settings.xml
file.