2011-07-21 9 views
2

SpringSource Tool Suiteのm2プラグインの設定方法を理解できません。コマンドラインからmavenを動作させるために、settings.xmlファイルのenterpriseリポジトリを指摘しなければなりませんでした。エンタープライズリポジトリを見つけるためにEclipse m2プラグインを設定するには?

私はSTSの内側に構築しようとすると、私は次を得る:

[INFO] Scanning for projects... 
Downloading: http://repo1.maven.org/maven2/com/mycompany/maven/adp/adp-base-pom/1.0.14/adp-base-pom-1.0.14.pom 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project com.mycompany.edelivery:edelivery-build:current 
(C:\code\workspace\edelivery-build\pom.xml) has 1 error 
[ERROR]  Non-resolvable parent POM: Could not transfer artifact 
com.mycompany.maven.adp:adp-base-pom:pom:1.0.14 from/to central 
(http://repo1.maven.org/maven2): ConnectException and 'parent.relativePath' 
points at wrong local POM @ line 4, 
column 11: UnresolvedAddressException -> [Help 2] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 

私は私はそれをどのように行うか、EnterpriseリポジトリがどこにあるSTSを伝える必要があることを推測? File -> Propertiesの下にある唯一のものはActive Maven Profilesのフィールドであり、それは役に立たなかった。

ここにsettings.xmlファイルのスニペットがありますが、この情報はどうすればよいですか?

<profile> 
    <id>internal-profile</id> 
    <activation> 
    <activeByDefault>true</activeByDefault> 
    </activation> 
    <pluginRepositories> 
    <pluginRepository> 
     <releases> 
     <updatePolicy>always</updatePolicy> 
     </releases> 
     <name>Enterprise Plugin Repository</name> 
     <url>http://svn01g.gdc.nwie.net/maven2/enterprise</url> 
    </pluginRepository> 
    </pluginRepositories> 
    <repositories> 
    <repository> 
     <id>internal-release</id> 
     <name>MyCompany Enterprise Repository</name> 
     <url>http://svn01g.gdc.nwie.net/maven2/enterprise</url> 
     <snapshots> 
     <enabled>true</enabled> 
     <updatePolicy>daily</updatePolicy> 
     </snapshots> 
    </repository> 
    </repositories> 
</profile> 

答えて

3

リリース0.12.1以前のm2eclipseプラグインを使用していると仮定すると、ポイントm2eclipseをローカルMavenインストールにするだけでよいはずです。ウィンドウ - >環境設定 - > Maven - >インストールを選択し、追加...をクリックし、Mavenインストールのルートを参照します。新しいワークスペースに切り替えるたびに、これを再度実行する必要があることを覚えておいてください。

1

リポジトリはPOMに指定する必要があります。それで誰もがそれを見つけることができます。

関連する問題