~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. ~~ NOTE: For help withuses the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Using the NPanday Nuget Maven Plugin * Prerequisites The plugin should run out of the box, but will need to resolve these from a third-party repository. If they can't be resolved, they must be downloaded and installed to the PATH manually. * {{{http://nuget.codeplex.com/}Nuget 1.7+, will be automatically resolved}} * {{{https://github.com/faktumsoftware/manifestinfo/releases/download/v1.0.0/manifestinfo.exe}ManifestInfo 1.0+, will be automatically resolved}} * Usage The library importer will find all <<<*.lib.xml>>> files in your directory and then resolve all the listed packages. Afterwards it will try to resolve all references, generate the poms, and then install and deploy the generated libraries+poms in the corresponding phases. The pom artifact, <<>> in this case, will not be installed or deployed. ** Define the project +---+ 4.0.0 test libimporter 1-SNAPSHOT dotnet-library-importer org.apache.npanday.plugins library-importer-maven-plugin ${project.version} true +---+ ** Add definitions on libraries/packages to import +---+ NUnit FluentAssertions net40 FakeItEasy net40 +---+ ** Execution When executing with <<>> this will result in the following libraries to be installed. +---+ /NUnit/nunit.framework/2.6.0/nunit.framework-2.6.0.dll /NUnit/nunit.framework/2.6.0/nunit.framework-2.6.0.pom .. .. +---+ ** Metadata mapping The library importer tries to extract as much information as possible and put it into the pom. This will library dependencies both within the same and external to other packages. +---+ 4.0.0 NUnit nunit.framework 2.6.0 dotnet-library NUnit :: nunit.framework NUnit is a unit-testing framework for all .Net languages with a strong TDD focus. http://nunit.org/nuget/license.html Charlie Poole +---+ * Examples For further examples have a look at the integration tests for {{{http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/library-importer-maven-plugin/src/it/} library-importer-maven-plugin}}