問題タブ [nexus]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
3648 参照

maven-2 - nexus http プロキシ エラー

プロキシの背後にある nexus サーバーを構成しようとしています。1 つのリポジトリ [maven central] のプロキシ設定を入力しましたが、リモート リポジトリに接続できず、次のエラーがスローされました。「NT LAN Manager Domain」を指定してみましたが、リモート サービスのチェックが続けられ、ログに次のように表示されます。入力した設定が nexus.xml に保存されます。1.7.1 バージョンを使用しています。1.8.0 バージョンを試したところ、nexus.xml にパスワード エントリが保存されていないことが判明したため、1.7.1 をインストールしようとしました。http プロキシの設定方法を教えてください

================================================== =============================

NTLM ドメインのログ:-

================================================== =============================

NTLM ドメインのないログ:-

0 投票する
1 に答える
2640 参照

maven-2 - SBT を使用して Nexus からスナップショットの依存関係を取得するにはどうすればよいですか?

タイムスタンプが追加されたスナップショットアーティファクトを取得しようとしているmaven2リポジトリがあります。(当然のことながら) maven2 でビルドする場合は問題なく取得できますが、simple-build-tool (sbt)でビルドする場合は、私が非常に好むので、プルダウンできません。

Ivy のスナップショットに関するこの質問から、スナップショット アーティファクトを取得するようにIvyを構成できることがわかりますが、sbt にそれを行うように指示する方法がわかりません。

現在の構成の関連ビット:

更新:さらにいじくり回した後、次のパターンで正しいアーティファクトURLを指すようにできるようです。

それでも、依存関係でタイムスタンプを追加で指定する必要があります

しかし、それはアーティファクトを引き出します。ただし、アーティファクトの依存関係は取得しません。だから、まだ何か間違っているようです。

0 投票する
2 に答える
7594 参照

eclipse - 独自の p2 リポジトリを管理/ホストするためのツール?

当社はMavenを使用しています。スナップショットとリリースを保存するために、 Nexusリポジトリ マネージャーを使用します。

現在、Eclipseベースの製品を開発中です。そのためにTychoを使用します。

問題は次のとおりです。Eclipse ベースの製品には多くの機能があります。私たちの考えは、各機能 (または機能のグループ) を個別に構築し、内部の p2 リポジトリに配置することです。ある機能が別の機能を必要とする場合、ターゲット プラットフォームを必要な内部 p2 リポジトリにポイントします。

現在、Tycho でアプリケーションを構築しています。私たちは機能を「展開可能」にするため、Tycho は で P2 サイトを作成しtargetます。その P2 サイトをサーバーにプッシュし、Eclipse を実行しFeaturesAndBundlesPublisherます。これにより、最近ビルドされた機能が P2 リポジトリとマージされます。その結果、必要な機能のすべてのバージョンを含む内部 P2 リポジトリができました。

このプロセスは面倒すぎることがわかりました。Nexus のような便利なツールはありますか?

UPD .: Tycho ユーザー リストに関する議論があります。

0 投票する
6 に答える
44722 参照

sbt - sbtで保護されたNexusにアクセスする方法は?

基本認証が必要なNexusリポジトリマネージャーにアクセスしようとしています。Maven2からはすべて正常に動作しますが、SBTで設定しようとすると、アーティファクトが見つかりません。カスタムリポジトリパターンを使用していますが(この関連する質問を参照)、それは問題ではないと思います。いずれにせよ、関連する構成はここにあります。

Project.scala:

〜/ .ivy2 / .credentials:

SBTユーザーグループでの同様の議論によると、これは正常に機能するはずですが、ビルドしようとすると次のようになります。

これはクレデンシャルの問題であり、他の問題ではないと確信しています。これは、URLに直接アクセスして、jarをダウンロードしようとしていることを示しているためです(認証後)。

また、次のようにクレデンシャルをインラインで宣言しようとしました(理想的とは言えませんが)。

0 投票する
2 に答える
937 参照

maven-2 - nexus リポジトリの監視

nexus リポジトリへの mvn アーティファクトのデプロイを監視できる nexus プラグインまたは API を知っている人はいますか? 私の問題は、開発者がすべての種類の jar を nexus リポジトリにアップロードしていて、誰が何をなぜしたのかを知る方法がないことです。jar を nexus にアップロードする前にコメントを入力する必要があるようにルールを適用するにはどうすればよいですか? mvn/nexusでこれを行う方法はありますか???

ジェニー

0 投票する
1 に答える
2525 参照

performance - Why does a hudson "mvn clean install" build take 3-6x longer than the same on the command line?

We are seeing relatively long build times on our CI server (hudson) and they're starting to get in our way. I am aware hudson does more than invoke maven and I would happily grant it 10-20% more time for the job, but an order of magnitude slowdown seems too much.

Anyone have an idea of why this might be and how to solve the problem? I will start by saying what is not the cause:

  • the virtual machine hudson is running in: on the command line, it takes roughly the same amount of time as my development PC
  • other concurrent tasks: I made sure there was nothing diverting resources from the build task

The maven goals are literally clean and install, nothing fancy and resource-intensive like javadoc, checkstyle etc. Looking at the hudson build task console output, there seem to be delays when "Retrieving previous build number from [our Nexus artefact repository]", but I don't know of a simple way to measure performance of this step and publishing an artefact seems too simple an operation to justify the total difference in speed.

(problem also described in this thread)

Update:

We have upgraded Hudson/Jenkins to the latest release and have been able to use the timing plugin. Short version:

  • the good news: we now know nexus is causing the problem
  • the bad news: we still don't know why

More details

On one of our actual maven projects (maven build time: 3 min, hudson build time: 9 min) we could see that hudson also performs the build in 3 min, but then takes 6 minutes to upload the artefact to nexus.

Performing a manual upload of another artefact using nexus' web UI, I was able to confirm the following:

  • the actual artefact upload is done in a fraction of the time (i.e., in several seconds)
  • after these several seconds, the artefact appears as <nexusworkdir>/nexus/storage/test/test2/test2/1.0.0/test2-1.0.0.rpm

The real puzzler is why nexus takes over a minute to create this file: <nexusworkdir>/nexus/proxy/attributes/test/test2/test2/1.0.0/test2-1.0.0.rpm

As far as I can tell, it just calculates an MD5 and SHA1 signature and records general artefact information, but md5sum and sha1sum of a 75MB file take <1s to run...

Finally, it does not appear to be some sort of network time-out, because the delay seems to be roughly proportional to artefact size.

Any idea what nexus does after it receives an artefact is appreciated.

Update 2:

Setting the nexus log level to debug, nexus logs the following when an artefact is uploaded:

o.s.n.p.s.l.f.Defau~ - Copying stream with buffer size of: 4096

- RESPONSE /nexus/content/groups/public/org/python/jython/2.5.2/jython-2.5.2.jar 200

- REQUEST /nexus/content/groups/public/org/python/jython/2.5.2/jython-2.5.2.jar.sha1 on

- RESPONSE /nexus/content/groups/public/org/python/jython/2.5.2/jython-2.5.2.jar.sha1 200

- REQUEST /nexus/content/groups/public/.index/nexus-maven-repository-index.properties on org.mortbay.jetty.HttpConnection@141a720

o.s.n.p.m.m.M2Group~ - public retrieveItem() :: FOUND public:/.index/nexus-maven-repository-index.properties

- RESPONSE /nexus/content/groups/public/.index/nexus-maven-repository-index.properties 200

o.s.n.p.a.DefaultAt~ - Storing attributes on UID=test:/test/test/1.0.1/test-1.0.1.rpm

- servlet holder=nexus

- RESPONSE /nexus/ext-2.3/resources/images/default/window/icon-info.gif 200

- REQUEST /nexus/service/local/log/config on org.mortbay.jetty.HttpConnection@1dbd88f ....

It appears to just be sitting there for a minute or so and than continues with its work. Any idea why nexus does this is appreciated.

0 投票する
2 に答える
17499 参照

encryption - Gradle で Maven リポジトリに暗号化されたパスワードを使用するにはどうすればよいですか

現在、Maven ビルドを Gradle ビルドに移行しようとしています。私が突き当たったショーストッパーのハードルは、内部アーティファクトが、読み取りに認証が必要な内部リポジトリにデプロイされていることです。

そして、認証が何を意味するかを知っています... ユーザー名とパスワード。問題は、開発者がハード ドライブにパスワードを平文で保存することを要求したくないことです。Maven はパスワード暗号化をサポートしていますが、Gradle にそれをさせる方法がわかりません。

暗号化されたパスワードをサポートする Ivy CredentialStore への魔法のアクセスはありますか? または、新しいバージョンを待つ必要がありますか?

0 投票する
1 に答える
186 参照

svn - 開発ツールまたは構成ツール?

これらのツールは何と呼ばれていますか - Mingle、Subversion、TeamCity、Nexus

これらは開発ツールですか、それとも構成サービス ツールですか?
開発ツールには IDE (eclipse/IntelliJ IDEA) などの他の開発者アプリケーションが含まれている可能性があるため、それらが開発ツールであるかどうかは不明です。

0 投票する
1 に答える
1037 参照

repository - Eclipse VirgoサーバーでSonatype Nexusリポジトリを実行するには?

これに役立つグーグルが見つからなかったのは非常に奇妙だと思うので、ここで試しています:Eclipse VirgoサーバーにSonatype Nexusリポジトリをインストールする方法を誰かに説明してもらえますか?

Linux(ubuntuサーバー)とWindowsマシンで試しましたが、サーバーの起動時に両方ともエラーが表示されました。(そのため、選択したフォルダーに戦争をドロップしました)

どうもありがとうございました!

編集: 原因はおそらく関連しています: クラス org.sonatype.nexus.web.NexusBooterListener のリスナー インスタンスにコンテキスト初期化イベントを送信する例外

DEBUG ログ モードで、より具体的なエラー メッセージをフィルター処理できました。

Tomcat 6で同じNexusバージョンを試しました->戦争からサーバーレットライブラリを削除する必要がありました->乙女座でもう一度同じ戦争を試みたところ、同様のエラーメッセージが表示されたようです:

0 投票する
3 に答える
2288 参照

maven-2 - 別のアーティファクトに依存するアーティファクトを見つける方法は?

Maven を使用してプロジェクトをビルドし、Nexus をリポジトリ マネージャーとして使用しています。

成果物が別の成果物の依存関係にある場所を知る方法はありますか?

たとえば、Release リポジトリ内のどのアーティファクトが commons-io 1.2、またはフレームワーク 2 のバージョン xy に依存しているか、または ...