You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Kolotyluk <er...@gmail.com> on 2014/04/07 20:34:19 UTC
Maven cannot see my DLL artifact
I cannot seem to get Maven to see my dll artifact.
I have read
https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
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\elevate>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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml
Downloaded:
http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
Downloaded:
http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
(10 KB at 237.8 KB/sec)
Downloading:
http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/csharp-windows-elevate/0.0.21-SNAPSHOT/maven-metadata.xml
Downloading:
http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/DependencyResolutionException
AW: AW: Maven cannot see my DLL artifact
Posted by Lars Corneliussen // Zen <me...@lcorneliussen.de>.
Any chance to send over a zip? (Possibly on skype, if confidential) - I'm
lcorneliussen
-----Ursprüngliche Nachricht-----
Von: Eric Kolotyluk [mailto:eric.kolotyluk@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 <extension>true</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.kolotyluk@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</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
>> 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/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 and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolution
>> E
>> xception
>>
>>
>
Re: AW: Maven cannot see my DLL artifact
Posted by Eric Kolotyluk <er...@gmail.com>.
I do have <extension>true</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.kolotyluk@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
>>
>>
>
AW: Maven cannot see my DLL artifact
Posted by Lars Corneliussen // Zen <me...@lcorneliussen.de>.
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.kolotyluk@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
>
>
Re: Maven cannot see my DLL artifact
Posted by Eric Kolotyluk <er...@gmail.com>.
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\elevate-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/DependencyResolutionException
>
>
> 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\elevate>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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml
> Downloaded:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
> Downloaded:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
> (10 KB at 237.8 KB/sec)
> Downloading:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/csharp-windows-elevate/0.0.21-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/DependencyResolutionException
>
>
Re: Maven cannot see my DLL artifact
Posted by Eric Kolotyluk <er...@gmail.com>.
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\elevate-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/DependencyResolutionException
>
>
> 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\elevate>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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/maven-metadata.xml
> Downloaded:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
> Downloaded:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
> (10 KB at 237.8 KB/sec)
> Downloading:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/csharp-windows-elevate/0.0.21-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/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/DependencyResolutionException
>
>
Re: Maven cannot see my DLL artifact
Posted by Eric Kolotyluk <er...@gmail.com>.
I was referring to
Downloaded:
http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/elevate/elevate-common/0.0.21-SNAPSHOT/elevate-common-0.0.21-20140407.175953-1.pom
(10 KB at 237.8 KB/sec)
which I assumed was downloaded.
What you pointed out was that my parent POM was not in my local
repository, and that is where things were failing. After installing it
there, now things seem to work without having to use the <system> hack.
Thanks so much, I did not favor using that hack, so now my POM is more
portable.
With Maven, it is easy to get on a wild goose chase.
Cheers, Eric
On 4/7/2014 2:21 PM, Wayne Fay wrote:
>> 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.
> Are you sure it finds the pom? The error below indicates it does not.
>
>> Downloading:
>> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/csharp-windows-elevate/0.0.21-SNAPSHOT/csharp-windows-elevate-0.0.21-SNAPSHOT.pom
>> [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]
> You see how it says it is Downloading the pom file, then immediately
> fails with an error? And how you don't see messages like these as you
> do on the other files?
>> (2 KB at 6.4 KB/sec)
>> (10 KB at 237.8 KB/sec)
> I think your assumptions are incorrect. It seems Maven cannot download
> the pom. I think something else is going on and this is merely a
> symptom.
>
> PS- I saw your follow-up using system scope. I am not a fan of system
> scope, but if it gets the job done and makes you happy, then feel free
> to keep using it. Just realize your pom file (c:\Users\Eric) is
> completely not portable after this change. I predict many "but it
> works on my machine!" conversations with other developers are in your
> future... And good luck integrating with CI.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven cannot see my DLL artifact
Posted by Wayne Fay <wa...@gmail.com>.
> 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.
Are you sure it finds the pom? The error below indicates it does not.
> Downloading:
> http://localhost:8081/nexus/content/groups/public/net/kolotyluk/windows/csharp-windows-elevate/0.0.21-SNAPSHOT/csharp-windows-elevate-0.0.21-SNAPSHOT.pom
> [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]
You see how it says it is Downloading the pom file, then immediately
fails with an error? And how you don't see messages like these as you
do on the other files?
> (2 KB at 6.4 KB/sec)
> (10 KB at 237.8 KB/sec)
I think your assumptions are incorrect. It seems Maven cannot download
the pom. I think something else is going on and this is merely a
symptom.
PS- I saw your follow-up using system scope. I am not a fan of system
scope, but if it gets the job done and makes you happy, then feel free
to keep using it. Just realize your pom file (c:\Users\Eric) is
completely not portable after this change. I predict many "but it
works on my machine!" conversations with other developers are in your
future... And good luck integrating with CI.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org