プロファイルの変更を開始し、途中でいくつかの間違いを犯しました。
このため、完全に削除したい PID がプロファイルに含まれています。
fabric:profile-display default
これらは、この投稿の下部にある出力で確認できます。
彼らです:
http:
patch.repositories=http:
org.ops4j.pax.url.mvn.repositories=http:
これを削除する正しいコマンドが見つかりません。私はもう試した:
config:delete org.ops4j.pax.url.mvn.repositories=http:
これは正常に完了します。しかし、default
プロファイルにはまだこの pid がリストされています。
私も試しました:
fabric:profile-edit --delete -p org.ops4j.pax.url.mvn.repositories=http: default
これは失敗します:
Error executing command: String index out of range: -1
これは、プロパティ パス/property
を指定する必要があることを示します。
追加も単に/
機能しません。
もう1つの問題は、次の行に示されているように、一見空の名前のpidがあることです。
PID:
(この出力プレフィックスには何も続きません)。
の出力fabric:profile-display default
:
Profile id: default
Version : 1.0
Parents :
Associated Containers :
Container settings
----------------------------
Repositories :
mvn:org.fusesource.fabric/fuse-fabric/7.0.1.fuse-084/xml/features
Features :
fabric-agent
karaf
fabric-jaas
fabric-core
Agent Properties :
patch.repositories = http://repo.fusesource.com/nexus/content/repositories/releases,
http://repo.fusesource.com/nexus/content/groups/ea
org.ops4j.pax.url.mvn.repositories = http://repo1.maven.org/maven2,
http://repo.fusesource.com/nexus/content/repositories/releases,
http://repo.fusesource.com/nexus/content/groups/ea,
http://repository.springsource.com/maven/bundles/release,
http://repository.springsource.com/maven/bundles/external,
http://scala-tools.org/repo-releases
org.ops4j.pax.url.mvn.defaultRepositories = file:${karaf.home}/${karaf.default.repository}@snapshots,
file:${karaf.home}/local-repo@snapshots
Configuration details
----------------------------
PID:
PID: org.ops4j.pax.url.mvn
org.ops4j.pax.url.mvn.useFallbackRepositories false
org.ops4j.pax.url.mvn.disableAether true
org.ops4j.pax.url.mvn.repositories ${profile:org.fusesource.fabric.agent/org.ops4j.pax.url.mvn.repositories}
org.ops4j.pax.url.mvn.defaultRepositories ${profile:org.fusesource.fabric.agent/org.ops4j.pax.url.mvn.defaultRepositories}
PID: patch.repositories=http:
PID: org.ops4j.pax.url.mvn.repositories=http:
PID: http:
PID: org.fusesource.fabric.zookeeper
zookeeper.url ${zk:root/ip}:2181
誰かが正しいコマンドを指すことができれば、私は非常に感謝しています。