Re: AW: Can't compile a library

2014-04-07 Thread Eric Kolotyluk

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/plugins/m
aven-compile-plugin/usage.html




Re: Maven cannot see my DLL artifact

2014-04-07 Thread Eric Kolotyluk

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\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\elevatemvn 
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: Can't compile a library

2014-04-07 Thread Lars Corneliussen // Zen
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

2014-04-07 Thread Lars Corneliussen // Zen
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: AW: Maven cannot see my DLL artifact

2014-04-07 Thread Eric Kolotyluk
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/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