量産メモ帳

忘れっぽいのでメモを残しています。浅く適当に書きます。

settings.xml の記述。

スポンサーリンク

何の資料を参考にしたか忘れてしまったが、settings.xml の記述は以下のようにした。

<settings>
  <localRepository>${HOMEDRIVE}/Docume~1/${USERNAME}.${USERDOMAIN}/.m2/repository</localRepository>
  <profiles>
    <profile>
      <id>Snapshots</id>
      <repositories>
        <repository>
          <id>Codehaus Snapshots</id>
          <url>http://snapshots.repository.codehaus.org/
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <releases>
            <enabled>false</enabled>
          </releases>
      </repository>
    </repositories>
    <pluginRepositories>
      <pluginRepository>
        <id>Codehaus Snapshots</id>
        <url>http://snapshots.repository.codehaus.org/
        <snapshots>
          <enabled>true</enabled>
        </snapshots>
        <releases>
          <enabled>false</enabled>
        </releases>
      </pluginRepository>
    </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>Snapshots</activeProfile>
  </activeProfiles>
</settings>

最初の localRepository タグは Maven Weblogic プラグインを使用した時の名残。