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> <groupId>net.kolotyluk.windows.elevate</groupId> <artifactId>elevate-common</artifactId> <version>0.0.21-SNAPSHOT</version> <type>dotnet-library</type> </dependency> I need to do <dependency> <groupId>net.kolotyluk.windows.elevate</groupId> <artifactId>elevate-common</artifactId> <version>0.0.21-SNAPSHOT</version> <type>dotnet-library</type> <scope>system</scope> <systemPath>C:\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 > vate>mvn > 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 > >