AW: Maven release gives error on multi-module project
Hi Octavian, I can't imagine things work when mixing. So even if adding the dll packaging type helps to get things working for you, I'm pretty sure plenty of other things wont work. Then, introducing dll shouldn't be necessary, since library and dotnet-library should work fine when using 1.5 entirely. _ Lars -Ursprüngliche Nachricht- Von: Octavian [mailto:h.octav...@gmail.com] Gesendet: Mittwoch, 10. Dezember 2014 14:28 An: npanday-users@incubator.apache.org Cc: Brett Porter Betreff: Re: Maven release gives error on multi-module project Hello, Yes I have mixed the versions 1.4 and 1.5, but then I found why it skipped the type dll dependencies. Finally I used only the version 1.5 for both plugins with a little hack: https://github.com/octavian-h/npanday/commit/02a0fa919534fc4afee4ae407f8e597fd7f5e6a7 Octavian 2014-12-08 11:00 GMT+02:00 Lars Corneliussen // Zen m...@lcorneliussen.de: Do you mix the versions 1.4 and 1.5? I'm pretty sure we have some bugs around the release lifecycle in NPanday 1.5, though this one seems strange But shouldn't maven resolve the project.version? @Brett, any idea? @Octavian: Could you provide a zip file (if your example project is real :-)) _ Lars -Ursprüngliche Nachricht- Von: Octavian [mailto:h.octav...@gmail.com] Gesendet: Donnerstag, 27. November 2014 15:21 An: npanday-users@incubator.apache.org Betreff: Maven release gives error on multi-module project Hello again, I use org.apache.npanday.plugins:maven-compile-plugin:1.4.0-incubating and org.apache.npanday.plugins:maven-resgen-plugin:1.5.0-internal (I released locally the version 1.5.0-incubating-SNAPSHOT) for my multi-module project. If I run mvn clean install it goes to success, but when I try to release with mvn -Dresume=false -DautoVersionSubmodules=true -DpreparationGoals=clean install release:clean release:prepare release:perform it fails at module B because it can't get the dependency module A. The compile plugin doesn't resolve Maven variables and it tries to download com.example:A:dll:${project.version} ex: Inside pom.xml from module B dependency groupIdcom.example/groupId artifactIdA/artifactId version${project.version}/version typedll/type /dependency Why at install phase the NPanday compile plugin finds A dependency, but at release time it don't? Thanks, Octavian
AW: Determining next steps for the NPanday
Hi Roman, even though it hurts I think retiring the project is the right thing to do. Not because of the quality of NPanday, but just because the (developer!) community is effectively gone. While I'm still using NPanday every day (1.5 snapshot), it is all on the same project and there is no need for further development currently. And just the fact that we haven't been able to release 1.5 for ages shows the lack of a functioning community. I might invest in releasing 1.5 - but I might also keep saying this the years to come. Although for releasing 1.5 we wouldn't need more than somebody just doing the release with how 1.5 is now. http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/developers/releasing.html So if someone volunteers - just go ahead. _ Lars -Ursprüngliche Nachricht- Von: shaposh...@gmail.com [mailto:shaposh...@gmail.com] Im Auftrag von Roman Shaposhnik Gesendet: Sonntag, 14. Dezember 2014 19:29 An: npanday-...@incubator.apache.org Cc: npanday-users@incubator.apache.org Betreff: Re: Determining next steps for the NPanday On Sun, Dec 14, 2014 at 2:08 AM, David Akehurst d...@akehurst.net wrote: I would like it to stay I have done some development for it Please note that retirement doesn't make source code go away -- it will still be available for you to use and hack on. Retirement is ASF's way of telling outside world that even though source is still there and available, the community is gone. Now, as I said, the measure of the community being there could be interpreted as *at the very least* having 3 active participants since all decisions would require 3 votes minimum. Not sure if NPanday has that, but would love to be contradicted. Thanks, Roman. P.S. Finally, should 3 active participants show up after the retirement, reviving the project takes very little time. Hence its not like a permanent state of things.
AW: NPanday compile plugin doesn't get dll dependencies
Hi Octavian, sorry for not replying earlier. In 1.5 we changed the artifact types to start with a dotnet-. http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/guide/advanced/project-types.html I'm not sure if we ever supported dll explicitly. The thing is, that maven would usually try to resolve the artifact by using the type as a file extension if the no plugin kicks in with a custom resolve logic or type to file extension mapping. But it might be that in 1.5.0 we still sort out dependencies we don't explicitly know the type of. What does the error look like? Is the artifact resolved, but then not passed to the compiler, or is the error at resolve time? _ Lars -Ursprüngliche Nachricht- Von: Octavian [mailto:h.octav...@gmail.com] Gesendet: Dienstag, 25. November 2014 11:34 An: npanday-users@incubator.apache.org Betreff: NPanday compile plugin doesn't get dll dependencies Hello, The maven-compile-plugin with the version 1.4.0-incubating works if I put a dependency as the one below: dependency groupIdorg.apache.logging/groupId artifactIdlog4net/artifactId version1.2/version typedll/type /dependency The pom file of this library is with packaging dll. The version 1.5.0-incubating-SNAPSHOT doesn't bring this dll and the install phase fails with: The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?) Interesting is that if I use typelibrary/type for the above dependency it builds with success. So why the behaviour changed between 1.4.0-incubating and 1.5.0-incubating-SNAPSHOT? Now I have to change the dependencies from type dll to type library? Thanks, Octavian PS: I need to use 1.5.0-incubating-SNAPSHOT because of a fix on maven-resgen-plugin
AW: Maven release gives error on multi-module project
Do you mix the versions 1.4 and 1.5? I'm pretty sure we have some bugs around the release lifecycle in NPanday 1.5, though this one seems strange But shouldn't maven resolve the project.version? @Brett, any idea? @Octavian: Could you provide a zip file (if your example project is real :-)) _ Lars -Ursprüngliche Nachricht- Von: Octavian [mailto:h.octav...@gmail.com] Gesendet: Donnerstag, 27. November 2014 15:21 An: npanday-users@incubator.apache.org Betreff: Maven release gives error on multi-module project Hello again, I use org.apache.npanday.plugins:maven-compile-plugin:1.4.0-incubating and org.apache.npanday.plugins:maven-resgen-plugin:1.5.0-internal (I released locally the version 1.5.0-incubating-SNAPSHOT) for my multi-module project. If I run mvn clean install it goes to success, but when I try to release with mvn -Dresume=false -DautoVersionSubmodules=true -DpreparationGoals=clean install release:clean release:prepare release:perform it fails at module B because it can't get the dependency module A. The compile plugin doesn't resolve Maven variables and it tries to download com.example:A:dll:${project.version} ex: Inside pom.xml from module B dependency groupIdcom.example/groupId artifactIdA/artifactId version${project.version}/version typedll/type /dependency Why at install phase the NPanday compile plugin finds A dependency, but at release time it don't? Thanks, Octavian
AW: AssemblyInfo.cs problems
Yes. That looks like a bug! -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Sonntag, 13. April 2014 01:26 An: npanday-users@incubator.apache.org Betreff: AssemblyInfo.cs problems I am trying to build my project, but it fails because: [INFO] | elevate\target\build-sources\META-INF\net\kolotyluk\windows\elevate\Assembly Info.cs(3,32): error CS1010: Newline in constant and so on. The problem is that NPanday is reading my POM description and inserting it into AssemblyInfo.cs with newline characters [assembly: AssemblyDescription(Elevate an arbitrary command or program with Administrator Priviledges While this program is usefult it is also powerful and a dangerous security risk. If you need to elevate a command or program, consider using one of the more specialized forms of this program such as elevate-mklink.exe.)] Should I report this as a bug? Cheers, Eric
AW: Building an executable from modules
Also: There is no living equivalent to ueber-jar in .NET. Modules were made for that, but they never actually got there - they are never linked to and deployed separately. People are using ILmerge for combining assemblies. But it also has drawbacks. When a references b, and b is merged to c, there is no way you can link a to b_in_c without recompiling... -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Donnerstag, 10. April 2014 18:06 An: npanday-users@incubator.apache.org Betreff: Re: Building an executable from modules OK, after several days of intense, and I mean very intense, frustration, here is what I have concluded: http://kolotyluk.github.io/open-source/2014/04/09/hassling-dotnet.html Because I know how to easily create an uber-jar assembly in Java, I falsely concluded there was an equivalent way to do the same in .Net. It is also compelling to want .Net software builds with NPanday to be similar to Java software builds in Maven, but the reality is that there will always be some serious differences in these processes. Still, my hope that NPanday/Maven can increasingly reduce these differences in many areas, and I look forward to a day where NPanday graduates from incubating to be fully supported with the rest of Maven. Cheers, Eric
AW: Building an executable from modules
I have never tried that. Don't think anyone is maintaining it. I'd rather use dotnet-library and then at the end merge with ilmerge You could use the exec-plugin for that, allthough I'd like to have a maven-ilmerge-plugin. -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Dienstag, 8. April 2014 16:24 An: npanday-users@incubator.apache.org Betreff: Building an executable from modules I am trying to figure out how to build an executable from modules. Does anyone have any example projects that do this. I have a project with the following Maven modules: csharp-windows-elevate elevate-common (dotnet-module) elevate-module (dotnet-module,depends on elevate-common) elevate-exe (dotnet-executable,depends on elevate-common and elevate-module) When I try to compile I get [INFO] csharp-windows-elevate SUCCESS [0.287s] [INFO] elevate-common SUCCESS [2.543s] [INFO] elevate-module SUCCESS [2.668s] [INFO] elevate-exe ... FAILURE [1.953s] which fails because Maven is trying to compile elevate-exe when there is nothing to compile. In my POM I have plugin groupIdorg.apache.npanday.plugins/groupId artifactIdmaven-compile-plugin/artifactId version1.5.0-incubating-SNAPSHOT/version extensionstrue/extensions executions execution phasenone/phase /execution /executions /plugin plugin groupIdorg.apache.npanday.plugins/groupId artifactIdmaven-link-plugin/artifactId version1.5.0-incubating-SNAPSHOT/version extensionstrue/extensions configuration frameworkVersion4.0/frameworkVersion parameters parameter/target:exe/parameter parameter/out:elevate.exe/parameter parameter/main:Elevate.Main/parameter /parameters /configuration /plugin But that does not seem to suppress the compiler, and it never gets to the linker. Cheers, Eric
AW: AW: Maven cannot see my DLL artifact
Any chance to send over a zip? (Possibly on skype, if confidential) - I'm lcorneliussen -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Dienstag, 8. April 2014 00:22 An: npanday-users@incubator.apache.org Betreff: Re: AW: Maven cannot see my DLL artifact I do have extensiontrue/extension in my compile-plugin, but maven still cannot find my dependency unless I use the system hack. Cheers, Eric On 4/7/2014 2:07 PM, Lars Corneliussen // Zen wrote: You need to have the compile-plugin with extension=true configured also when resolving dependencies It contains the mapping from dotnet-library to .dll - and also some logic for resolving gac-licenses, ++ Ist hat done? -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Montag, 7. April 2014 23:02 An: maven users; npanday-users@incubator.apache.org Betreff: Re: Maven cannot see my DLL artifact OK, I found a solution. Instead of dependency groupIdnet.kolotyluk.windows.elevate/groupId artifactIdelevate-common/artifactId version0.0.21-SNAPSHOT/version typedotnet-library/type /dependency I need to do dependency groupIdnet.kolotyluk.windows.elevate/groupId artifactIdelevate-common/artifactId version0.0.21-SNAPSHOT/version typedotnet-library/type scopesystem/scope systemPathC:\Users\Eric\.m2\repository\net\kolotyluk\windows\elevate \eleva te-common\0.0.21-SNAPSHOT\elevate-common-0.0.21-SNAPSHOT.dll/systemPa th /dependency Not sure if that is the intended design for NPanday and .Net artifacts. Cheers, Eric On 4/7/2014 11:34 AM, Eric Kolotyluk wrote: I cannot seem to get Maven to see my dll artifact. I have read https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutio n Exception I can see it in my local repository, but Maven seems to be ignoring my local repository, even though there is no LocalRepositoryNotAccessibleException I can see it in my nexus repository, and Maven is complaining it cannot find the artifact there. If I delete the artifact from my local repository, Maven has no trouble downloading the metadata and pom, but for some reason it cannot see the dll artifact. /*Is Maven somehow choking on the fact that my artifact is a dll, and not a jar, or something else?*/ I remember fighting with problems like this in the past, but I cannot remember how I resolved them. Cheers, Eric D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\el e vatemvn test [INFO] Scanning for projects... [INFO] [INFO] - - -- [INFO] Building elevate.exe 0.0.21-SNAPSHOT [INFO] - - -- Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml Downloaded: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml (2 KB at 6.4 KB/sec) Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-201404 0 7.175953-1.pom Downloaded: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-201404 0 7.175953-1.pom (10 KB at 237.8 KB/sec) Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/csharp-windows-elevate/0.0.21-SNAPSHOT/maven-metadata.xml Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windo w s/csharp-windows-elevate/0.0.21-SNAPSHOT/csharp-windows-elevate-0.0.2 1 -SNAPSHOT.pom [INFO] - - -- [INFO] BUILD FAILURE [INFO] - - -- [INFO] Total time: 2.505s [INFO] Finished at: Mon Apr 07 11:00:11 PDT 2014 [INFO] Final Memory: 32M/1963M [INFO] - - -- [ERROR] Failed to execute goal on project elevate-exe: Could not resolve dependencies for project net.kolotyluk.windows.elevate:elevate-exe:dotnet-executable:0.0.21-SNAPSHOT: Failed to collect dependencies at net.kolotyluk.windows.elevate:elevate-common:dll:0.0.21-SNAPSHOT: Failed to read artifact descriptor for net.kolotyluk.windows.elevate:elevate-common:dll:0.0.21-SNAPSHOT: Could not find artifact net.kolotyluk.windows:csharp-windows-elevate:pom:0.0.21-SNAPSHOT in local-nexus (http://localhost:8081/nexus/content/groups/public) - [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
AW: AW: Can't compile a library
The extensions lets the plugin hook in earlier and add packaging types and corresponding lifecycle maps (means map initialize, compile, deploy, ++ to a set of plugins) -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Montag, 7. April 2014 19:17 An: npanday-users@incubator.apache.org Betreff: Re: AW: Can't compile a library Thanks, that did the trick. Now I feel stupid because I had extensionstrue/extensions there in the first place, but commented it out because I did not understand what it was used for. Cheers, Eric On 4/7/2014 5:36 AM, Lars Corneliussen // Zen wrote: http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/plu gins/m aven-compile-plugin/usage.html
AW: Maven cannot see my DLL artifact
You need to have the compile-plugin with extension=true configured also when resolving dependencies It contains the mapping from dotnet-library to .dll - and also some logic for resolving gac-licenses, ++ Ist hat done? -Ursprüngliche Nachricht- Von: Eric Kolotyluk [mailto:eric.koloty...@gmail.com] Gesendet: Montag, 7. April 2014 23:02 An: maven users; npanday-users@incubator.apache.org Betreff: Re: Maven cannot see my DLL artifact OK, I found a solution. Instead of dependency groupIdnet.kolotyluk.windows.elevate/groupId artifactIdelevate-common/artifactId version0.0.21-SNAPSHOT/version typedotnet-library/type /dependency I need to do dependency groupIdnet.kolotyluk.windows.elevate/groupId artifactIdelevate-common/artifactId version0.0.21-SNAPSHOT/version typedotnet-library/type scopesystem/scope systemPathC:\Users\Eric\.m2\repository\net\kolotyluk\windows\elevate\eleva te-common\0.0.21-SNAPSHOT\elevate-common-0.0.21-SNAPSHOT.dll/systemPath /dependency Not sure if that is the intended design for NPanday and .Net artifacts. Cheers, Eric On 4/7/2014 11:34 AM, Eric Kolotyluk wrote: I cannot seem to get Maven to see my dll artifact. I have read https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolution Exception I can see it in my local repository, but Maven seems to be ignoring my local repository, even though there is no LocalRepositoryNotAccessibleException I can see it in my nexus repository, and Maven is complaining it cannot find the artifact there. If I delete the artifact from my local repository, Maven has no trouble downloading the metadata and pom, but for some reason it cannot see the dll artifact. /*Is Maven somehow choking on the fact that my artifact is a dll, and not a jar, or something else?*/ I remember fighting with problems like this in the past, but I cannot remember how I resolved them. Cheers, Eric D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\ele vatemvn test [INFO] Scanning for projects... [INFO] [INFO] -- -- [INFO] Building elevate.exe 0.0.21-SNAPSHOT [INFO] -- -- Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml Downloaded: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml (2 KB at 6.4 KB/sec) Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-2014040 7.175953-1.pom Downloaded: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-2014040 7.175953-1.pom (10 KB at 237.8 KB/sec) Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/csharp-windows-elevate/0.0.21-SNAPSHOT/maven-metadata.xml Downloading: http://localhost:8081/nexus/content/groups/public/net/kolotyluk/window s/csharp-windows-elevate/0.0.21-SNAPSHOT/csharp-windows-elevate-0.0.21 -SNAPSHOT.pom [INFO] -- -- [INFO] BUILD FAILURE [INFO] -- -- [INFO] Total time: 2.505s [INFO] Finished at: Mon Apr 07 11:00:11 PDT 2014 [INFO] Final Memory: 32M/1963M [INFO] -- -- [ERROR] Failed to execute goal on project elevate-exe: Could not resolve dependencies for project net.kolotyluk.windows.elevate:elevate-exe:dotnet-executable:0.0.21-SNAPSHOT: Failed to collect dependencies at net.kolotyluk.windows.elevate:elevate-common:dll:0.0.21-SNAPSHOT: Failed to read artifact descriptor for net.kolotyluk.windows.elevate:elevate-common:dll:0.0.21-SNAPSHOT: Could not find artifact net.kolotyluk.windows:csharp-windows-elevate:pom:0.0.21-SNAPSHOT in local-nexus (http://localhost:8081/nexus/content/groups/public) - [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/DependencyResolutionE xception
Re: Nuget package support
Exactly. Actually, I think we deploy all of them as SNAPSHOTs currently - which is a bug, IMHO… no dependency section I think neither nunit.framework nor FluentAssertions has any dependencies... Am 03.12.2013 um 09:39 schrieb Tom Leung tom.le...@netage.com.hk: I got the following positive result: C:\work\npanday\importermvn 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; modelVersion4.0.0/modelVersion groupIdNUnit/groupId artifactIdnunit.framework/artifactId version2.6.0/version packagingdotnet-library/packaging nameNUnit :: nunit.framework/name descriptionNUnit is a unit-testing framework for all .Net languages with a strong TDD focus./description urlhttp://nunit.org/url licenses license urlhttp://nunit.org/nuget/license.html/url /license /licenses developers developer nameCharlie Poole/name /developer /developers build finalNamenunit.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 idreleases/id nameNetage Releases Repository/name urlhttp:///content/repositories/releases//url /repository snapshotRepository idsnapshots/id nameNetage Snapshots Repository/name urlhttp:///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
Re: Nuget package support
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-package-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-incubating-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/MojoExecutionException -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 idikas-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/plugins/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; modelVersion4.0.0/modelVersion artifactIdThirdparty/artifactId version1-SNAPSHOT/version packagingdotnet-library-importer/packaging build plugins plugin groupIdorg.apache.npanday.plugins/groupId artifactIdlibrary-importer-maven-plugin/artifactId version1.5.0-incubating
Re: declaring system dependencies
Hi, this should also work with typedotnet-gac/type or gac_32 dependency groupIdSystem.Web.Routing/groupId artifactIdSystem.Web.Routing/artifactId version4.0.0.0/version typegac_msil4/type classifier31bf3856ad364e35/classifier /dependency Am 25.03.2013 um 19:12 schrieb David Durham david.durham...@gmail.com: Looks like I can do this: dependency groupIdmono/groupId artifactIdSystem.Web/artifactId version2.0.0.0/version typedotnet-library/type scopesystem/scope systemPath/usr/lib/mono/2.0/System.Web.dll/systemPath /dependency And I guess I put these in profiles activated by platform so that I can build on linux and windows. This is not ideal, but maybe not all that bad. I'll post my profiles if it get them working. -Dave On Mon, Mar 25, 2013 at 12:59 PM, David Durham david.durham...@gmail.com wrote: I believe I've successfully declared a dependency to log4net, as mentioned in a previous email. I have a pom entry like so: dependencies dependency groupIdlog4net/groupId artifactIdlog4net/artifactId version1.2.11/version typedotnet-library/type /dependency /dependencies And I ran a command like this: [ddurham@dfwddurham lib]$ mvidn log4net.dll log4net log4net 1.2.11 dll [ddurham@dfwddurham lib]$ cat ~/bin/mvidn mvn install:install-file -Dfile=log4net.dll \ -DgroupId=log4net \ -DartifactId=log4net \ -Dversion=1.2.11 \ -Dpackaging=dll This caused a maven error about the missing log4net dependency to go away. I am not facing an error about missing System dependencies. For instance: The type or namespace name `IHttpHandler' does not exist in the namespace `System.Web'. Are you missing an assembly reference? I have added the System.Web reference to my project, which did not resolve the issue. Do I need to declare a scopesystem/scope dependency for System.Web to my pom file? I have search docs and the web trying to find an example of this and haven't found anything. Leads me to believe that the issue is something else. Any ideas? Thanks, Dave
Re: was the npanday.plugin.install.FileInstallerMojo removed from 1.5.0-incubating-snapshot
good to see you answering your questions :( i'm now using the library-importer-plugin with nuget - but before that i usually generated poms in a groovy script and then installed them… i have plans to extend the library-importer-plugin to also pick up local dlls - but haven't found time for that yet... Am 25.03.2013 um 18:30 schrieb David Durham david.durham...@gmail.com: Looks like this is what I want: $ cat ~/bin/mvidn mvn install:install-file -Dfile=$1 \ -DgroupId=$2 \ -DartifactId=$3 \ -Dversion=$4 \ -Dpackaging=$5 $ mvidn log4net.dll log4net log4net 1.2.11 dll On Mon, Mar 25, 2013 at 12:19 PM, David Durham david.durham...@gmail.com wrote: Is there an example for using the mvn install-file plugin to install a dotnet-library? This documentation appears to be for the 1.4 release. http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/guide/advanced/dependencies.html -Dave On Fri, Mar 22, 2013 at 8:28 PM, Brett Porter br...@apache.org wrote: Hi David, On 22/03/2013, at 8:15 PM, David Durham david.durham...@gmail.com wrote: The documentation seems to reference it, but I don't see this file in the repo? http://incubator.apache.org/npanday/docs/1.4.0-incubating/guide/advanced/dependencies.html If the FileInstallerMojo is gone, how do we install libraries to our local repo? That was removed as part of the ongoing work for NPANDAY-231. It may be a bit unstable. You should find that the conventional Maven install-file plugin is sufficient if everything else is working file for you. Are there 1.5.0-incubating docs out in public somewhere, or do I have to generate them from the project? A version is generated here from time to time: http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/ The latest can also be accessed from the Jenkins working copy, if it hasn't been deleted at that particular time: https://builds.apache.org/view/M-R/view/NPanday/job/NPanday-docs/ws/target/jenkins-site/index.html Regards, Brett -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter
Re: dependencyManagement section can cause build breakage
It should be done on the trunk. You might want to try out 1.5.0-incubating-SNAPSHOT from http://vmbuild.apache.org/archiva/repository/npanday-snapshots/ Happy to get some feedback on how stable it is; You need to do a clean before switching, as source files are not copied to the target anymore… _ Lars Am 11.05.2012 um 05:48 schrieb Brett Porter: Yep - that's a known issue. Lars has been doing some work in removing the problematic code, so with any luck it might be possible in the next release. - Brett On 09/05/2012, at 11:50 PM, Simone Tripodi wrote: Hi all guys, I just stumbled in the case that in a multi-module project, npanday is not able to resolve correctly *transitive* dependencies that are declared in the dependencyManagement section. Is that a known situation or a bug has to be filled? Unfortunately the code is a legacy project of the company where I work, otherwise I would have attached the usecase... TIA, -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter
Re: AssemblyInfo
Hi Matthias, thanks for submitting the issues. Also have a look at https://issues.apache.org/jira/browse/NPANDAY-475 _ Lars Am 10.01.2012 um 11:07 schrieb Matthias Wessendorf: using the assemblyInfo @parameter, like: assemblyInfo key1FOO/key1 key2FOO/key2 /assemblyInfo gives me the following: [assembly: CustomStringAttribute(key1, FOO)] [assembly: CustomStringAttribute(key2, FOO)] Not quite what I want - On Tue, Jan 10, 2012 at 10:41 AM, Matthias Wessendorf mat...@apache.org wrote: Hi, is there a way to easily append (desired) attributes to the generated AssemblyInfo.cs file ? I'd like to have the following attributes in there: [assembly: InternalsVisibleTo(Mocks)] [assembly: InternalsVisibleTo(MockObjects)] Thx! -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: AssemblyInfo
You can have as many AssemblyInfo.cs as you want; the actual file name doesn't matter. So you can just put additional assembly attributes in a different file, which then will be compiled, but let untouched by NPanday. _ Lars Am 10.01.2012 um 13:40 schrieb Brett Porter: I don't think that's possible, from my understanding of the code. You could probably supply a custom AssemblyInfo.cs generated/modified by hand. Otherwise, DefaultAssemblyInfoMarshaller would need to be improved to support custom/missing types. - Brett On 10/01/2012, at 9:07 PM, Matthias Wessendorf wrote: using the assemblyInfo @parameter, like: assemblyInfo key1FOO/key1 key2FOO/key2 /assemblyInfo gives me the following: [assembly: CustomStringAttribute(key1, FOO)] [assembly: CustomStringAttribute(key2, FOO)] Not quite what I want - On Tue, Jan 10, 2012 at 10:41 AM, Matthias Wessendorf mat...@apache.org wrote: Hi, is there a way to easily append (desired) attributes to the generated AssemblyInfo.cs file ? I'd like to have the following attributes in there: [assembly: InternalsVisibleTo(Mocks)] [assembly: InternalsVisibleTo(MockObjects)] Thx! -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf -- Brett Porter br...@apache.org http://brettporter.wordpress.com/
Re: Problem when referencing some System.* assemblies (.net 4.0)
it is the right thing to do, but NPanday should better find out by combination of gac and target framework which gac to use _ Mobil versendet. Am 18.11.2011 um 14:53 schrieb Callixte Cauchois ccauch...@virtuoz.com: I looked in the code and found in CompilerContextImpl.java that it should work if the type is set to gac_msil4. So I modified my pom.xml to set this type and it works. I don't know if it is the right way to solve it though. On Fri, Nov 18, 2011 at 12:31 PM, Callixte Cauchois ccauch...@virtuoz.comwrote: Hi people, I have imported a project that references Entity framework from Microsoft which is present in System.Data.Entity.dll which is installed on my machine (in GAC for version 3.5 and in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0 for v4.0 which is the one that is referenced). When I try to compile (using mvn compile or through the VS2010 add in) I get the following error: *c:\zvn\unstable\Common\Tools\target\18122544\ZEntityHelper.cs(3,19): error CS0234: The type or namespace name 'EntityClient' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)* *c:\zvn\unstable\Common\Tools\target\18122544\ZEntityHelper.cs(4,19): error CS0234: The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)* as if it cannot find the referenced assembly. If I remove the reference and re-add it, I get a dependency added to my pom.xml: dependency groupIdSystem.Data.Entity/groupId artifactIdSystem.Data.Entity/artifactId version4.0.0.0/version typegac_msil/type classifierB77A5C561934E089/classifier /dependency and then the following error: *[ERROR] Failed to execute goal org.apache.npanday.plugins:maven-compile-plugin:1.4.0-incubating:initialize (default-initialize) on project Common.Tools: NPANDAY-089-000: NPANDAY-180-020: Problem in resolving artifact: Artifact = System.Data.Entity:System.Data.Entity:gac_msil:B77A5C561934E089:4.0.0.0, Message =* *Failure to find System.Data.Entity:System.Data.Entity:dll:B77A5C561934E089:4.0.0.0 in http://localhost:8080/archiva/repository/internal/ was cached in the local repository, resolution will not be reattempted until the update interval of internal has elapsed or updates are forced* *[ERROR]* *[ERROR] Try downloading the file manually from the project website.* *[ERROR]* *[ERROR] Then, install it using the command:* *[ERROR] mvn install:install-file -DgroupId=System.Data.Entity -DartifactId=System.Data.Entity -Dversion=4.0.0.0 -Dclassifier=B77A5C561934E089 -Dpackaging=gac_msil -Dfile=/path/to/file* *[ERROR]* *[ERROR] Alternatively, if you host your own repository you can deploy the file there:* *[ERROR] mvn deploy:deploy-file -DgroupId=System.Data.Entity -DartifactId=System.Data.Entity -Dversion=4.0.0.0 -Dclassifier=B77A5C561934E089 -Dpackaging=gac_msil -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]* *[ERROR]* *[ERROR]* *[ERROR] System.Data.Entity:System.Data.Entity:gac_msil:4.0.0.0* *[ERROR]* *[ERROR] from the specified remote repositories:* *[ERROR] internal (http://localhost:8080/archiva/repository/internal/, releases=true, snapshots=false),* *[ERROR] external (http://localhost:8080/archiva/repository/external/, releases=true, snapshots=false),* *[ERROR] snapshots (http://localhost:8080/archiva/repository/snapshots/, releases=true, snapshots=false),* *[ERROR] npanday (http://localhost:8080/archiva/repository/npanday/, releases=true, snapshots=false),* *[ERROR] npanday.repo.3 ( http://localhost:8080/archiva/repository/external/, releases=true, snapshots=false),* *[ERROR] npanday.repo.2 ( http://localhost:8080/archiva/repository/snapshots/, releases=true, snapshots=false),* *[ERROR] npanday.repo.1 (http://localhost:8080/archiva/repository/npanday/, releases=true, snapshots=false),* *[ERROR] npanday.repo.0 ( http://localhost:8080/archiva/repository/internal/, releases=true, snapshots=false),* *[ERROR] central (http://repo1.maven.org/maven2, releases=true, snapshots=false)* again, not finding the assembly in the gac and trying to download it from my repositories. I have this same issue with other System.something assemblies. Is there a way to solve this other than uploading every one of them on a repository? Thanks.
NPanday Visibility
Hi guys, I got a comment on my blog: Hi, I think, it’s a great project! Please, make this project more visible, we are using Maven for Java and we searched for “.net dependency management”. All we found was some alpha projects at codplex (refix and crude have around 30 downloads). After an extensive search we have found NuGet and OpenWrap. I have found this project completely accidentally!!! It would be really useful to get least some google hits to npanday on the first page…. Any concrete ideas on how to make NPanday more visible? _ Lars
Re: npanday with maven 3 issues
hi, I usually use maven 3, but not with gac references. I think for maven 2 we intercept the right places to help resolving the artifacts from gac; maybe we have to hook it up differently for maven 3 (google IOC) for building the npanday trunk, first run the mv3-bootstrap bat in npanday trunk root (don't remember the full file name); this is necessary, since mvn3 can't resolve plugin deps within a reactor build - they have to be in the repo. hope that helps _ Lars -- Message sent from mobile device Am 07.09.2011 um 16:04 schrieb Sergio Rupena sergio.rup...@gmail.com: Hi, It looks like npanday 1.4.1-INCUBATING does not fully support maven 3 (3.0.3). For GAC dependencies (type = gac_msil) I would define a dependency in the pom as follows: dependency groupIdMicrosoft/groupId artifactIdSystem.ComponentModel.DataAnnotations/artifactId version3.5.0.0/version classifier31bf3856ad364e35/classifier typegac_msil/type /dependency I don't have the dependency in my repository and when I compile with maven 2 everything works fine. However with maven 3, I get an error that maven is not capable of finding the pom in any repository. Is this a maven or an npanday related issue? I had to upload the mentioned dll from GAC to my repository in order to make my build. Maybe I am doing something wrong. Anyone tried to have gac_msil dependencies and build with maven 3 ? Also building npanday itself with maven 3 did not work for me. Any plans for stronger maven 3 support? Best regards, Sergio
Re: Trouble Getting Going with 1.4.0
Hi Eric, I've been struggling with NPanday for hours just because I want to try to add a dependency to log4net, and I still cannot see any light at the end of the tunnel. It is so much easier to use the Sonatype plugin for Eclipse. I'm really sorry for the trouble you encounter. And we appreciate your interest in NPanday. Though, you can't really compare NPanday and Visual Studio with Maven and Eclipse (yet). Allthough NPanday is in use by many, it is far from the broad adoption Maven has in the Java space. Hopefully this will not stay like it is. That is, what we work for. Especially the NPanday VS Add-in serves very specific tasks (Project import, Reference sync). We hope to engage more users, contributors and committers to help us build a better NPanday. I personally joined the project in late 2010, because I belive this is the way to go for building in .NET. But we have still much work to do. So far, it's been worth it. By the way, the file npanday-repository-builder-1.4.0-incubating-bin.tar.gz had no npanday directory in it, so I'm using the one from the 1.3.1 release. As liit already mentioned, we changed the group id to org.apache.npanday. This change was nessecary in order to comply with apache rules and to get npanday into Maven Central. Cheers, Eric On 2011-05-08 6:37 PM, Deng Ching wrote: Hi Eric, The message from the pop-up was just a warning, so you should still be able to add an artifact. What happens afterwards when you click OK? The settings.xml file btw, is a configuration file used by Maven where you can set the repositories that you want Maven to look for artifacts/dependencies of your project when you build it. It is also used by NPanday in a similar way during project import, artifact re-sync and when building your project. Thanks, Deng On Mon, May 9, 2011 at 9:23 AM, Eric Kolotyluk eric.koloty...@gmail.com mailto:eric.koloty...@gmail.com wrote: I used * npanday-repository-builder-1.4.0-incubating-bin.tar.gz * npanday-installer-1.4.0-incubating.msi to set up NPanday, and I was able to set up my POMs ok. I'm trying to get NPanday to work with Visual Studio 2010, but when I try to add and artifact I get Does anyone have any ideas on how to fix this? Cheers, Eric
Re: Trouble Getting Going with 1.4.0
Am 09.05.11 05:00, schrieb Eric Kolotyluk: OK, I added dependency groupIdlog4net/groupId artifactIdlog4net/artifactId version1.2.10.0-SNAPSHOT/version nameLog for .Net/name /dependency Just interested: Where is this dependency located? Do we have it uploaded somewhere? Did you build and upload it somewhere? to my POM, but if I try to do a build I get Error in Starting Maven Process: Value cannot be null. Parameter name: path1 Could you provide a stack trace? I still cannot believe how hard this is to get working. Does anyone have any ideas on what I should try next. Cheers, Eric On 2011-05-08 7:32 PM, Eric Kolotyluk wrote: Please see below... On 2011-05-08 7:22 PM, Adelita Padilla wrote: Hi Eric, On Mon, May 9, 2011 at 10:00 AM, Eric Kolotyluk eric.koloty...@gmail.com mailto:eric.koloty...@gmail.com wrote: OK, there was no settings.xml in my ~/.m2 so I added the default one. I have been using Maven and m2e for months never needing to do that, so I don't understand why NPanday needs it there? I would consider that a bug. Now when I try to add an artifact it complains How am I supposed to know where that is? You can add that dependency by configuring the remote repository. Here's the documentation for that - http://incubator.apache.org/npanday/docs/1.4.0-incubating/guide/vs/configureRepository.html Yes, I found that page already, but it does not give me a URL for any remote repositories. How am I supposed to know where they are? For example, how am I supposed to know how to find log4net? I've been struggling with NPanday for hours just because I want to try to add a dependency to log4net, and I still cannot see any light at the end of the tunnel. It is so much easier to use the Sonatype plugin for Eclipse. By the way, the file npanday-repository-builder-1.4.0-incubating-bin.tar.gz had no npanday directory in it, so I'm using the one from the 1.3.1 release. The npanday directory is located in /repository/releases/org/apache/npanday. A, that's different than 1.3.1. Thanks. Cheers, Eric On 2011-05-08 6:37 PM, Deng Ching wrote: Hi Eric, The message from the pop-up was just a warning, so you should still be able to add an artifact. What happens afterwards when you click OK? The settings.xml file btw, is a configuration file used by Maven where you can set the repositories that you want Maven to look for artifacts/dependencies of your project when you build it. It is also used by NPanday in a similar way during project import, artifact re-sync and when building your project. Thanks, Deng On Mon, May 9, 2011 at 9:23 AM, Eric Kolotyluk eric.koloty...@gmail.com mailto:eric.koloty...@gmail.com wrote: I used * npanday-repository-builder-1.4.0-incubating-bin.tar.gz * npanday-installer-1.4.0-incubating.msi to set up NPanday, and I was able to set up my POMs ok. I'm trying to get NPanday to work with Visual Studio 2010, but when I try to add and artifact I get Does anyone have any ideas on how to fix this? Cheers, Eric Thanks, -- liit
Re: cannot get transitive dependencies working
Hi, A transitive dependency is a dependeny of your dependency. If you reference a class of that transitive dependency, it is not a dependency of your dependency anymore. It's now also your direct dependency and hence SHOULD be declared in the POM. _ Lars Am 05.04.11 18:32, schrieb Brett Porter: You're correct, and I think it is behaving as you expect. What I'm trying to be clear on (which is sometimes hard without pictures): Let's say B depends on C. Let's say your current project's source code uses classes from all of A, B and C. You should declare all 3 dependencies, because you need to compile against them. You shouldn't rely on not declaring C because B will bring it in - because B might later change not to, or use a different version. Now, if you just use A, B - you only compile against A, B, but you run against A, B, C (because B needs C to run). The problem in Java is if C contains an abstract class implemented in B, you need to compile against C, even if you only use classes from A and B. :) On 06/04/2011, at 2:11 AM, Khai Do wrote: Hi Brett. Maybe I don't understand. What do you mean when you say .NET is not burdened the same way? As a best practice (for java projects) I follow the pattern of only referencing top level modules and letting maven resolve all the transitive dependencies for me on compile. I believe this is the definition of dependency management. It seems like your suggesting that .NET is not build the same way and I shouldn't follow this pattern for npanday builds? Wouldn't this break maven's dependency management feature? -Khai -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter
Re: NPanday Exception
-- Message sent from mobile device Am 18.03.2011 um 03:54 schrieb Adelita Padilla apadi...@maestrodev.com: Hi Eric, Did the Addin file got generated in this location - C:\Users\{user.name}\Documents\Visual Studio 2010\AddIns? If there's an addin file, can you check if it contains this snippet? HostApplication NameMicrosoft Visual Studio/Name Version10.0/Version /HostApplication Also, where did you download the MSI installer? Thanks, liit On Fri, Mar 18, 2011 at 6:10 AM, Eric Kolotyluk eric.koloty...@gmail.comwrote: I am using Windows 7 Professional x64. My VS 2010 info is: Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel Installed Version: Professional Microsoft Office Developer Tools 01018-532-2002181-70321 Microsoft Office Developer Tools Microsoft Visual Basic 2010 01018-532-2002181-70321 Microsoft Visual Basic 2010 Microsoft Visual C# 2010 01018-532-2002181-70321 Microsoft Visual C# 2010 Microsoft Visual C++ 2010 01018-532-2002181-70321 Microsoft Visual C++ 2010 Microsoft Visual F# 2010 01018-532-2002181-70321 Microsoft Visual F# 2010 Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70321 Microsoft Visual Studio 2010 Team Explorer Microsoft Visual Web Developer 2010 01018-532-2002181-70321 Microsoft Visual Web Developer 2010 CodeSmith Generator 5.3 CodeSmith Tools Visual Studio Add-in Package Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319 Microsoft Visual Studio 2010 SharePoint Developer Tools SAP Crystal Reports for Visual Studio 2010 SAP Crystal Reports for Visual Studio 2010 Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2008 Whole Tomato Software, Inc. VMDebugger For more information about VMware Inc, see their website at http://www.vmware.com Copyright (c) 2010 VMware, Inc. My environment PATH is %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Perforce;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.5\bin;%NUNIT_HOME%\bin;C:\Program Files (x86)\CodeSmith\v5.3\;C:\Program Files\Windows Imaging\;%MAVEN_HOME%\bin Attached is a screen shot of the Add-in Manager. Cheers, Eric On Wed, Mar 16, 2011 at 11:44 PM, Josimpson Ocaba joc...@maestrodev.comwrote: On Thu, Mar 17, 2011 at 1:25 PM, Eric Kolotyluk eric.koloty...@gmail.com wrote: Yes, I used the msi for installation. So far VS 2005 seems to work, but I am an NPanday newbie. I'm still a Maven newbie for that matter :-) I don't have VS 2008 so I cannot test that. When I used the Windows Control Panel to uninstall NPanday, I could not find the addin afterward, or anything else related to the existence of NPanday. Do you mean: are all of the assemblies in the GAC after installing NPanday? I did my best to set up the appropriate environment variables including the PATH, but that is something I could double-check. I am not sure what you mean by: There are intermittent with respect to the orders of the frameworks. The intermittent error mostly comes up in project types that are using the 3.5 framework. If you don't mind can you give us information on what type of OS you are using and what type of Visual Studios you have installed (with service pack?) and also a copy of your environment path. On the reinstall of NPanday is the Add In also not found under Tools - Add-in Manager? Cheers, Eric On 2011-03-16 5:31 PM, Josimpson Ocaba wrote: Hi Eric, Trying to clear things up for my understanding. You used the msi right and NPanday is working fine for VS2005 VS2008. On your uninstall of npanday did the addin remain? Also are all of the microsoft assemblies already installed in the GAC? Did you also update your Path Environment as mentioned in the docs? There are intermittent with respect to the orders of the frameworks. Thanks, -- Joe Ocaba - Original Message - From: Eric Kolotyluk eric.koloty...@gmail.com To: Brett Porter br...@apache.org Cc: npanday-users@incubator.apache.org Sent: Thursday, March 17, 2011 7:09:49 AM Subject: Re: NPanday Exception So I uninstalled and reinstalled NPanday, but I have the same problem with VS 2010 - so it seems to be 2010 related. The plugin seems to work for VS 2005, so I'll experiment with that. In the end I really need this to work in VS 2010 as
Re: NPanday Exception
-- Message sent from mobile device Am 18.03.2011 um 03:54 schrieb Adelita Padilla apadi...@maestrodev.com: Hi Eric, Did the Addin file got generated in this location - C:\Users\{user.name}\Documents\Visual Studio 2010\AddIns? If there's an addin file, can you check if it contains this snippet? HostApplication NameMicrosoft Visual Studio/Name Version10.0/Version /HostApplication Also, where did you download the MSI installer? Thanks, liit On Fri, Mar 18, 2011 at 6:10 AM, Eric Kolotyluk eric.koloty...@gmail.comwrote: I am using Windows 7 Professional x64. My VS 2010 info is: Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel Installed Version: Professional Microsoft Office Developer Tools 01018-532-2002181-70321 Microsoft Office Developer Tools Microsoft Visual Basic 2010 01018-532-2002181-70321 Microsoft Visual Basic 2010 Microsoft Visual C# 2010 01018-532-2002181-70321 Microsoft Visual C# 2010 Microsoft Visual C++ 2010 01018-532-2002181-70321 Microsoft Visual C++ 2010 Microsoft Visual F# 2010 01018-532-2002181-70321 Microsoft Visual F# 2010 Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70321 Microsoft Visual Studio 2010 Team Explorer Microsoft Visual Web Developer 2010 01018-532-2002181-70321 Microsoft Visual Web Developer 2010 CodeSmith Generator 5.3 CodeSmith Tools Visual Studio Add-in Package Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319 Microsoft Visual Studio 2010 SharePoint Developer Tools SAP Crystal Reports for Visual Studio 2010 SAP Crystal Reports for Visual Studio 2010 Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2008 Whole Tomato Software, Inc. VMDebugger For more information about VMware Inc, see their website at http://www.vmware.com Copyright (c) 2010 VMware, Inc. My environment PATH is %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Perforce;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.5\bin;%NUNIT_HOME%\bin;C:\Program Files (x86)\CodeSmith\v5.3\;C:\Program Files\Windows Imaging\;%MAVEN_HOME%\bin Attached is a screen shot of the Add-in Manager. Cheers, Eric On Wed, Mar 16, 2011 at 11:44 PM, Josimpson Ocaba joc...@maestrodev.comwrote: On Thu, Mar 17, 2011 at 1:25 PM, Eric Kolotyluk eric.koloty...@gmail.com wrote: Yes, I used the msi for installation. So far VS 2005 seems to work, but I am an NPanday newbie. I'm still a Maven newbie for that matter :-) I don't have VS 2008 so I cannot test that. When I used the Windows Control Panel to uninstall NPanday, I could not find the addin afterward, or anything else related to the existence of NPanday. Do you mean: are all of the assemblies in the GAC after installing NPanday? I did my best to set up the appropriate environment variables including the PATH, but that is something I could double-check. I am not sure what you mean by: There are intermittent with respect to the orders of the frameworks. The intermittent error mostly comes up in project types that are using the 3.5 framework. If you don't mind can you give us information on what type of OS you are using and what type of Visual Studios you have installed (with service pack?) and also a copy of your environment path. On the reinstall of NPanday is the Add In also not found under Tools - Add-in Manager? Cheers, Eric On 2011-03-16 5:31 PM, Josimpson Ocaba wrote: Hi Eric, Trying to clear things up for my understanding. You used the msi right and NPanday is working fine for VS2005 VS2008. On your uninstall of npanday did the addin remain? Also are all of the microsoft assemblies already installed in the GAC? Did you also update your Path Environment as mentioned in the docs? There are intermittent with respect to the orders of the frameworks. Thanks, -- Joe Ocaba - Original Message - From: Eric Kolotyluk eric.koloty...@gmail.com To: Brett Porter br...@apache.org Cc: npanday-users@incubator.apache.org Sent: Thursday, March 17, 2011 7:09:49 AM Subject: Re: NPanday Exception So I uninstalled and reinstalled NPanday, but I have the same problem with VS 2010 - so it seems to be 2010 related. The plugin seems to work for VS 2005, so I'll experiment with that. In the end I really need this to work in VS 2010 as
Re: NPanday Exception
sorry for the two mails. i hit the send button two times unintentionally while trying to adjust the recipients on my iphone mail client. just wantes to say: get on skype, share the screen, document the solution. that would save you both some time :) -- Message sent from mobile device Am 18.03.2011 um 03:54 schrieb Adelita Padilla apadi...@maestrodev.com: Hi Eric, Did the Addin file got generated in this location - C:\Users\{user.name}\Documents\Visual Studio 2010\AddIns? If there's an addin file, can you check if it contains this snippet? HostApplication NameMicrosoft Visual Studio/Name Version10.0/Version /HostApplication Also, where did you download the MSI installer? Thanks, liit On Fri, Mar 18, 2011 at 6:10 AM, Eric Kolotyluk eric.koloty...@gmail.comwrote: I am using Windows 7 Professional x64. My VS 2010 info is: Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.0.30319 RTMRel Installed Version: Professional Microsoft Office Developer Tools 01018-532-2002181-70321 Microsoft Office Developer Tools Microsoft Visual Basic 2010 01018-532-2002181-70321 Microsoft Visual Basic 2010 Microsoft Visual C# 2010 01018-532-2002181-70321 Microsoft Visual C# 2010 Microsoft Visual C++ 2010 01018-532-2002181-70321 Microsoft Visual C++ 2010 Microsoft Visual F# 2010 01018-532-2002181-70321 Microsoft Visual F# 2010 Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70321 Microsoft Visual Studio 2010 Team Explorer Microsoft Visual Web Developer 2010 01018-532-2002181-70321 Microsoft Visual Web Developer 2010 CodeSmith Generator 5.3 CodeSmith Tools Visual Studio Add-in Package Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.30319 Microsoft Visual Studio 2010 SharePoint Developer Tools SAP Crystal Reports for Visual Studio 2010 SAP Crystal Reports for Visual Studio 2010 Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2008 Whole Tomato Software, Inc. VMDebugger For more information about VMware Inc, see their website at http://www.vmware.com Copyright (c) 2010 VMware, Inc. My environment PATH is %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Perforce;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server 5.5\bin;%NUNIT_HOME%\bin;C:\Program Files (x86)\CodeSmith\v5.3\;C:\Program Files\Windows Imaging\;%MAVEN_HOME%\bin Attached is a screen shot of the Add-in Manager. Cheers, Eric On Wed, Mar 16, 2011 at 11:44 PM, Josimpson Ocaba joc...@maestrodev.comwrote: On Thu, Mar 17, 2011 at 1:25 PM, Eric Kolotyluk eric.koloty...@gmail.com wrote: Yes, I used the msi for installation. So far VS 2005 seems to work, but I am an NPanday newbie. I'm still a Maven newbie for that matter :-) I don't have VS 2008 so I cannot test that. When I used the Windows Control Panel to uninstall NPanday, I could not find the addin afterward, or anything else related to the existence of NPanday. Do you mean: are all of the assemblies in the GAC after installing NPanday? I did my best to set up the appropriate environment variables including the PATH, but that is something I could double-check. I am not sure what you mean by: There are intermittent with respect to the orders of the frameworks. The intermittent error mostly comes up in project types that are using the 3.5 framework. If you don't mind can you give us information on what type of OS you are using and what type of Visual Studios you have installed (with service pack?) and also a copy of your environment path. On the reinstall of NPanday is the Add In also not found under Tools - Add-in Manager? Cheers, Eric On 2011-03-16 5:31 PM, Josimpson Ocaba wrote: Hi Eric, Trying to clear things up for my understanding. You used the msi right and NPanday is working fine for VS2005 VS2008. On your uninstall of npanday did the addin remain? Also are all of the microsoft assemblies already installed in the GAC? Did you also update your Path Environment as mentioned in the docs? There are intermittent with respect to the orders of the frameworks. Thanks, -- Joe Ocaba - Original Message - From: Eric Kolotyluk eric.koloty...@gmail.com To: Brett Porter br...@apache.org Cc: npanday-users@incubator.apache.org Sent: Thursday, March 17, 2011 7:09:49 AM Subject: Re: NPanday