0

職場では、開発環境はインターネットに接続されていない内部ネットワークです。現在、Spring Roo のデータベース リバース エンジニア機能を使用しようとしていますが、アドオン org.springframework.roo.wrapping.mysql-connector-java をオフラインで正しくインストールすることができないようです。私は次のことを試しました:

  1. このリンクをたどる jtds ドライバーアドオンの問題

    • roobot.xml を使用して Wrapping.mysql-connector-java の URL を見つけ、jar をダウンロードしました。
    • Roo docs Roo Docs Packaging & Distributionによると、次のコマンドを使用して osgi jar をロードしました。
      roo> osgi start --url file:///<path-to-addon-project/target/<addon-bundle-name>.<version>.jar
    • しかし、その結果、次のエラーが発生しました。
      org.osgi.framework.BundleException: Unresolved constraint in bundle org.springframework.roo.wrapping.mysql-connector-java[75]: Unable to resolve 75.0: missing requirement [75.0] package; (package=org.slf4j)

  2. slf4j jar を含む内部リポジトリがありますが、それを指すように Roo を構成する方法がわかりません。

  3. 要求された mysql アドオンを使用して自宅のコンピューターで行ったインストールの ROO_HOME をコピーしましたが、作業環境で実行しようとすると、複数のメッセージが表示されます。 Auto-deploy install: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique:...

助けていただければ幸いです、ありがとう

4

1 に答える 1

0

I would recommend creating a maven repository manager on your dev network and seeding it with all of your dependencies. I was unable to use Spring/Roo offline without it as I kept running into the type of trouble that you are. I used Sonatype Nexus OSS. It was a pain to seed the repository, but it made Roo usable offline. Hope that helps.

于 2014-02-24T17:27:57.763 に答える