問題タブ [meta-inf]
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.
android - Android L の INSTALL_PARSE_FAILED_NO_CERTIFICATES
apkのMETA-INF
に空のファイルを追加しました。 の場合、通常どおりインストールされましたが、 にインストールすると、 で失敗しました。Android 4.3
Android 5.0.2
INSTALL_PARSE_FAILED_NO_CERTIFICATES
android - アノテーション プロセッサが生成したリソースが APK にパッケージ化されていない
ファクトリ クラスとMETA-INF/services/factory.interface.class
リソースを生成するカスタム アノテーション プロセッサがあります。
アノテーション プロセッサはライブラリ プロジェクトで使用され、生成されたすべてのファイルは AAR に正しくパッケージ化されます。
ライブラリが依存関係として追加されたアプリケーションプロジェクトで注釈プロセッサを使用すると、ライブラリのクラスのみMETA-INF/services/factory.interface.class
が存在しますAPK/META-INF/services/factory.interface.class
いくつかの調査の後MergeJavaResourcesTransform
、android-gradle-plugin-1.5.0 (および 2.0.0-alpha3) では、すべてexploded-aar
の s、jar
s、およびintermediates/sourceFolderJavaResources
META-INF
からマージする方法はありますかintermediates/classes
(注釈プロセッサのリソースファイルが作成される場所です)、または注釈プロセッサにファイルを作成させる方法はありますsourceFolderJavaResources
か?
これまでに見つけた唯一の回避策はCopyTask
、アプリケーションのビルドスクリプトを追加することです
しかし、ライブラリのユーザーが依存関係を追加する以上のことをコンパイラに強制するつもりはありません。
gradle - Can Gradle read transitive dependencies from pom.xml contained in local JAR files?
Unlike external dependencies (from Maven, Ivy, etc.) local JAR files usually do not provide a list of transitive dependencies for Gradle. Unless they theoretically do in form of files pom.xml
and pom.properties
in directory META-INF/maven/<groupId>/<artifactId>
. As far as I understand these are the same files Maven uses to provide transitive dependencies for an artifact.
So I wonder if Gradle is somehow able to read these transitive dependencies from a local JAR file as if the local JAR was an external dependency. Only adding the local JAR as dependency seems to ignore the embedded pom.xml
.
Use case: I am writing an Plugin API JAR for an internal product which should be used by our developers to develop plugins. The API JAR has some external dependencies (Hibernate Annotations in domain classes, dom4j, stuff like that) and it would be great if the developer wouldn't have to define these dependencies by himself (they could change with newer API version). I also don't want to create a fat JAR containing all dependencies because a) the size! and b) it would not contain the sources of the external dependencies.
java - META-INF フォルダーを Spring コマンドライン アプリケーションの src/main/resources に入れることはできますか?
Spring を使用して実装されたバッチ アプリケーションに取り組んでいます。
このアプリケーションでは、次の構造を見つけました。
したがって、前のスキーマでわかるように、src/main/resourcesに、Spring 構成 (Bean 定義) を含むapplicationContext.xmlファイルを含むMETA-INFフォルダーを見つけました。
このバッチは正常に動作しますが、疑問があります。この場所は、 applicationContext.xmlファイルを配置する正しい場所と見なすことができますか?
私は常にMETA-INFディレクトリを Web アプリケーション (このようなバッチ アプリケーションではありません) に、このプロジェクトにない次のフォルダーに表示します (Web アプリケーションではないため)。
それは正しいですか、それとももっとうまくできますか?
java - Maven: JAR の META-INF にファイルを含める
Maven を使用して Java プロジェクトをビルドしています。2 つのファイルがCHANGELOG
あり、JAR ファイル内のディレクトリLICENSE
にコピーしたいと考えています。META-INF
これまでのところ、私が取り組んでいるのは次のとおりです。
classes/META-INF
ただし、コンパイル時にこれら2つのファイルもディレクトリにコピーします。
したがって、ファイルを JAR ファイルに含めたいのですが、それ以外には含めません。これを行う方法はありますか?