I got the following positive result:

C:\work\npanday\importer>mvn install
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building libimporter 1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] ---
library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:resolve-packages
(default-resolve-packages) @ libimpo
rter ---
[INFO]
[INFO] ---
library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:extract-nuspec
(default-extract-nuspec) @ libimporter
 ---
[INFO]
[INFO] ---
library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:generate-package-man
ifestinfos (default-generate-pack
age-manifestinfos) @ libimporter ---
[INFO]
[INFO] ---
library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:generate-package-art
ifacts (default-generate-package-
artifacts) @ libimporter ---
[INFO]
[INFO] ---
library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:install-libraries
(default-install-libraries) @ libim
porter ---
[INFO] Installing
C:\work\npanday\importer\target\generated-projects\NUnit_nunit.framework_dot
net-library_2.6.0\nunit.fr
amework.dll to C:\Users\leungchaksun\.m2\repository\NUnit\nunit.framework\2.
6.0\nunit.framework-2.6.0.dll
[INFO] Installing
C:\work\npanday\importer\target\generated-projects\NUnit_nunit.framework_dot
net-library_2.6.0\pom.xml
to
C:\Users\leungchaksun\.m2\repository\NUnit\nunit.framework\2.6.0\nunit.frame
work-2.6.0.pom
[INFO] Installing
C:\work\npanday\importer\target\generated-projects\FluentAssertions_FluentAs
sertions_dotnet-library_1.
7.1\FluentAssertions.dll to
C:\Users\leungchaksun\.m2\repository\FluentAssertions\FluentAssertions\1.7.1
\FluentAssertion
s-1.7.1.dll
[INFO] Installing
C:\work\npanday\importer\target\generated-projects\FluentAssertions_FluentAs
sertions_dotnet-library_1.
7.1\pom.xml to
C:\Users\leungchaksun\.m2\repository\FluentAssertions\FluentAssertions\1.7.1
\FluentAssertions-1.7.1.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.293s
[INFO] Finished at: Tue Dec 03 16:26:37 GMT+08:00 2013
[INFO] Final Memory: 10M/189M
[INFO]
------------------------------------------------------------------------
C:\work\npanday\importer>


and one of the generated POM is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.
apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>NUnit</groupId>
  <artifactId>nunit.framework</artifactId>
  <version>2.6.0</version>
  <packaging>dotnet-library</packaging>
  <name>NUnit :: nunit.framework</name>
  <description>NUnit is a unit-testing framework for all .Net languages with
a strong TDD focus.</description>
  <url>http://nunit.org</url>
  <licenses>
    <license>
      <url>http://nunit.org/nuget/license.html</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Charlie Poole</name>
    </developer>
  </developers>
  <build>
    <finalName>nunit.framework</finalName>
  </build>
</project>

Inside this POM file, I don't find any dependencies section.

If I need to upload the POM and the related DLL into a remote repository
such as Apache Archiva, do I need to add the distributionManagement section
inside the POM file for deploying to the remote repository?

        <distributionManagement>
                <repository>
                        <id>releases</id>
                        <name>Netage Releases Repository</name>
        
<url>http://xxxx/content/repositories/releases/</url>
                </repository>   
                <snapshotRepository>
                        <id>snapshots</id>
                        <name>Netage Snapshots Repository</name>
        
<url>http://xxxx/content/repositories/snapshots/</url>
                </snapshotRepository>
        </distributionManagement>

Best Rgds,

Tom




-----Original Message-----
From: Lars Corneliussen [mailto:m...@lcorneliussen.de] 
Sent: Tuesday, December 03, 2013 4:15 PM
To: npanday-users@incubator.apache.org
Subject: Re: Nuget package support

does it work now?

Am 03.12.2013 um 09:09 schrieb Tom Leung <tocsle...@gmail.com>:

> Thank for your help
> 
> 
>> Lars Corneliussen <m...@lcorneliussen.de> 於 2013年12月3日 4:58 寫道:
>> 
>> I knew something was missing :-(
>> 
>> Try this:
>> https://github.com/faktumsoftware/manifestinfo/releases/tag/v1.0.0
>> 
>> Still we have not found a way to "correctly" distribute this. Maybe 
>> it should be rewritten as a NPanday .net plugin…
>> 
>> _
>> Lars
>> 
>>> Am 29.11.2013 um 05:47 schrieb Tom Leung <tom.le...@netage.com.hk>:
>>> 
>>> I try to run library-importer-maven-plugin and get the following error.
>>> 
>>> The plugin tries to run " manifestinfo" command.  Where I can 
>>> download this executable?
>>> 
>>> Best Rgds,
>>> 
>>> Tom
>>> 
>>> 
>>> 
>>> [INFO] ---
>>> library-importer-maven-plugin:1.5.0-incubating-SNAPSHOT:generate-pac
>>> kage-man
>>> ifestinfos (default-generate-pack
>>> age-manifestinfos) @ libimporter --- [WARNING] NPANDAY-126-002: Did 
>>> not find path for manifestinfo in 
>>> [C:\Windows\Microsoft.NET\Framework64\v2.0.50727]
>>> [INFO]  +--[ RUNNING: cmd.exe /X /C "manifestinfo 
>>> C:\work\npanday\importer\target\packages\NUnit.2.6.0.12054\lib -x -r 
>>> - q -o 
>>>
C:\work\npanday\importer\target\packages\NUnit.2.6.0.12054\lib\manifestinfo.
>>> xml"]
>>> [ERROR]  | 'manifestinfo' 不是內部或外部命令、可執行的程式或批次檔。
>>> [INFO]  +--[ FAILED, result = 1, error output = true] [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [INFO] Total time: 7.522s
>>> [INFO] Finished at: Fri Nov 29 11:50:01 GMT+08:00 2013 [INFO] Final 
>>> Memory: 7M/133M [INFO]
>>> --------------------------------------------------------------------
>>> ----
>>> [ERROR] Failed to execute goal
>>> org.apache.npanday.plugins:library-importer-maven-plugin:1.5.0-incub
>>> ating-SN
>>> APSHOT:genera
>>> te-package-manifestinfos (default-generate-package-manifestinfos) on 
>>> project
>>> libimporter: NPANDAY-151-001: error handlin g [NUnit, v2.6.0.12054]: 
>>> NPANDAY-140-000: Error occured when running manifestinfo for 
>>> C:\work\npanday\importer\target\pa
>>> ckages\NUnit.2.6.0.12054\lib: NPANDAY-040-001: Could not execute: 
>>> Command = cmd.exe /X /C "manifestinfo C:\work\npanday\ 
>>> importer\target\packages\NUnit.2.6.0.12054\lib -x -r -q -o 
>>> C:\work\npanday\importer\target\packages\NUnit.2.6.0.12054\li
>>> b\manifestinfo.xml", Result = 1 -> [Help 1] [ERROR] [ERROR] To see 
>>> the full stack trace of the errors, re-run Maven with the -e switch.
>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>> [ERROR]
>>> [ERROR] For more information about the errors and possible 
>>> solutions, please read the following articles:
>>> [ERROR] [Help 1]
>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExcept
>>> ion
>>> 
>>> 
>>> -----Original Message-----
>>> From: Lars Corneliussen [mailto:m...@lcorneliussen.de]
>>> Sent: Friday, November 22, 2013 5:23 PM
>>> To: npanday-users@incubator.apache.org
>>> Subject: Re: Nuget package support
>>> 
>>> Hi,
>>> 
>>> you need to set up the distribution management and then run mvn deploy:
>>> 
>>> <distributionManagement>
>>>  <snapshotRepository>
>>>    <id>ikas-3dparty</id>
>>>    <url>…..</url>
>>>  </snapshotRepository>
>>> </distributionManagement>
>>> 
>>> You could install a nexus or archiva to host your own repositories.
>>> 
>>> there is maven-central. I don't know how hard it is to get stuff 
>>> deployed there.
>>> brett?
>>> 
>>> _
>>> Lars
>>> 
>>> 
>>>> Am 21.11.2013 um 17:18 schrieb "Tom Leung" <tom.le...@netage.com.hk>:
>>>> 
>>>> How can I upload the third-party libraries into the third party-repo? 
>>>> any instruction.
>>>> 
>>>> Is there any public NPanday repository? so I can upload the 
>>>> libraries to there.
>>>> 
>>>> Best Rgds,
>>>> 
>>>> Tom
>>>> 
>>>> 
>>>> -----Original Message-----
>>>> From: Lars Corneliussen [mailto:m...@lcorneliussen.de]
>>>> Sent: Thursday, November 21, 2013 7:27 PM
>>>> To: npanday-users@incubator.apache.org
>>>> Subject: Re: Nuget package support
>>>> 
>>>> sure!
>>>> would also be great if we could maintain some "official" package 
>>>> mappings and deploy them to our thirdparty-repo...
>>>> 
>>>> let me know if it worked as expected.
>>>> 
>>>>> Am 21.11.2013 um 12:06 schrieb Tom Leung <tocsle...@gmail.com>:
>>>>> 
>>>>> Thank you very much.
>>>>> 
>>>>> I think many people are waiting for this great feature.
>>>>> 
>>>>> Best Rgds,
>>>>> 
>>>>> Tom
>>>>> 
>>>>> 
>>>>> 
>>>>>> Lars Corneliussen <m...@lcorneliussen.de> 於 2013年11月21日 18:21 寫
道:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> yes; we do that all day :-)
>>>>>> 
>>>>>> I think this is a good point to start:
>>>>>> 
>>>>>> https://builds.apache.org/view/M-R/view/NPanday/job/NPanday-docs/
>>>>>> ws/
>>>>>> h
>>>>>> udsonhudson-slaveworkspaceNPanday-docs/target/jenkins-site/plugin
>>>>>> s/l i brary-importer-maven-plugin/index.html
>>>>>> 
>>>>>> Find some import definitions aside… by default the plugin takes 
>>>>>> all
>>>> *.lib.xml files that are located in the project root.
>>>>>> <package-imports.zip>
>>>>>> 
>>>>>> 
>>>>>> The pom you could start with:
>>>>>> 
>>>>>> <?xml version="1.0" encoding="utf-8"?> <project 
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>>    xmlns="http://maven.apache.org/POM/4.0.0";
>>>>>>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>>>>>> <modelVersion>4.0.0</modelVersion>
>>>>>> 
>>>>>> <artifactId>Thirdparty</artifactId>
>>>>>> <version>1-SNAPSHOT</version>
>>>>>> <packaging>dotnet-library-importer</packaging>
>>>>>> 
>>>>>> <build>
>>>>>> <plugins>
>>>>>> <plugin>
>>>>>>   <groupId>org.apache.npanday.plugins</groupId>
>>>>>>   <artifactId>library-importer-maven-plugin</artifactId>
>>>>>>   <version>1.5.0-incubating-SNAPSHOT</version>
>>>>>>   <extensions>true</extensions>
>>>>>>   <configuration>
>>>>>>     <!--localRepository>target/repo</localRepository-->
>>>>>>   </configuration>
>>>>>> </plugin>
>>>>>> </plugins>
>>>>>> </build>
>>>>>> </project>
>>>>>> 
>>>>>> 
>>>>>> _
>>>>>> Lars
>>>>>> 
>>>>>>> Am 14.11.2013 um 04:52 schrieb "Tom Leung"
<tom.le...@netage.com.hk>:
>>>>>>> 
>>>>>>> Does the current NPanday snapshot v1.5.0 may import Nuget 
>>>>>>> package into the maven project.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> if can, may anyone write out some simple example how to get it work.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Best Rgds,
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Tom
>> 

Reply via email to