내 지역 받는다는의 repo Karaf에로드 및 오류 여기Karaf 로딩 OSGI 번들 오류 내용은 프롤로그
[email protected]> features:addurl mvn:io.spray/on-karaf/1.2-M8
[Fatal Error] :1:1: Content is not allowed in prolog.
Error executing command: Unable to add repositories:
Content is not allowed in prolog.
내 features.xml
파일의를 얻기에 배포 샘플 OSGI 번들을 얻기 위해 노력하고 있어요에서 허용되지 않습니다
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="io.spray.examples.karaf">
<feature name="io.spray.examples.karaf" version="1.2-M8">
<bundle>mvn:io.spray/on-karaf/1.2-M8</bundle>
<bundle>mvn:com.typesafe.akka/akka-osgi_2.10/2.2.0-RC2</bundle>
<bundle>mvn:com.typesafe/config/1.0.1</bundle>
<bundle>wrap:mvn:com.chuusai/shapeless_2.10.0-RC5/1.2.3</bundle>
<bundle>mvn:org.parboiled/parboiled-core/1.1.5</bundle>
<bundle>mvn:org.parboiled/parboiled-scala_2.10/1.1.5</bundle>
<bundle>mvn:org.scala-lang/scala-library/2.10.0</bundle>
<bundle>mvn:org.scala-lang/scala-reflect/2.10.0</bundle>
<bundle>mvn:io.spray/spray-util/1.2-M8</bundle>
<bundle>mvn:com.googlecode.concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.3.2</bundle>
<bundle>mvn:io.spray/spray-caching/1.2-M8</bundle>
<bundle>mvn:io.spray/spray-http/1.2-M8</bundle>
<bundle>mvn:io.spray/spray-io/1.2-M8</bundle>
<bundle>mvn:io.spray/spray-can/1.2-M8</bundle>
<bundle>mvn:org.jvnet.mimepull/mimepull/1.9.2</bundle>
<bundle>mvn:io.spray/spray-httpx/1.2-M8</bundle>
<bundle>mvn:io.spray/spray-routing/1.2-M8</bundle>
<bundle>wrap:mvn:io.spray/spray-json/1.2.5</bundle>
</feature>
</features>
여기 번째 MANIFEST.MF
Manifest-Version: 1.0
Implementation-Vendor: io.spray
Implementation-Title: on-karaf
Implementation-Version: 1.2-M8
Implementation-Vendor-Id: io.spray
Specification-Vendor: io.spray
Specification-Title: on-karaf
Implementation-URL: http://spray.io
Specification-Version: 1.2-M8
I의 잉크 MANIFEST.MF
이 잘못되었을 수 있습니다. 원인 일 수 있습니까? 나는 Karaf, OSGI 및 Maven에 익숙하지 않으므로 중요한 단계를 놓친 것이 가능합니다.
이것은 XML 처리 오류입니다.하지만 XML에 어떤 문제가 있는지 잘 모르겠습니다. 어쩌면'standalone = "yes"부분일까요? –
XML 파일이나 처음에는 이상한 문자/인코딩이있는 다른 XML 파일이되어야합니다. 몇 가지 편집기를 사용하여 16 진수를 표시하고 문제를 해결할 수 있습니다. –
@NeilBartlett @Petter 그래, 그게 내 생각이기도하지만'xmllint'를 잘 실행할 수 있었으니 무슨 문제인지 모르겠다. 'MANIFEST.MF'가 맞습니까? – Bob