You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-users@incubator.apache.org by Eric Kolotyluk <er...@gmail.com> on 2014/04/07 00:31:55 UTC

Can't compile a library

When I use

<groupId>net.kolotyluk.windows.elevate</groupId>
<artifactId>elevate-common</artifactId>
<version>0.0.21-SNAPSHOT</version>
<packaging>library</packaging>

I get

D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\elevate-common>mvn 
test
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project 
net.kolotyluk.windows.elevate:elevate-common:0.0.21-SNAPSHOT 
(D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\elevate-common\pom.xml) 
has 1 error
[ERROR]     Unknown packaging: library @ line 19, column 14
[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/ProjectBuildingException

I have also tried

<groupId>net.kolotyluk.windows.elevate</groupId>
<artifactId>elevate-common</artifactId>
<version>0.0.21-SNAPSHOT</version>
<packaging>dotnet-library</packaging>

but that does not work either.

How does one build a library with NPanday?

Cheers, Eric

AW: AW: Can't compile a library

Posted by Lars Corneliussen // Zen <me...@lcorneliussen.de>.
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.kolotyluk@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

     <extensions>true</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



Re: AW: Can't compile a library

Posted by Eric Kolotyluk <er...@gmail.com>.
Thanks, that did the trick.

Now I feel stupid because I had

     <extensions>true</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


AW: Can't compile a library

Posted by Lars Corneliussen // Zen <me...@lcorneliussen.de>.
You need to configure the maven-compile-plugin as an extension:

http://incubator.apache.org/npanday/docs/1.5.0-incubating-SNAPSHOT/plugins/m
aven-compile-plugin/usage.html



-----Ursprüngliche Nachricht-----
Von: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com] 
Gesendet: Montag, 7. April 2014 02:32
An: npanday-users@incubator.apache.org
Betreff: Can't compile a library

When I use

<groupId>net.kolotyluk.windows.elevate</groupId>
<artifactId>elevate-common</artifactId>
<version>0.0.21-SNAPSHOT</version>
<packaging>library</packaging>

I get

D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\elevate-c
ommon>mvn
test
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR]   The project 
net.kolotyluk.windows.elevate:elevate-common:0.0.21-SNAPSHOT
(D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\elevate-
common\pom.xml)
has 1 error
[ERROR]     Unknown packaging: library @ line 19, column 14
[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/ProjectBuildingException

I have also tried

<groupId>net.kolotyluk.windows.elevate</groupId>
<artifactId>elevate-common</artifactId>
<version>0.0.21-SNAPSHOT</version>
<packaging>dotnet-library</packaging>

but that does not work either.

How does one build a library with NPanday?

Cheers, Eric