IKVM.Maven.Sdk 1.0.1

NuGet\Install-Package IKVM.Maven.Sdk -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package IKVM.Maven.Sdk --version 1.0.1
<PackageReference Include="IKVM.Maven.Sdk" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IKVM.Maven.Sdk --version 1.0.1
#r "nuget: IKVM.Maven.Sdk, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install IKVM.Maven.Sdk as a Cake Addin
#addin nuget:?package=IKVM.Maven.Sdk&version=1.0.1

// Install IKVM.Maven.Sdk as a Cake Tool
#tool nuget:?package=IKVM.Maven.Sdk&version=1.0.1

IKVM.Maven.Sdk - IKVM support for Maven dependencies

IKVM.Maven.Sdk is a set of MSBuild extensions for referencing Maven artifacts within .NET SDK projects.

To use, install the IKVM.Maven.Sdk package from NuGet, and add a <MavenReference /> element to your SDK-style project. Various Maven options are supported through item-metadata.

The simplest use case is to specify the group ID and artifact ID coordinates on the item specification, and use Version for the metadata.

<ItemGroup>
    <MavenReference Include="org.foo.bar:foo-lib" Version="1.2.3" />
</ItemGroup>

Optionally, use an arbitrary value for the item specification, and explicitely specify information through metadata:

<ItemGroup>
    <MavenReference Include="foo-lib">
      <GroupId>org.foo.bar</GroupId>
      <ArtifactId>foo-lib</ArtifactId>
      <Classifier></Classifier>
      <Version>1.2.3</Version>
    </MavenReference>
</ItemGroup>

Transitive Dependencies

The <MavenReference /> item group operates similar to a dependency in Maven. All transitive dependencies are collected and resolved, and then the final output is produced. However, unlike PackageReferences, MavenReferences are collected by the final output project, and reassessed. That is, each dependent Project within your .NET SDK-style solution contributes its MavenReferences to project(s) which include it, and each project makes its own dependency graph. Projects do not contribute their final built assemblies up. They only contribute their dependencies. Allowing each project in a complicated solution to make its own local conflict resolution attempt.

PackageReferences are supported in the same way. Projects which include MavenReferences do not pack the generated IKVM assemblies into their NuGet packages. Instead, they pack a partial POM file which only declares their dependencies. At build-time on the consumer's machine the final dependency graph is collected and generation happens. No generated assemblies are published to NuGet. This prevents possible conflicts between NuGet packages and incompatible base Java dependencies. For instance, if a package on nuget.org contained an actual copy of commons-logging.dll, there would be no guarentee that this assembly was generated with the correct options to support a different package on nuget.org that also depended on commons-logging. Since the final build machine is responsible for gathering and generating the dependencies, these conflicts become simple Maven conflicts: multiple packages dependending on differnet versions of the same thing, and Maven being unable to come up with a solution. Basically, not our problem.

MavenReferences fully support TFMs. A <MavenReference /> element can be conditional based on TFM. As the partial packaged POM-file is indexed by TFM in the generated .nupkg.

Assembly Generation

Assembly generation options are limited. Users are not allowed to customize the assembly name, version, or other optimization information that IKVM's compiler uses to produce the output. This is to ensure that NuGet packages that depend on generated assemblies do so under a certain set of assumptions that can continue to be met. As non-Java assemblies published in NuGet packages are compiled against on certain assembly names and version, allowing different people to rename or change assemblies away from their default would break the expectation that two NuGet packages that depend on the same Maven artifact resolve to the same assembly name.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETCoreApp 3.1

  • .NETFramework 4.6.1

NuGet packages (3)

Showing the top 3 NuGet packages that depend on IKVM.Maven.Sdk:

Package Downloads
SaxonHE11s9apiExtensions

This is an extension method library to ease the use of an IKVM compiled version of Saxon HE 11 Java in .NET 6 applications.

SaxonHE10Net31

This is the result of IKVM cross-compiling the Saxon HE 10.8 Java software to .NET 3.1 Core.

SaxonHE10Net31Api

This is a port of the Saxon 10.8 .NET framework API to .NET Core 3.1.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 698 7/26/2022
1.0.1-prerelease0037 122 7/25/2022
1.0.1-prerelease0034 131 7/25/2022
1.0.1-prerelease0020 136 7/25/2022
1.0.1-prerelease0009 134 7/25/2022
1.0.0 387 7/6/2022