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/02/26 17:46:54 UTC

Getting Started

I tried using NPanday a few years ago, but gave up because there were
just too many problems for it to actually be useful.

I am trying to give NPanday another chance, but I am once again just
running into nothing but problems. The instructions for getting started
are broken.

Is this project still active? Is there anyone maintaining it? Does
anyone have a set of getting started instructions that actually makes
sense, and has been tested?

Sincerely, Eric

Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
Well, my main pain point, as I had before years ago, is that the
documentation is way too complex, there is just too much to read, to
many steps too follow, and the steps are all over the place.

I would be happy to help with the documentation, if I actually
understood what was necessary in getting started.

The other aspect of the documentation is that there is too much of it
because not enough of the setup is automated. If more of the setup was
automated, then there would be less to document. For example, the
removing old versions narrative should be unnecessary.

Cheers, Eric

On 2/27/2014 4:34 AM, Brett Porter wrote:
> Hi Eric,
>
> We're about to start pushing for a new release, and definitely need to update the site with more up to date instructions. You can follow that on the dev list.
>
> What particular things are you bumping into, or what use case are you looking for specifically? Happy to help out here and take that feedback into the documentation.
>
> Cheers,
> Brett
>
> On 27 Feb 2014, at 4:46 am, Eric Kolotyluk <er...@gmail.com> wrote:
>
>> I tried using NPanday a few years ago, but gave up because there were
>> just too many problems for it to actually be useful.
>>
>> I am trying to give NPanday another chance, but I am once again just
>> running into nothing but problems. The instructions for getting started
>> are broken.
>>
>> Is this project still active? Is there anyone maintaining it? Does
>> anyone have a set of getting started instructions that actually makes
>> sense, and has been tested?
>>
>> Sincerely, Eric


Re: Getting Started

Posted by Brett Porter <br...@apache.org>.
Hi Eric,

We're about to start pushing for a new release, and definitely need to update the site with more up to date instructions. You can follow that on the dev list.

What particular things are you bumping into, or what use case are you looking for specifically? Happy to help out here and take that feedback into the documentation.

Cheers,
Brett

On 27 Feb 2014, at 4:46 am, Eric Kolotyluk <er...@gmail.com> wrote:

> I tried using NPanday a few years ago, but gave up because there were
> just too many problems for it to actually be useful.
> 
> I am trying to give NPanday another chance, but I am once again just
> running into nothing but problems. The instructions for getting started
> are broken.
> 
> Is this project still active? Is there anyone maintaining it? Does
> anyone have a set of getting started instructions that actually makes
> sense, and has been tested?
> 
> Sincerely, Eric


RE: Getting Started

Posted by Tom Leung <to...@netage.com.hk>.
I am using NPanday daily.

What version of NPanday you are using?

NPanday version 1.4 comes with several bugs, it doesn't work properly.

You should get the latest snapshot version for testing NPanday as the
following link:

https://archiva-repository.apache.org/archiva/repository/snapshots/org/apach
e/npanday/npanday-installer/1.5.0-incubating-SNAPSHOT/


Best Rgds,

Tom


-----Original Message-----
From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com] 
Sent: Thursday, February 27, 2014 1:47 AM
To: npanday-users@incubator.apache.org
Subject: Getting Started

I tried using NPanday a few years ago, but gave up because there were just
too many problems for it to actually be useful.

I am trying to give NPanday another chance, but I am once again just running
into nothing but problems. The instructions for getting started are broken.

Is this project still active? Is there anyone maintaining it? Does anyone
have a set of getting started instructions that actually makes sense, and
has been tested?

Sincerely, Eric


RE: Getting Started

Posted by Tom Leung <to...@netage.com.hk>.
> but that prints a list of 930 archetypes, and asks me to pick one. Not
very user friendly, and when I enter "npanday" it does not find anything.

try to make your own pom.xml, it is easy to create one from sketch.

Want to configure your own nexus server for adding remote repository?

don't need to configure settings.xml, just try to add an "Proxy Repository"
for " Aduna Software " on Nexus server admin console.
see the Nexus user guide for more information.

Best Rgds,

Tom





-----Original Message-----
From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com] 
Sent: Tuesday, March 04, 2014 1:58 AM
To: npanday-users@incubator.apache.org
Subject: Re: Getting Started

See below...

On 3/1/2014 8:05 PM, Brett Porter wrote:
> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com>
wrote:
>
>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\ele
>> vate>mvn archetype:generate 
>> -DarchetypeArtifactId=maven-archetype-dotnet-simple 
>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
> I guess the guide wasn't clear that you need to substitute the version in
here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using the
MSI. (It might work without specifying the version at all, but I don't have
my VM here to verify at the moment).

No, the guide is not very clear on many topics. In particular, there are few
things better than a concrete example, as prototypes are often open to
ambiguous interpretation. In general it is useful to have both prototype
examples, and concrete examples.

I tried using

mvn archetype:generate
-DarchetypeArtifactId=maven-archetype-dotnet-simple
-DarchetypeGroupId=npanday

  but that prints a list of 930 archetypes, and asks me to pick one. Not
very user friendly, and when I enter "npanday" it does not find anything.

>
>> Is there some other repository I need to configure in my Maven settings?
Why aren't the necessary NPanday pieces in Maven Central?
> They are in central, but only the last release is there, not any
snapshots. There are some additional artifacts required from
http://repository.aduna-software.org/maven2.

I tried configuring that remote repository into the settings.xml file and my
nexus server, but that does not seem to work. Here is what I put in my
settings.xml

           <repository>
               <releases>
                   <updatePolicy>always</updatePolicy>
               </releases>
               <snapshots>
                 <enabled>true</enabled>
                 <updatePolicy>always</updatePolicy>
               </snapshots>
               <id>info.aduna.mvn</id>
               <name>Aduna Software</name>
<url>http://repository.aduna-software.org/maven2/</url>
           </repository>

Is there something else I should be configuring there?

D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv
n
archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
-DarchetypeGroupId=npanday -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1 [INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate
(default-cli) @ standalone-pom <<< [INFO] [INFO] ---
maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode [WARNING] Archetype not found
in any catalog. Falling back to central repository
(http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's
repository is elsewhere.
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-in
cubating-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.573s
[INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
32M/1963M [INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
(default-cli) on project standalone-pom: The desired archetype does not
exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) 
-> [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/MojoFailureException

Cheers, Eric

>
> - Brett
>


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


Can't compile a library

Posted by Eric Kolotyluk <er...@gmail.com>.
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

Re: NUnit Test Output

Posted by Brett Porter <br...@apache.org>.
On 17 Apr 2014, at 1:35 am, Eric Kolotyluk <er...@gmail.com> wrote:

> Yes, thanks, I did find the results under target\nunit-reports
> 
> Often when I am troubleshooting tests I put lots of logging in them to see what is going on, and it is just more convenient to run 'mvn test' from the console and look at the output, without having to check file afterwards.
> 
> I tried using
> 
> <plugin>
> <groupId>org.apache.npanday.plugins</groupId>
> <artifactId>maven-test-plugin</artifactId>
> <version>1.5.0-incubating-SNAPSHOT</version>
> <extensions>true</extensions>
> <configuration>
> <parameters>
> <parameter>-output:stdout</parameter>
> </parameters>
> </configuration>
> </plugin>
> 
> but that does not seem to override the nunit-console arguments.

Yes, this is currently configured within this file: plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java

It would certainly be worthwhile adjusting that so that console can be passed as an option, if you're interested in taking a peek at it.

- Brett

--
Brett Porter   @brettporter
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter


Re: NUnit Test Output

Posted by Eric Kolotyluk <er...@gmail.com>.
Yes, thanks, I did find the results under target\nunit-reports

Often when I am troubleshooting tests I put lots of logging in them to 
see what is going on, and it is just more convenient to run 'mvn test' 
from the console and look at the output, without having to check file 
afterwards.

I tried using

<plugin>
<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-test-plugin</artifactId>
<version>1.5.0-incubating-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<parameters>
<parameter>-output:stdout</parameter>
</parameters>
</configuration>
</plugin>

but that does not seem to override the nunit-console arguments.

Cheers, Eric

On 4/16/2014 3:53 AM, Brett Porter wrote:
> Hi Eric,
>
> I realised this didn't get an answer - the output will be in the RESULTS file you see described in the command line. That's equivalent to the Java Surefire plugin's "redirect output" configuration.
>
> Regards,
> Brett
>
> On 4 Apr 2014, at 8:11 am, Eric Kolotyluk <er...@gmail.com> wrote:
>
>> I am having problems running NUnit tests. When I run the test via Maven I get:
>>
>> [INFO] --- maven-test-plugin:1.5.0-incubating-SNAPSHOT:test (default-test) @ csharp-windows-elevate ---
>> Downloading: http://localhost:8081/nexus/content/groups/public/NUnit/NUnit.Framework/2.2.8.0/NUnit.Framework-2.2.8.0.pdb
>> [INFO] NPANDAY-148-009: Took 244ms to resolve dependencies for net.kolotyluk.windows:csharp-windows-elevate:dotnet-executable:0.0.2-SNAPSHOT with filter org.apache.maven.artifact.resolver.filter.AndArtifactFilter@3648b0
>> [INFO]
>> [WARNING] NPANDAY-126-002: Did not find path for nunit-console in [C:\Windows\Microsoft.NET\Framework\v2.0.50727]
>> [INFO]  +--[ RUNNING: cmd.exe /X /C "nunit-console D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target/test-assemblies\csharp-windows-elevate-test.dll -xml:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-re
>> ports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT.xml -output:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-RESULTS.txt -err:D:\Users\Eric\Software\Project\Repositories\csharp-
>> windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-ERROR.txt -labels"]
>> [INFO]  | NUnit-Console version 2.6.3.13283
>> [INFO]  | Copyright (C) 2002-2012 Charlie Poole.
>> [INFO]  | Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
>> [INFO]  | Copyright (C) 2000-2002 Philip Craig.
>> [INFO]  | All Rights Reserved.
>> [INFO]  |
>> [INFO]  | Runtime Environment -
>> [INFO]  |    OS Version: Microsoft Windows NT 6.2.9200.0
>> [INFO]  |   CLR Version: 2.0.50727.8000 ( Net 3.5 )
>> [INFO]  |
>> [INFO]  | ProcessModel: Default    DomainUsage: Single
>> [INFO]  | Execution Runtime: net-3.5
>> [INFO]  |
>> [INFO]  | Tests run: 2, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0.158604051638454 seconds
>> [INFO]  |   Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
>> [INFO]  |
>> [INFO]  +--[ DONE ]
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESS
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 25.621s
>> [INFO] Finished at: Thu Apr 03 13:42:10 PDT 2014
>> [INFO] Final Memory: 28M/1963M
>> [INFO] ------------------------------------------------------------------------
>>
>> And there is no console output from my tests. Is there something special I have to configure in my pom.xml to get the console output? I cannot seem to find any documentation for
>>
>> <groupId>org.apache.npanday.plugins</groupId>
>> <artifactId>maven-test-plugin</artifactId>
>> <version>1.5.0-incubating-SNAPSHOT</version>
>>
>> Whereas when I run
>>
>>    nunit-console target\test-assemblies\csharp-windows-elevate-test.dll
>>
>> Directly my test output appears on the console. When I run 'mvn test' on my Java projects, there is console output from the tests by default. Maybe the expected behavior of NUnit is different than JUnit???
>>
>> Cheers, Eric
> --
> Brett Porter   @brettporter
> http://brettporter.wordpress.com/
> http://au.linkedin.com/in/brettporter
>


Re: NUnit Test Output

Posted by Brett Porter <br...@apache.org>.
Hi Eric,

I realised this didn't get an answer - the output will be in the RESULTS file you see described in the command line. That's equivalent to the Java Surefire plugin's "redirect output" configuration.

Regards,
Brett

On 4 Apr 2014, at 8:11 am, Eric Kolotyluk <er...@gmail.com> wrote:

> I am having problems running NUnit tests. When I run the test via Maven I get:
> 
> [INFO] --- maven-test-plugin:1.5.0-incubating-SNAPSHOT:test (default-test) @ csharp-windows-elevate ---
> Downloading: http://localhost:8081/nexus/content/groups/public/NUnit/NUnit.Framework/2.2.8.0/NUnit.Framework-2.2.8.0.pdb
> [INFO] NPANDAY-148-009: Took 244ms to resolve dependencies for net.kolotyluk.windows:csharp-windows-elevate:dotnet-executable:0.0.2-SNAPSHOT with filter org.apache.maven.artifact.resolver.filter.AndArtifactFilter@3648b0
> [INFO]
> [WARNING] NPANDAY-126-002: Did not find path for nunit-console in [C:\Windows\Microsoft.NET\Framework\v2.0.50727]
> [INFO]  +--[ RUNNING: cmd.exe /X /C "nunit-console D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target/test-assemblies\csharp-windows-elevate-test.dll -xml:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-re
> ports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT.xml -output:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-RESULTS.txt -err:D:\Users\Eric\Software\Project\Repositories\csharp-
> windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-ERROR.txt -labels"]
> [INFO]  | NUnit-Console version 2.6.3.13283
> [INFO]  | Copyright (C) 2002-2012 Charlie Poole.
> [INFO]  | Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
> [INFO]  | Copyright (C) 2000-2002 Philip Craig.
> [INFO]  | All Rights Reserved.
> [INFO]  |
> [INFO]  | Runtime Environment -
> [INFO]  |    OS Version: Microsoft Windows NT 6.2.9200.0
> [INFO]  |   CLR Version: 2.0.50727.8000 ( Net 3.5 )
> [INFO]  |
> [INFO]  | ProcessModel: Default    DomainUsage: Single
> [INFO]  | Execution Runtime: net-3.5
> [INFO]  |
> [INFO]  | Tests run: 2, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0.158604051638454 seconds
> [INFO]  |   Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
> [INFO]  |
> [INFO]  +--[ DONE ]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 25.621s
> [INFO] Finished at: Thu Apr 03 13:42:10 PDT 2014
> [INFO] Final Memory: 28M/1963M
> [INFO] ------------------------------------------------------------------------
> 
> And there is no console output from my tests. Is there something special I have to configure in my pom.xml to get the console output? I cannot seem to find any documentation for
> 
> <groupId>org.apache.npanday.plugins</groupId>
> <artifactId>maven-test-plugin</artifactId>
> <version>1.5.0-incubating-SNAPSHOT</version>
> 
> Whereas when I run
> 
>   nunit-console target\test-assemblies\csharp-windows-elevate-test.dll
> 
> Directly my test output appears on the console. When I run 'mvn test' on my Java projects, there is console output from the tests by default. Maybe the expected behavior of NUnit is different than JUnit???
> 
> Cheers, Eric

--
Brett Porter   @brettporter
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter


NUnit Test Output

Posted by Eric Kolotyluk <er...@gmail.com>.
I am having problems running NUnit tests. When I run the test via Maven 
I get:

[INFO] --- maven-test-plugin:1.5.0-incubating-SNAPSHOT:test 
(default-test) @ csharp-windows-elevate ---
Downloading: 
http://localhost:8081/nexus/content/groups/public/NUnit/NUnit.Framework/2.2.8.0/NUnit.Framework-2.2.8.0.pdb
[INFO] NPANDAY-148-009: Took 244ms to resolve dependencies for 
net.kolotyluk.windows:csharp-windows-elevate:dotnet-executable:0.0.2-SNAPSHOT 
with filter 
org.apache.maven.artifact.resolver.filter.AndArtifactFilter@3648b0
[INFO]
[WARNING] NPANDAY-126-002: Did not find path for nunit-console in 
[C:\Windows\Microsoft.NET\Framework\v2.0.50727]
[INFO]  +--[ RUNNING: cmd.exe /X /C "nunit-console 
D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target/test-assemblies\csharp-windows-elevate-test.dll 
-xml:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-re
ports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT.xml 
-output:D:\Users\Eric\Software\Project\Repositories\csharp-windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-RESULTS.txt 
-err:D:\Users\Eric\Software\Project\Repositories\csharp-
windows-elevate\target\nunit-reports\TEST-csharp-windows-elevate-0.0.2-SNAPSHOT-ERROR.txt 
-labels"]
[INFO]  | NUnit-Console version 2.6.3.13283
[INFO]  | Copyright (C) 2002-2012 Charlie Poole.
[INFO]  | Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, 
Alexei A. Vorontsov.
[INFO]  | Copyright (C) 2000-2002 Philip Craig.
[INFO]  | All Rights Reserved.
[INFO]  |
[INFO]  | Runtime Environment -
[INFO]  |    OS Version: Microsoft Windows NT 6.2.9200.0
[INFO]  |   CLR Version: 2.0.50727.8000 ( Net 3.5 )
[INFO]  |
[INFO]  | ProcessModel: Default    DomainUsage: Single
[INFO]  | Execution Runtime: net-3.5
[INFO]  |
[INFO]  | Tests run: 2, Errors: 0, Failures: 0, Inconclusive: 0, Time: 
0.158604051638454 seconds
[INFO]  |   Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
[INFO]  |
[INFO]  +--[ DONE ]
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 25.621s
[INFO] Finished at: Thu Apr 03 13:42:10 PDT 2014
[INFO] Final Memory: 28M/1963M
[INFO] 
------------------------------------------------------------------------

And there is no console output from my tests. Is there something special 
I have to configure in my pom.xml to get the console output? I cannot 
seem to find any documentation for

<groupId>org.apache.npanday.plugins</groupId>
<artifactId>maven-test-plugin</artifactId>
<version>1.5.0-incubating-SNAPSHOT</version>

Whereas when I run

    nunit-console target\test-assemblies\csharp-windows-elevate-test.dll

Directly my test output appears on the console. When I run 'mvn test' on 
my Java projects, there is console output from the tests by default. 
Maybe the expected behavior of NUnit is different than JUnit???

Cheers, Eric

Re: Getting Started - VS Integration

Posted by Eric Kolotyluk <er...@gmail.com>.
OK, so I have Visual C# Express 2010 installed. From a command windows 
(running as administrator I tried)

mvn 
org.apache.npanday.plugins:maven-vsinstaller-plugin:1.5.0-incubating-SNAPSHOT:install

But that failed.

Is there some actual documentation for 1.5? All I can find is 
http://incubator.apache.org/npanday/docs/1.4.0-incubating/guide/installation/index.html

Cheers, Eric

[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 2.391s
[INFO] Finished at: Wed Mar 05 12:41:28 PST 2014
[INFO] Final Memory: 26M/1963M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.npanday.plugins:maven-vsinstaller-plugin:1.5.0-incubating-SNAPSHOT:install 
(default-cli) on project standalone-pom: Execution default-cli of goal 
org.apache.npanday.plugins:maven-vsinstaller-plugin:1.5.0-incubating-SNA
PSHOT:install failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal 
org.apache.npanday.plugins:maven-vsinstaller-plugin:1.5.0-incubating-SNAPSHOT:install 
(default-cli) on project standalone-pom: Execution default-cli of goal 
org.apache.npanday.plugi
ns:maven-vsinstaller-plugin:1.5.0-incubating-SNAPSHOT:install failed.
         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:606)
         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
         at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
         at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-cli of goal 
org.apache.npanday.plugins:maven-vsinstaller-plugin:1.5.0-incubating-SNAPSHOT:install 
failed.
         at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
         ... 19 more
Caused by: java.lang.NullPointerException
         at 
npanday.plugin.vsinstaller.VsInstallerMojo.isDotNetHandler(VsInstallerMojo.java:136)
         at 
npanday.plugin.vsinstaller.VsInstallerMojo.execute(VsInstallerMojo.java:99)
         at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
         ... 20 more
[ERROR]
[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/PluginExecutionException

RE: Getting Started

Posted by Tom Leung <to...@netage.com.hk>.
Everyone is welcome to contribute the recommendation, but don't expect the
developers will do your favorites first.

Anyway, your opinion may give an idea how to improve the documentation and
fulfill the user's expected features in the coming release.
 



-----Original Message-----
From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com] 
Sent: Friday, March 07, 2014 2:25 AM
To: npanday-users@incubator.apache.org
Subject: Re: Getting Started

OK, I am finally able to build a small project. I resurrected one of my old
NPanday projects, used it as a template to create a new project, edited the
pom.xml and other important files, integrated things with SharpDevelop
<http://www.icsharpcode.net/OpenSource/SD/Default.aspx>,
and I can build the same project with either Maven or SharpDevelop. Of
course there is no NPanday integration with SharpDevelop, but they seem to
co-exist in harmony.

This was still quite a manual process, that was only made easier because I
found an existing project to clone. It is disconcerting that:

 1. There seems to be no easy way to create a project from the command
    line using an archetype.
 2. There seems to be no easy way to create a project from Visual C#
    Express 2010 because I could not install the NPanday 1.5 plug-in

I certainly hope some of these pot-holes in the NPanday Roadmap will be
fixed when 1.5 is released. You get one chance to make a good first
impression, and this is an area the NPanday is lacking.

Cheers, Eric

On 3/5/2014 11:39 AM, Eric Kolotyluk wrote:
> Still making no progress on this...
>
> There seems to be the stuff I need in
>
> https://archiva-repository.apache.org/archiva/repository/snapshots/org
> /apache/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHO
> T/
>
> but when I try to configure my Nexus to point there, nothing gets 
> downloaded.
>
>     Repository ID: archiva-repository
>     Repository Name: Apache Archiva
>     Repository Type: proxy
>     Repository Policy: Release
>     Repository Format: maven2
>     Contained in groups:
>
>     Remote URL:
>     
> https://archiva-repository.apache.org/archiva/repository/snapshots/
>
> Nexus claims it is in service, but when I go to the "Browse Remote" 
> tab, it lists some top level directories, however you cannot drill 
> down any further.
>
> Next I tried copied the files directly to
>
> C:\Users\Eric\.m2\repository\org\apache\npanday\dotnet-archetypes\mave
> n-archetype-dotnet-simple\1.5.0-incubating-SNAPSHOT
>
> but Maven still cannot find it
>
>     The desired archetype does not exist
>     (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>
> I am getting pretty frustrated now, which is exactly why I gave up on 
> NPanday years ago. I cannot see this project getting past the 
> incubating stage if there is no will to "just make things work in a 
> reasonable way."
>
> I am willing to work with people to help make this project better, in 
> particular the documentation, but first I have to actually see some 
> success.
>
> Pretty much all of this pain could have been avoided if the 
> npanday-installer-1.5.0-incubating-20140227.115948-74.msi would have 
> installed the missing archetype in the local repository like the other 
> stuff it installed. An even better solutions would to put everything 
> in Maven Central as a release that can be found.
>
> Sincerely, Eric
>
> On 3/4/2014 3:23 PM, Eric Kolotyluk wrote:
>> OK, I can see the contents of
>> http://repository.aduna-software.org/maven2/ from my Nexus, but when 
>> I search for "org.apache.npanday" or "maven-archetype-dotnet-simple"
>> nothing is found.
>>
>> This would seem to explain why Maven is complaining:[ERROR] Failed to 
>> execute goal 
>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>> (default-cli) on project standalone-pom: The desired archetype does 
>> not exist
>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) -> 
>> [Help 1]
>>
>> Brett, are you sure the archetype is in 
>> http://repository.aduna-software.org/maven2/ ?
>>
>> Anyone else, can you see it there?
>>
>> Cheers, Eric
>>
>> On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>>>
>>> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>>>> but that prints a list of 930 archetypes, and asks me to pick one. 
>>>>> Not
>>>> very user friendly, and when I enter "npanday" it does not find 
>>>> anything.
>>>>
>>>> try to make your own pom.xml, it is easy to create one from sketch.
>>>
>>> It is not just about creating a pom.xml, but also about creating the 
>>> file system layout for the project. Doing everything manually 
>>> dramatically increases the possibility of defects, which is why we 
>>> use automated tools like Maven. Telling me to just create my own 
>>> pom.xml implies the NPanday is not stable enough to just work 
>>> properly like any other Maven feature.
>>>
>>> Do you mean "from scratch" or does "from sketch" mean something else?
>>>
>>>>
>>>> Want to configure your own nexus server for adding remote repository?
>>>>
>>>> don't need to configure settings.xml, just try to add an "Proxy 
>>>> Repository"
>>>> for " Aduna Software " on Nexus server admin console.
>>>> see the Nexus user guide for more information.
>>>
>>> I did create a Proxy Repository for Aduna on my Nexus server, but it 
>>> does not seem to work. I have tried to configure it like other Proxy 
>>> Repositories (that do work), so I am not sure what the problem is 
>>> with this.
>>>
>>> Again, all I can say is that clear, complete and "tested" 
>>> documentation would go a long way to make it easier for people to 
>>> get started with NPanday.
>>>
>>> Cheers, Eric
>>>
>>>>
>>>> Best Rgds,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>>>> Sent: Tuesday, March 04, 2014 1:58 AM
>>>> To: npanday-users@incubator.apache.org
>>>> Subject: Re: Getting Started
>>>>
>>>> See below...
>>>>
>>>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk 
>>>>> <er...@gmail.com>
>>>> wrote:
>>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows
>>>>>> \ele
>>>>>>
>>>>>> vate>mvn archetype:generate
>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>>>> I guess the guide wasn't clear that you need to substitute the 
>>>>> version in
>>>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are 
>>>> using the MSI. (It might work without specifying the version at 
>>>> all, but I don't have my VM here to verify at the moment).
>>>>
>>>> No, the guide is not very clear on many topics. In particular, 
>>>> there are few things better than a concrete example, as prototypes 
>>>> are often open to ambiguous interpretation. In general it is useful 
>>>> to have both prototype examples, and concrete examples.
>>>>
>>>> I tried using
>>>>
>>>> mvn archetype:generate
>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>> -DarchetypeGroupId=npanday
>>>>
>>>>    but that prints a list of 930 archetypes, and asks me to pick 
>>>> one. Not very user friendly, and when I enter "npanday" it does not 
>>>> find anything.
>>>>
>>>>>> Is there some other repository I need to configure in my Maven 
>>>>>> settings?
>>>> Why aren't the necessary NPanday pieces in Maven Central?
>>>>> They are in central, but only the last release is there, not any
>>>> snapshots. There are some additional artifacts required from 
>>>> http://repository.aduna-software.org/maven2.
>>>>
>>>> I tried configuring that remote repository into the settings.xml 
>>>> file and my nexus server, but that does not seem to work. Here is 
>>>> what I put in my settings.xml
>>>>
>>>>             <repository>
>>>>                 <releases>
>>>> <updatePolicy>always</updatePolicy>
>>>>                 </releases>
>>>>                 <snapshots>
>>>>                   <enabled>true</enabled> 
>>>> <updatePolicy>always</updatePolicy>
>>>>                 </snapshots>
>>>>                 <id>info.aduna.mvn</id>
>>>>                 <name>Aduna Software</name> 
>>>> <url>http://repository.aduna-software.org/maven2/</url>
>>>>             </repository>
>>>>
>>>> Is there something else I should be configuring there?
>>>>
>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\e
>>>> levate>mv
>>>>
>>>> n
>>>> archetype:generate 
>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>> -DarchetypeGroupId=npanday
>>>> -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>>>> [INFO] Scanning for projects...
>>>> [INFO]
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>> [INFO]
>>>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ 
>>>> standalone-pom >>> [INFO] [INFO] <<< 
>>>> maven-archetype-plugin:2.2:generate
>>>> (default-cli) @ standalone-pom <<< [INFO] [INFO] --- 
>>>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom 
>>>> --- [INFO] Generating project in Interactive mode [WARNING] 
>>>> Archetype not found in any catalog. Falling back to central 
>>>> repository (http://repo1.maven.org/maven2).
>>>> [WARNING] Use -DarchetypeRepository=<your repository> if 
>>>> archetype's repository is elsewhere.
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>> hetype-do
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>> hetype-do
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>> hetype-do
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple
>>>> -1.5.0-in
>>>>
>>>> cubating-SNAPSHOT.jar
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>> [INFO] Total time: 4.573s
>>>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>>>> 32M/1963M [INFO]
>>>> -------------------------------------------------------------------
>>>> -----
>>>>
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>>> (default-cli) on project standalone-pom: The desired archetype does 
>>>> not exist
>>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>>> -> [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/MojoFailureExcepti
>>>> on
>>>>
>>>> Cheers, Eric
>>>>
>>>>> - Brett
>>>>>
>>>
>>
>



Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
OK, I am finally able to build a small project. I resurrected one of my 
old NPanday projects, used it as a template to create a new project, 
edited the pom.xml and other important files, integrated things with 
SharpDevelop <http://www.icsharpcode.net/OpenSource/SD/Default.aspx>, 
and I can build the same project with either Maven or SharpDevelop. Of 
course there is no NPanday integration with SharpDevelop, but they seem 
to co-exist in harmony.

This was still quite a manual process, that was only made easier because 
I found an existing project to clone. It is disconcerting that:

 1. There seems to be no easy way to create a project from the command
    line using an archetype.
 2. There seems to be no easy way to create a project from Visual C#
    Express 2010 because I could not install the NPanday 1.5 plug-in

I certainly hope some of these pot-holes in the NPanday Roadmap will be 
fixed when 1.5 is released. You get one chance to make a good first 
impression, and this is an area the NPanday is lacking.

Cheers, Eric

On 3/5/2014 11:39 AM, Eric Kolotyluk wrote:
> Still making no progress on this...
>
> There seems to be the stuff I need in
>
> https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHOT/
>
> but when I try to configure my Nexus to point there, nothing gets 
> downloaded.
>
>     Repository ID: archiva-repository
>     Repository Name: Apache Archiva
>     Repository Type: proxy
>     Repository Policy: Release
>     Repository Format: maven2
>     Contained in groups:
>
>     Remote URL:
>     https://archiva-repository.apache.org/archiva/repository/snapshots/
>
> Nexus claims it is in service, but when I go to the "Browse Remote" 
> tab, it lists some top level directories, however you cannot drill 
> down any further.
>
> Next I tried copied the files directly to
>
> C:\Users\Eric\.m2\repository\org\apache\npanday\dotnet-archetypes\maven-archetype-dotnet-simple\1.5.0-incubating-SNAPSHOT
>
> but Maven still cannot find it
>
>     The desired archetype does not exist
>     (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>
> I am getting pretty frustrated now, which is exactly why I gave up on 
> NPanday years ago. I cannot see this project getting past the 
> incubating stage if there is no will to "just make things work in a 
> reasonable way."
>
> I am willing to work with people to help make this project better, in 
> particular the documentation, but first I have to actually see some 
> success.
>
> Pretty much all of this pain could have been avoided if the 
> npanday-installer-1.5.0-incubating-20140227.115948-74.msi would have 
> installed the missing archetype in the local repository like the other 
> stuff it installed. An even better solutions would to put everything 
> in Maven Central as a release that can be found.
>
> Sincerely, Eric
>
> On 3/4/2014 3:23 PM, Eric Kolotyluk wrote:
>> OK, I can see the contents of 
>> http://repository.aduna-software.org/maven2/ from my Nexus, but when 
>> I search for "org.apache.npanday" or "maven-archetype-dotnet-simple" 
>> nothing is found.
>>
>> This would seem to explain why Maven is complaining:[ERROR] Failed to 
>> execute goal 
>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate 
>> (default-cli) on project standalone-pom: The desired archetype does 
>> not exist 
>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) -> 
>> [Help 1]
>>
>> Brett, are you sure the archetype is in 
>> http://repository.aduna-software.org/maven2/ ?
>>
>> Anyone else, can you see it there?
>>
>> Cheers, Eric
>>
>> On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>>>
>>> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>>>> but that prints a list of 930 archetypes, and asks me to pick one. 
>>>>> Not
>>>> very user friendly, and when I enter "npanday" it does not find 
>>>> anything.
>>>>
>>>> try to make your own pom.xml, it is easy to create one from sketch.
>>>
>>> It is not just about creating a pom.xml, but also about creating the 
>>> file system layout for the project. Doing everything manually 
>>> dramatically increases the possibility of defects, which is why we 
>>> use automated tools like Maven. Telling me to just create my own 
>>> pom.xml implies the NPanday is not stable enough to just work 
>>> properly like any other Maven feature.
>>>
>>> Do you mean "from scratch" or does "from sketch" mean something else?
>>>
>>>>
>>>> Want to configure your own nexus server for adding remote repository?
>>>>
>>>> don't need to configure settings.xml, just try to add an "Proxy 
>>>> Repository"
>>>> for " Aduna Software " on Nexus server admin console.
>>>> see the Nexus user guide for more information.
>>>
>>> I did create a Proxy Repository for Aduna on my Nexus server, but it 
>>> does not seem to work. I have tried to configure it like other Proxy 
>>> Repositories (that do work), so I am not sure what the problem is 
>>> with this.
>>>
>>> Again, all I can say is that clear, complete and "tested" 
>>> documentation would go a long way to make it easier for people to 
>>> get started with NPanday.
>>>
>>> Cheers, Eric
>>>
>>>>
>>>> Best Rgds,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>>>> Sent: Tuesday, March 04, 2014 1:58 AM
>>>> To: npanday-users@incubator.apache.org
>>>> Subject: Re: Getting Started
>>>>
>>>> See below...
>>>>
>>>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com>
>>>> wrote:
>>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\ele 
>>>>>>
>>>>>> vate>mvn archetype:generate
>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>>>> I guess the guide wasn't clear that you need to substitute the 
>>>>> version in
>>>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are 
>>>> using the
>>>> MSI. (It might work without specifying the version at all, but I 
>>>> don't have
>>>> my VM here to verify at the moment).
>>>>
>>>> No, the guide is not very clear on many topics. In particular, 
>>>> there are few
>>>> things better than a concrete example, as prototypes are often open to
>>>> ambiguous interpretation. In general it is useful to have both 
>>>> prototype
>>>> examples, and concrete examples.
>>>>
>>>> I tried using
>>>>
>>>> mvn archetype:generate
>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>> -DarchetypeGroupId=npanday
>>>>
>>>>    but that prints a list of 930 archetypes, and asks me to pick 
>>>> one. Not
>>>> very user friendly, and when I enter "npanday" it does not find 
>>>> anything.
>>>>
>>>>>> Is there some other repository I need to configure in my Maven 
>>>>>> settings?
>>>> Why aren't the necessary NPanday pieces in Maven Central?
>>>>> They are in central, but only the last release is there, not any
>>>> snapshots. There are some additional artifacts required from
>>>> http://repository.aduna-software.org/maven2.
>>>>
>>>> I tried configuring that remote repository into the settings.xml 
>>>> file and my
>>>> nexus server, but that does not seem to work. Here is what I put in my
>>>> settings.xml
>>>>
>>>>             <repository>
>>>>                 <releases>
>>>> <updatePolicy>always</updatePolicy>
>>>>                 </releases>
>>>>                 <snapshots>
>>>>                   <enabled>true</enabled>
>>>> <updatePolicy>always</updatePolicy>
>>>>                 </snapshots>
>>>>                 <id>info.aduna.mvn</id>
>>>>                 <name>Aduna Software</name>
>>>> <url>http://repository.aduna-software.org/maven2/</url>
>>>>             </repository>
>>>>
>>>> Is there something else I should be configuring there?
>>>>
>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv 
>>>>
>>>> n
>>>> archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>> -DarchetypeGroupId=npanday 
>>>> -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>>>> [INFO] Scanning for projects...
>>>> [INFO]
>>>> [INFO]
>>>> ------------------------------------------------------------------------ 
>>>>
>>>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>>>> ------------------------------------------------------------------------ 
>>>>
>>>> [INFO]
>>>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
>>>> standalone-pom >>> [INFO] [INFO] <<< 
>>>> maven-archetype-plugin:2.2:generate
>>>> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
>>>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
>>>> [INFO] Generating project in Interactive mode [WARNING] Archetype 
>>>> not found
>>>> in any catalog. Falling back to central repository
>>>> (http://repo1.maven.org/maven2).
>>>> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's
>>>> repository is elsewhere.
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>> Downloading:
>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>>
>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-in 
>>>>
>>>> cubating-SNAPSHOT.jar
>>>> [INFO]
>>>> ------------------------------------------------------------------------ 
>>>>
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------ 
>>>>
>>>> [INFO] Total time: 4.573s
>>>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>>>> 32M/1963M [INFO]
>>>> ------------------------------------------------------------------------ 
>>>>
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>>> (default-cli) on project standalone-pom: The desired archetype does 
>>>> not
>>>> exist 
>>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>>> -> [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/MojoFailureException
>>>>
>>>> Cheers, Eric
>>>>
>>>>> - Brett
>>>>>
>>>
>>
>


Re: C# Documentation

Posted by Brett Porter <br...@apache.org>.
On 17 Apr 2014, at 1:37 am, Eric Kolotyluk <er...@gmail.com> wrote:

>> 
>> 
>>> Any idea when NPanday 1.5 will be released?
>>> 
>>> Did you want any help with documentation?
>> Absolutely - what would you find the easiest way to contribute to that?
> 
> Is NPanday on GitHub? If so, I could create some pull requests.

Yes, though it's a mirror, so the application process is more manual - you'll probably need to let us know by way of a JIRA ticket that you've created the pull request.

https://github.com/apache/npanday (watch out that the default branch is wrong, it should be trunk - I'll ask the admins to correct)

- Brett

--
Brett Porter   @brettporter
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter


Re: C# Documentation

Posted by Eric Kolotyluk <er...@gmail.com>.
On 4/16/2014 4:07 AM, Brett Porter wrote:
> On 4 Apr 2014, at 4:29 am, Eric Kolotyluk <er...@gmail.com> wrote:
>
>> Primarily I was looking for a way to add them as a site report.
>>
>> I have figured out how to add them to my site via SandCastle, but not as part of the normal reporting process.
>>
>> <build>
>>     <plugins>
>> <plugin>
>> <artifactId>maven-antrun-plugin</artifactId>
>> <version>1.7</version>
>> <executions>
>> <execution>
>> <phase>site</phase>
>> <configuration>
>> <target name="help">
>> <exec executable="cmd">
>> <arg value="/c" />
>> <arg value="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" />
>> <arg value="elevate.shfbproj" />
>> </exec>
>> </target>
>> </configuration>
>> <goals>
>> <goal>run</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>>     <plugins>
>>   </build>
>>
>> It would be nice to minimize the differences between NPanday, .NET and normal Maven methods. The above is rather much a hack, while the below is more elegant and consistent with Maven best practices.
>>
>>   <reporting>
>>     <plugins>
>>       <plugin>
>>         <groupId>org.apache.maven.plugins</groupId>
>>         <artifactId>maven-javadoc-plugin</artifactId>
>>         <version>2.9.1</version>
>>       </plugin>
>>     </plugins>
>>   </reporting>
>>
> There hasn't been a lot of work done on reporting-type plugins here, but there's certainly an opportunity to build a reporting plugin that executes SandCastle (using the existing executable wrappers) in much the way you have done with antrun. Note, there is already an msbuild plugin that could run the above in a slightly easier manner.
>
>
>> Any idea when NPanday 1.5 will be released?
>>
>> Did you want any help with documentation?
> Absolutely - what would you find the easiest way to contribute to that?

Is NPanday on GitHub? If so, I could create some pull requests.

>
> - Brett
>


Re: C# Documentation

Posted by Brett Porter <br...@apache.org>.
On 4 Apr 2014, at 4:29 am, Eric Kolotyluk <er...@gmail.com> wrote:

> Primarily I was looking for a way to add them as a site report.
> 
> I have figured out how to add them to my site via SandCastle, but not as part of the normal reporting process.
> 
> <build>
>    <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <version>1.7</version>
> <executions>
> <execution>
> <phase>site</phase>
> <configuration>
> <target name="help">
> <exec executable="cmd">
> <arg value="/c" />
> <arg value="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" />
> <arg value="elevate.shfbproj" />
> </exec>
> </target>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>    <plugins>
>  </build>
> 
> It would be nice to minimize the differences between NPanday, .NET and normal Maven methods. The above is rather much a hack, while the below is more elegant and consistent with Maven best practices.
> 
>  <reporting>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-javadoc-plugin</artifactId>
>        <version>2.9.1</version>
>      </plugin>
>    </plugins>
>  </reporting>
> 

There hasn't been a lot of work done on reporting-type plugins here, but there's certainly an opportunity to build a reporting plugin that executes SandCastle (using the existing executable wrappers) in much the way you have done with antrun. Note, there is already an msbuild plugin that could run the above in a slightly easier manner.


> Any idea when NPanday 1.5 will be released?
> 
> Did you want any help with documentation?

Absolutely - what would you find the easiest way to contribute to that?

- Brett


Re: C# Documentation

Posted by Eric Kolotyluk <er...@gmail.com>.
Primarily I was looking for a way to add them as a site report.

I have figured out how to add them to my site via SandCastle, but not as 
part of the normal reporting process.

<build>
     <plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>site</phase>
<configuration>
<target name="help">
<exec executable="cmd">
<arg value="/c" />
<arg value="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" />
<arg value="elevate.shfbproj" />
</exec>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
     <plugins>
   </build>

It would be nice to minimize the differences between NPanday, .NET and 
normal Maven methods. The above is rather much a hack, while the below 
is more elegant and consistent with Maven best practices.

   <reporting>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <version>2.9.1</version>
       </plugin>
     </plugins>
   </reporting>

Any idea when NPanday 1.5 will be released?

Did you want any help with documentation?

Cheers, Eric

On 4/2/2014 8:04 PM, Brett Porter wrote:
> Hi Eric,
>
> On 1 Apr 2014, at 12:23 pm, Eric Kolotyluk <er...@gmail.com> wrote:
>
>> Is there a way to generate the C# API documentation as part of the reporting process?
> The XML documentation files are already generated in the standard build process. Are you looking for a way to copy those, or convert that into another form with Sandcastle, or something else?
>
> Sorry if I've missed something, that's not an area I've dug into much.
>
> - Brett
>
> --
> Brett Porter   @brettporter
> http://brettporter.wordpress.com/
> http://au.linkedin.com/in/brettporter
>


Re: C# Documentation

Posted by Brett Porter <br...@apache.org>.
Hi Eric,

On 1 Apr 2014, at 12:23 pm, Eric Kolotyluk <er...@gmail.com> wrote:

> Is there a way to generate the C# API documentation as part of the reporting process?

The XML documentation files are already generated in the standard build process. Are you looking for a way to copy those, or convert that into another form with Sandcastle, or something else?

Sorry if I've missed something, that's not an area I've dug into much.

- Brett

--
Brett Porter   @brettporter
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter


C# Documentation

Posted by Eric Kolotyluk <er...@gmail.com>.
Is there a way to generate the C# API documentation as part of the 
reporting process?

Cheers, Eric

Re: Getting Started

Posted by Brett Porter <br...@apache.org>.
Hi Eric,

Sorry for the late response, rolling up a few responses here.

Good point about the archetypes in the MSI, I'll check that they are included. You are right these should be in central - that will happen when 1.5 is released, but snapshots are not published there. There is documentation for 1.5, but it's not published to the main site (again, because it isn't released).

We certainly welcome pull requests (or tickets with patches) to make improvements. If you make a PR let us know on npanday-dev@incubator.apache.org, as I'm not sure that notifications are set up for that yet.

Thanks for th efeedback - hope it's smother sailing for you now that you got the first project built.

- Brett

On 7 Mar 2014, at 4:06 pm, Eric Kolotyluk <er...@gmail.com> wrote:

> Do you just want recommendations on how to improve the documentation, or would you rather have pull requests on github?
> 
> Cheers, Eric
> 
> On 3/6/2014 8:13 PM, Tom Leung wrote:
>> Everyone is welcome to contribute the recommendation, but don't expect the
>> developers will do your favorites first.
>> 
>> Anyway, your opinion may give an idea how to improve the documentation and
>> fulfill the user's expected features in the coming release.
>>  
>> 
>> 
>> -----Original Message-----
>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>> Sent: Friday, March 07, 2014 2:25 AM
>> To: npanday-users@incubator.apache.org
>> Subject: Re: Getting Started
>> 
>> OK, I am finally able to build a small project. I resurrected one of my old
>> NPanday projects, used it as a template to create a new project, edited the
>> pom.xml and other important files, integrated things with SharpDevelop
>> <http://www.icsharpcode.net/OpenSource/SD/Default.aspx>,
>> and I can build the same project with either Maven or SharpDevelop. Of
>> course there is no NPanday integration with SharpDevelop, but they seem to
>> co-exist in harmony.
>> 
>> This was still quite a manual process, that was only made easier because I
>> found an existing project to clone. It is disconcerting that:
>> 
>>  1. There seems to be no easy way to create a project from the command
>>     line using an archetype.
>>  2. There seems to be no easy way to create a project from Visual C#
>>     Express 2010 because I could not install the NPanday 1.5 plug-in
>> 
>> I certainly hope some of these pot-holes in the NPanday Roadmap will be
>> fixed when 1.5 is released. You get one chance to make a good first
>> impression, and this is an area the NPanday is lacking.
>> 
>> Cheers, Eric
>> 
>> On 3/5/2014 11:39 AM, Eric Kolotyluk wrote:
>>> Still making no progress on this...
>>> 
>>> There seems to be the stuff I need in
>>> 
>>> https://archiva-repository.apache.org/archiva/repository/snapshots/org
>>> /apache/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHO
>>> T/
>>> 
>>> but when I try to configure my Nexus to point there, nothing gets
>>> downloaded.
>>> 
>>>     Repository ID: archiva-repository
>>>     Repository Name: Apache Archiva
>>>     Repository Type: proxy
>>>     Repository Policy: Release
>>>     Repository Format: maven2
>>>     Contained in groups:
>>> 
>>>     Remote URL:
>>>     https://archiva-repository.apache.org/archiva/repository/snapshots/
>>> 
>>> Nexus claims it is in service, but when I go to the "Browse Remote"
>>> tab, it lists some top level directories, however you cannot drill
>>> down any further.
>>> 
>>> Next I tried copied the files directly to
>>> 
>>> C:\Users\Eric\.m2\repository\org\apache\npanday\dotnet-archetypes\mave
>>> n-archetype-dotnet-simple\1.5.0-incubating-SNAPSHOT
>>> 
>>> but Maven still cannot find it
>>> 
>>>     The desired archetype does not exist
>>>     (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>> 
>>> I am getting pretty frustrated now, which is exactly why I gave up on
>>> NPanday years ago. I cannot see this project getting past the
>>> incubating stage if there is no will to "just make things work in a
>>> reasonable way."
>>> 
>>> I am willing to work with people to help make this project better, in
>>> particular the documentation, but first I have to actually see some
>>> success.
>>> 
>>> Pretty much all of this pain could have been avoided if the
>>> npanday-installer-1.5.0-incubating-20140227.115948-74.msi would have
>>> installed the missing archetype in the local repository like the other
>>> stuff it installed. An even better solutions would to put everything
>>> in Maven Central as a release that can be found.
>>> 
>>> Sincerely, Eric
>>> 
>>> On 3/4/2014 3:23 PM, Eric Kolotyluk wrote:
>>>> OK, I can see the contents of
>>>> http://repository.aduna-software.org/maven2/ from my Nexus, but when
>>>> I search for "org.apache.npanday" or "maven-archetype-dotnet-simple"
>>>> nothing is found.
>>>> 
>>>> This would seem to explain why Maven is complaining:[ERROR] Failed to
>>>> execute goal
>>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>>> (default-cli) on project standalone-pom: The desired archetype does
>>>> not exist
>>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) ->
>>>> [Help 1]
>>>> 
>>>> Brett, are you sure the archetype is in
>>>> http://repository.aduna-software.org/maven2/ ?
>>>> 
>>>> Anyone else, can you see it there?
>>>> 
>>>> Cheers, Eric
>>>> 
>>>> On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>>>>> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>>>>>> but that prints a list of 930 archetypes, and asks me to pick one.
>>>>>>> Not
>>>>>> very user friendly, and when I enter "npanday" it does not find
>>>>>> anything.
>>>>>> 
>>>>>> try to make your own pom.xml, it is easy to create one from sketch.
>>>>> It is not just about creating a pom.xml, but also about creating the
>>>>> file system layout for the project. Doing everything manually
>>>>> dramatically increases the possibility of defects, which is why we
>>>>> use automated tools like Maven. Telling me to just create my own
>>>>> pom.xml implies the NPanday is not stable enough to just work
>>>>> properly like any other Maven feature.
>>>>> 
>>>>> Do you mean "from scratch" or does "from sketch" mean something else?
>>>>> 
>>>>>> Want to configure your own nexus server for adding remote repository?
>>>>>> 
>>>>>> don't need to configure settings.xml, just try to add an "Proxy
>>>>>> Repository"
>>>>>> for " Aduna Software " on Nexus server admin console.
>>>>>> see the Nexus user guide for more information.
>>>>> I did create a Proxy Repository for Aduna on my Nexus server, but it
>>>>> does not seem to work. I have tried to configure it like other Proxy
>>>>> Repositories (that do work), so I am not sure what the problem is
>>>>> with this.
>>>>> 
>>>>> Again, all I can say is that clear, complete and "tested"
>>>>> documentation would go a long way to make it easier for people to
>>>>> get started with NPanday.
>>>>> 
>>>>> Cheers, Eric
>>>>> 
>>>>>> Best Rgds,
>>>>>> 
>>>>>> Tom
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -----Original Message-----
>>>>>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>>>>>> Sent: Tuesday, March 04, 2014 1:58 AM
>>>>>> To: npanday-users@incubator.apache.org
>>>>>> Subject: Re: Getting Started
>>>>>> 
>>>>>> See below...
>>>>>> 
>>>>>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>>>>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk
>>>>>>> <er...@gmail.com>
>>>>>> wrote:
>>>>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows
>>>>>>>> \ele
>>>>>>>> 
>>>>>>>> vate>mvn archetype:generate
>>>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>>>>>> I guess the guide wasn't clear that you need to substitute the
>>>>>>> version in
>>>>>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are
>>>>>> using the MSI. (It might work without specifying the version at
>>>>>> all, but I don't have my VM here to verify at the moment).
>>>>>> 
>>>>>> No, the guide is not very clear on many topics. In particular,
>>>>>> there are few things better than a concrete example, as prototypes
>>>>>> are often open to ambiguous interpretation. In general it is useful
>>>>>> to have both prototype examples, and concrete examples.
>>>>>> 
>>>>>> I tried using
>>>>>> 
>>>>>> mvn archetype:generate
>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>> -DarchetypeGroupId=npanday
>>>>>> 
>>>>>>    but that prints a list of 930 archetypes, and asks me to pick
>>>>>> one. Not very user friendly, and when I enter "npanday" it does not
>>>>>> find anything.
>>>>>> 
>>>>>>>> Is there some other repository I need to configure in my Maven
>>>>>>>> settings?
>>>>>> Why aren't the necessary NPanday pieces in Maven Central?
>>>>>>> They are in central, but only the last release is there, not any
>>>>>> snapshots. There are some additional artifacts required from
>>>>>> http://repository.aduna-software.org/maven2.
>>>>>> 
>>>>>> I tried configuring that remote repository into the settings.xml
>>>>>> file and my nexus server, but that does not seem to work. Here is
>>>>>> what I put in my settings.xml
>>>>>> 
>>>>>>             <repository>
>>>>>>                 <releases>
>>>>>> <updatePolicy>always</updatePolicy>
>>>>>>                 </releases>
>>>>>>                 <snapshots>
>>>>>>                   <enabled>true</enabled>
>>>>>> <updatePolicy>always</updatePolicy>
>>>>>>                 </snapshots>
>>>>>>                 <id>info.aduna.mvn</id>
>>>>>>                 <name>Aduna Software</name>
>>>>>> <url>http://repository.aduna-software.org/maven2/</url>
>>>>>>             </repository>
>>>>>> 
>>>>>> Is there something else I should be configuring there?
>>>>>> 
>>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\e
>>>>>> levate>mv
>>>>>> 
>>>>>> n
>>>>>> archetype:generate
>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>> -DarchetypeGroupId=npanday
>>>>>> -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>>>>>> [INFO] Scanning for projects...
>>>>>> [INFO]
>>>>>> [INFO]
>>>>>> -------------------------------------------------------------------
>>>>>> -----
>>>>>> 
>>>>>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>>>>>> -------------------------------------------------------------------
>>>>>> -----
>>>>>> 
>>>>>> [INFO]
>>>>>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
>>>>>> standalone-pom >>> [INFO] [INFO] <<<
>>>>>> maven-archetype-plugin:2.2:generate
>>>>>> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
>>>>>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom
>>>>>> --- [INFO] Generating project in Interactive mode [WARNING]
>>>>>> Archetype not found in any catalog. Falling back to central
>>>>>> repository (http://repo1.maven.org/maven2).
>>>>>> [WARNING] Use -DarchetypeRepository=<your repository> if
>>>>>> archetype's repository is elsewhere.
>>>>>> Downloading:
>>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>>> hetype-do
>>>>>> 
>>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>>> hetype-do
>>>>>> 
>>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>>> Downloading:
>>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>>> hetype-do
>>>>>> 
>>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple
>>>>>> -1.5.0-in
>>>>>> 
>>>>>> cubating-SNAPSHOT.jar
>>>>>> [INFO]
>>>>>> -------------------------------------------------------------------
>>>>>> -----
>>>>>> 
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>> -------------------------------------------------------------------
>>>>>> -----
>>>>>> 
>>>>>> [INFO] Total time: 4.573s
>>>>>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>>>>>> 32M/1963M [INFO]
>>>>>> -------------------------------------------------------------------
>>>>>> -----
>>>>>> 
>>>>>> [ERROR] Failed to execute goal
>>>>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>>>>> (default-cli) on project standalone-pom: The desired archetype does
>>>>>> not exist
>>>>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>>>>> -> [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/MojoFailureExcepti
>>>>>> on
>>>>>> 
>>>>>> Cheers, Eric
>>>>>> 
>>>>>>> - Brett
>>>>>>> 
>> 
> 

--
Brett Porter   @brettporter
http://brettporter.wordpress.com/
http://au.linkedin.com/in/brettporter


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
Do you just want recommendations on how to improve the documentation, or 
would you rather have pull requests on github?

Cheers, Eric

On 3/6/2014 8:13 PM, Tom Leung wrote:
> Everyone is welcome to contribute the recommendation, but don't expect the
> developers will do your favorites first.
>
> Anyway, your opinion may give an idea how to improve the documentation and
> fulfill the user's expected features in the coming release.
>   
>
>
>
> -----Original Message-----
> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
> Sent: Friday, March 07, 2014 2:25 AM
> To: npanday-users@incubator.apache.org
> Subject: Re: Getting Started
>
> OK, I am finally able to build a small project. I resurrected one of my old
> NPanday projects, used it as a template to create a new project, edited the
> pom.xml and other important files, integrated things with SharpDevelop
> <http://www.icsharpcode.net/OpenSource/SD/Default.aspx>,
> and I can build the same project with either Maven or SharpDevelop. Of
> course there is no NPanday integration with SharpDevelop, but they seem to
> co-exist in harmony.
>
> This was still quite a manual process, that was only made easier because I
> found an existing project to clone. It is disconcerting that:
>
>   1. There seems to be no easy way to create a project from the command
>      line using an archetype.
>   2. There seems to be no easy way to create a project from Visual C#
>      Express 2010 because I could not install the NPanday 1.5 plug-in
>
> I certainly hope some of these pot-holes in the NPanday Roadmap will be
> fixed when 1.5 is released. You get one chance to make a good first
> impression, and this is an area the NPanday is lacking.
>
> Cheers, Eric
>
> On 3/5/2014 11:39 AM, Eric Kolotyluk wrote:
>> Still making no progress on this...
>>
>> There seems to be the stuff I need in
>>
>> https://archiva-repository.apache.org/archiva/repository/snapshots/org
>> /apache/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHO
>> T/
>>
>> but when I try to configure my Nexus to point there, nothing gets
>> downloaded.
>>
>>      Repository ID: archiva-repository
>>      Repository Name: Apache Archiva
>>      Repository Type: proxy
>>      Repository Policy: Release
>>      Repository Format: maven2
>>      Contained in groups:
>>
>>      Remote URL:
>>      
>> https://archiva-repository.apache.org/archiva/repository/snapshots/
>>
>> Nexus claims it is in service, but when I go to the "Browse Remote"
>> tab, it lists some top level directories, however you cannot drill
>> down any further.
>>
>> Next I tried copied the files directly to
>>
>> C:\Users\Eric\.m2\repository\org\apache\npanday\dotnet-archetypes\mave
>> n-archetype-dotnet-simple\1.5.0-incubating-SNAPSHOT
>>
>> but Maven still cannot find it
>>
>>      The desired archetype does not exist
>>      (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>
>> I am getting pretty frustrated now, which is exactly why I gave up on
>> NPanday years ago. I cannot see this project getting past the
>> incubating stage if there is no will to "just make things work in a
>> reasonable way."
>>
>> I am willing to work with people to help make this project better, in
>> particular the documentation, but first I have to actually see some
>> success.
>>
>> Pretty much all of this pain could have been avoided if the
>> npanday-installer-1.5.0-incubating-20140227.115948-74.msi would have
>> installed the missing archetype in the local repository like the other
>> stuff it installed. An even better solutions would to put everything
>> in Maven Central as a release that can be found.
>>
>> Sincerely, Eric
>>
>> On 3/4/2014 3:23 PM, Eric Kolotyluk wrote:
>>> OK, I can see the contents of
>>> http://repository.aduna-software.org/maven2/ from my Nexus, but when
>>> I search for "org.apache.npanday" or "maven-archetype-dotnet-simple"
>>> nothing is found.
>>>
>>> This would seem to explain why Maven is complaining:[ERROR] Failed to
>>> execute goal
>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>> (default-cli) on project standalone-pom: The desired archetype does
>>> not exist
>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) ->
>>> [Help 1]
>>>
>>> Brett, are you sure the archetype is in
>>> http://repository.aduna-software.org/maven2/ ?
>>>
>>> Anyone else, can you see it there?
>>>
>>> Cheers, Eric
>>>
>>> On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>>>> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>>>>> but that prints a list of 930 archetypes, and asks me to pick one.
>>>>>> Not
>>>>> very user friendly, and when I enter "npanday" it does not find
>>>>> anything.
>>>>>
>>>>> try to make your own pom.xml, it is easy to create one from sketch.
>>>> It is not just about creating a pom.xml, but also about creating the
>>>> file system layout for the project. Doing everything manually
>>>> dramatically increases the possibility of defects, which is why we
>>>> use automated tools like Maven. Telling me to just create my own
>>>> pom.xml implies the NPanday is not stable enough to just work
>>>> properly like any other Maven feature.
>>>>
>>>> Do you mean "from scratch" or does "from sketch" mean something else?
>>>>
>>>>> Want to configure your own nexus server for adding remote repository?
>>>>>
>>>>> don't need to configure settings.xml, just try to add an "Proxy
>>>>> Repository"
>>>>> for " Aduna Software " on Nexus server admin console.
>>>>> see the Nexus user guide for more information.
>>>> I did create a Proxy Repository for Aduna on my Nexus server, but it
>>>> does not seem to work. I have tried to configure it like other Proxy
>>>> Repositories (that do work), so I am not sure what the problem is
>>>> with this.
>>>>
>>>> Again, all I can say is that clear, complete and "tested"
>>>> documentation would go a long way to make it easier for people to
>>>> get started with NPanday.
>>>>
>>>> Cheers, Eric
>>>>
>>>>> Best Rgds,
>>>>>
>>>>> Tom
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -----Original Message-----
>>>>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>>>>> Sent: Tuesday, March 04, 2014 1:58 AM
>>>>> To: npanday-users@incubator.apache.org
>>>>> Subject: Re: Getting Started
>>>>>
>>>>> See below...
>>>>>
>>>>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>>>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk
>>>>>> <er...@gmail.com>
>>>>> wrote:
>>>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows
>>>>>>> \ele
>>>>>>>
>>>>>>> vate>mvn archetype:generate
>>>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>>>>> I guess the guide wasn't clear that you need to substitute the
>>>>>> version in
>>>>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are
>>>>> using the MSI. (It might work without specifying the version at
>>>>> all, but I don't have my VM here to verify at the moment).
>>>>>
>>>>> No, the guide is not very clear on many topics. In particular,
>>>>> there are few things better than a concrete example, as prototypes
>>>>> are often open to ambiguous interpretation. In general it is useful
>>>>> to have both prototype examples, and concrete examples.
>>>>>
>>>>> I tried using
>>>>>
>>>>> mvn archetype:generate
>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>> -DarchetypeGroupId=npanday
>>>>>
>>>>>     but that prints a list of 930 archetypes, and asks me to pick
>>>>> one. Not very user friendly, and when I enter "npanday" it does not
>>>>> find anything.
>>>>>
>>>>>>> Is there some other repository I need to configure in my Maven
>>>>>>> settings?
>>>>> Why aren't the necessary NPanday pieces in Maven Central?
>>>>>> They are in central, but only the last release is there, not any
>>>>> snapshots. There are some additional artifacts required from
>>>>> http://repository.aduna-software.org/maven2.
>>>>>
>>>>> I tried configuring that remote repository into the settings.xml
>>>>> file and my nexus server, but that does not seem to work. Here is
>>>>> what I put in my settings.xml
>>>>>
>>>>>              <repository>
>>>>>                  <releases>
>>>>> <updatePolicy>always</updatePolicy>
>>>>>                  </releases>
>>>>>                  <snapshots>
>>>>>                    <enabled>true</enabled>
>>>>> <updatePolicy>always</updatePolicy>
>>>>>                  </snapshots>
>>>>>                  <id>info.aduna.mvn</id>
>>>>>                  <name>Aduna Software</name>
>>>>> <url>http://repository.aduna-software.org/maven2/</url>
>>>>>              </repository>
>>>>>
>>>>> Is there something else I should be configuring there?
>>>>>
>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\e
>>>>> levate>mv
>>>>>
>>>>> n
>>>>> archetype:generate
>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>> -DarchetypeGroupId=npanday
>>>>> -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>>>>> [INFO] Scanning for projects...
>>>>> [INFO]
>>>>> [INFO]
>>>>> -------------------------------------------------------------------
>>>>> -----
>>>>>
>>>>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>>>>> -------------------------------------------------------------------
>>>>> -----
>>>>>
>>>>> [INFO]
>>>>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
>>>>> standalone-pom >>> [INFO] [INFO] <<<
>>>>> maven-archetype-plugin:2.2:generate
>>>>> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
>>>>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom
>>>>> --- [INFO] Generating project in Interactive mode [WARNING]
>>>>> Archetype not found in any catalog. Falling back to central
>>>>> repository (http://repo1.maven.org/maven2).
>>>>> [WARNING] Use -DarchetypeRepository=<your repository> if
>>>>> archetype's repository is elsewhere.
>>>>> Downloading:
>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>> hetype-do
>>>>>
>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>> Downloading:
>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>> hetype-do
>>>>>
>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>>>> Downloading:
>>>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-arc
>>>>> hetype-do
>>>>>
>>>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple
>>>>> -1.5.0-in
>>>>>
>>>>> cubating-SNAPSHOT.jar
>>>>> [INFO]
>>>>> -------------------------------------------------------------------
>>>>> -----
>>>>>
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> -------------------------------------------------------------------
>>>>> -----
>>>>>
>>>>> [INFO] Total time: 4.573s
>>>>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>>>>> 32M/1963M [INFO]
>>>>> -------------------------------------------------------------------
>>>>> -----
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>>>> (default-cli) on project standalone-pom: The desired archetype does
>>>>> not exist
>>>>> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>>>> -> [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/MojoFailureExcepti
>>>>> on
>>>>>
>>>>> Cheers, Eric
>>>>>
>>>>>> - Brett
>>>>>>
>


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
Still making no progress on this...

There seems to be the stuff I need in

https://archiva-repository.apache.org/archiva/repository/snapshots/org/apache/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHOT/

but when I try to configure my Nexus to point there, nothing gets 
downloaded.

    Repository ID: archiva-repository
    Repository Name: Apache Archiva
    Repository Type: proxy
    Repository Policy: Release
    Repository Format: maven2
    Contained in groups:

    Remote URL:
    https://archiva-repository.apache.org/archiva/repository/snapshots/

Nexus claims it is in service, but when I go to the "Browse Remote" tab, 
it lists some top level directories, however you cannot drill down any 
further.

Next I tried copied the files directly to

C:\Users\Eric\.m2\repository\org\apache\npanday\dotnet-archetypes\maven-archetype-dotnet-simple\1.5.0-incubating-SNAPSHOT

but Maven still cannot find it

    The desired archetype does not exist
    (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)

I am getting pretty frustrated now, which is exactly why I gave up on 
NPanday years ago. I cannot see this project getting past the incubating 
stage if there is no will to "just make things work in a reasonable way."

I am willing to work with people to help make this project better, in 
particular the documentation, but first I have to actually see some success.

Pretty much all of this pain could have been avoided if the 
npanday-installer-1.5.0-incubating-20140227.115948-74.msi would have 
installed the missing archetype in the local repository like the other 
stuff it installed. An even better solutions would to put everything in 
Maven Central as a release that can be found.

Sincerely, Eric

On 3/4/2014 3:23 PM, Eric Kolotyluk wrote:
> OK, I can see the contents of 
> http://repository.aduna-software.org/maven2/ from my Nexus, but when I 
> search for "org.apache.npanday" or "maven-archetype-dotnet-simple" 
> nothing is found.
>
> This would seem to explain why Maven is complaining:[ERROR] Failed to 
> execute goal 
> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate 
> (default-cli) on project standalone-pom: The desired archetype does 
> not exist 
> (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) -> 
> [Help 1]
>
> Brett, are you sure the archetype is in 
> http://repository.aduna-software.org/maven2/ ?
>
> Anyone else, can you see it there?
>
> Cheers, Eric
>
> On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>>
>> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>>> but that prints a list of 930 archetypes, and asks me to pick one. Not
>>> very user friendly, and when I enter "npanday" it does not find 
>>> anything.
>>>
>>> try to make your own pom.xml, it is easy to create one from sketch.
>>
>> It is not just about creating a pom.xml, but also about creating the 
>> file system layout for the project. Doing everything manually 
>> dramatically increases the possibility of defects, which is why we 
>> use automated tools like Maven. Telling me to just create my own 
>> pom.xml implies the NPanday is not stable enough to just work 
>> properly like any other Maven feature.
>>
>> Do you mean "from scratch" or does "from sketch" mean something else?
>>
>>>
>>> Want to configure your own nexus server for adding remote repository?
>>>
>>> don't need to configure settings.xml, just try to add an "Proxy 
>>> Repository"
>>> for " Aduna Software " on Nexus server admin console.
>>> see the Nexus user guide for more information.
>>
>> I did create a Proxy Repository for Aduna on my Nexus server, but it 
>> does not seem to work. I have tried to configure it like other Proxy 
>> Repositories (that do work), so I am not sure what the problem is 
>> with this.
>>
>> Again, all I can say is that clear, complete and "tested" 
>> documentation would go a long way to make it easier for people to get 
>> started with NPanday.
>>
>> Cheers, Eric
>>
>>>
>>> Best Rgds,
>>>
>>> Tom
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>>> Sent: Tuesday, March 04, 2014 1:58 AM
>>> To: npanday-users@incubator.apache.org
>>> Subject: Re: Getting Started
>>>
>>> See below...
>>>
>>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com>
>>> wrote:
>>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\ele
>>>>> vate>mvn archetype:generate
>>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>>> I guess the guide wasn't clear that you need to substitute the 
>>>> version in
>>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using 
>>> the
>>> MSI. (It might work without specifying the version at all, but I 
>>> don't have
>>> my VM here to verify at the moment).
>>>
>>> No, the guide is not very clear on many topics. In particular, there 
>>> are few
>>> things better than a concrete example, as prototypes are often open to
>>> ambiguous interpretation. In general it is useful to have both 
>>> prototype
>>> examples, and concrete examples.
>>>
>>> I tried using
>>>
>>> mvn archetype:generate
>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>> -DarchetypeGroupId=npanday
>>>
>>>    but that prints a list of 930 archetypes, and asks me to pick 
>>> one. Not
>>> very user friendly, and when I enter "npanday" it does not find 
>>> anything.
>>>
>>>>> Is there some other repository I need to configure in my Maven 
>>>>> settings?
>>> Why aren't the necessary NPanday pieces in Maven Central?
>>>> They are in central, but only the last release is there, not any
>>> snapshots. There are some additional artifacts required from
>>> http://repository.aduna-software.org/maven2.
>>>
>>> I tried configuring that remote repository into the settings.xml 
>>> file and my
>>> nexus server, but that does not seem to work. Here is what I put in my
>>> settings.xml
>>>
>>>             <repository>
>>>                 <releases>
>>> <updatePolicy>always</updatePolicy>
>>>                 </releases>
>>>                 <snapshots>
>>>                   <enabled>true</enabled>
>>> <updatePolicy>always</updatePolicy>
>>>                 </snapshots>
>>>                 <id>info.aduna.mvn</id>
>>>                 <name>Aduna Software</name>
>>> <url>http://repository.aduna-software.org/maven2/</url>
>>>             </repository>
>>>
>>> Is there something else I should be configuring there?
>>>
>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv 
>>>
>>> n
>>> archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>> -DarchetypeGroupId=npanday -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO]
>>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
>>> standalone-pom >>> [INFO] [INFO] <<< 
>>> maven-archetype-plugin:2.2:generate
>>> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
>>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
>>> [INFO] Generating project in Interactive mode [WARNING] Archetype 
>>> not found
>>> in any catalog. Falling back to central repository
>>> (http://repo1.maven.org/maven2).
>>> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's
>>> repository is elsewhere.
>>> Downloading:
>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>
>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>> Downloading:
>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>
>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>>> Downloading:
>>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>>
>>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-in 
>>>
>>> cubating-SNAPSHOT.jar
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] Total time: 4.573s
>>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>>> 32M/1963M [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>>> (default-cli) on project standalone-pom: The desired archetype does not
>>> exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>>> -> [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/MojoFailureException
>>>
>>> Cheers, Eric
>>>
>>>> - Brett
>>>>
>>
>


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
OK, I can see the contents of 
http://repository.aduna-software.org/maven2/ from my Nexus, but when I 
search for "org.apache.npanday" or "maven-archetype-dotnet-simple" 
nothing is found.

This would seem to explain why Maven is complaining:[ERROR] Failed to 
execute goal 
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate 
(default-cli) on project standalone-pom: The desired archetype does not 
exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) 
-> [Help 1]

Brett, are you sure the archetype is in 
http://repository.aduna-software.org/maven2/ ?

Anyone else, can you see it there?

Cheers, Eric

On 3/3/2014 6:22 PM, Eric Kolotyluk wrote:
>
> On 3/3/2014 5:53 PM, Tom Leung wrote:
>>> but that prints a list of 930 archetypes, and asks me to pick one. Not
>> very user friendly, and when I enter "npanday" it does not find 
>> anything.
>>
>> try to make your own pom.xml, it is easy to create one from sketch.
>
> It is not just about creating a pom.xml, but also about creating the 
> file system layout for the project. Doing everything manually 
> dramatically increases the possibility of defects, which is why we use 
> automated tools like Maven. Telling me to just create my own pom.xml 
> implies the NPanday is not stable enough to just work properly like 
> any other Maven feature.
>
> Do you mean "from scratch" or does "from sketch" mean something else?
>
>>
>> Want to configure your own nexus server for adding remote repository?
>>
>> don't need to configure settings.xml, just try to add an "Proxy 
>> Repository"
>> for " Aduna Software " on Nexus server admin console.
>> see the Nexus user guide for more information.
>
> I did create a Proxy Repository for Aduna on my Nexus server, but it 
> does not seem to work. I have tried to configure it like other Proxy 
> Repositories (that do work), so I am not sure what the problem is with 
> this.
>
> Again, all I can say is that clear, complete and "tested" 
> documentation would go a long way to make it easier for people to get 
> started with NPanday.
>
> Cheers, Eric
>
>>
>> Best Rgds,
>>
>> Tom
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
>> Sent: Tuesday, March 04, 2014 1:58 AM
>> To: npanday-users@incubator.apache.org
>> Subject: Re: Getting Started
>>
>> See below...
>>
>> On 3/1/2014 8:05 PM, Brett Porter wrote:
>>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com>
>> wrote:
>>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\ele
>>>> vate>mvn archetype:generate
>>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>>> I guess the guide wasn't clear that you need to substitute the 
>>> version in
>> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using the
>> MSI. (It might work without specifying the version at all, but I 
>> don't have
>> my VM here to verify at the moment).
>>
>> No, the guide is not very clear on many topics. In particular, there 
>> are few
>> things better than a concrete example, as prototypes are often open to
>> ambiguous interpretation. In general it is useful to have both prototype
>> examples, and concrete examples.
>>
>> I tried using
>>
>> mvn archetype:generate
>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>> -DarchetypeGroupId=npanday
>>
>>    but that prints a list of 930 archetypes, and asks me to pick one. 
>> Not
>> very user friendly, and when I enter "npanday" it does not find 
>> anything.
>>
>>>> Is there some other repository I need to configure in my Maven 
>>>> settings?
>> Why aren't the necessary NPanday pieces in Maven Central?
>>> They are in central, but only the last release is there, not any
>> snapshots. There are some additional artifacts required from
>> http://repository.aduna-software.org/maven2.
>>
>> I tried configuring that remote repository into the settings.xml file 
>> and my
>> nexus server, but that does not seem to work. Here is what I put in my
>> settings.xml
>>
>>             <repository>
>>                 <releases>
>> <updatePolicy>always</updatePolicy>
>>                 </releases>
>>                 <snapshots>
>>                   <enabled>true</enabled>
>> <updatePolicy>always</updatePolicy>
>>                 </snapshots>
>>                 <id>info.aduna.mvn</id>
>>                 <name>Aduna Software</name>
>> <url>http://repository.aduna-software.org/maven2/</url>
>>             </repository>
>>
>> Is there something else I should be configuring there?
>>
>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv 
>>
>> n
>> archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
>> -DarchetypeGroupId=npanday -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
>> [INFO] Scanning for projects...
>> [INFO]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
>> standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate
>> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
>> [INFO] Generating project in Interactive mode [WARNING] Archetype not 
>> found
>> in any catalog. Falling back to central repository
>> (http://repo1.maven.org/maven2).
>> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's
>> repository is elsewhere.
>> Downloading:
>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>
>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>> Downloading:
>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>
>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
>> Downloading:
>> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do 
>>
>> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-in 
>>
>> cubating-SNAPSHOT.jar
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4.573s
>> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
>> 32M/1963M [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
>> (default-cli) on project standalone-pom: The desired archetype does not
>> exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
>> -> [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/MojoFailureException
>>
>> Cheers, Eric
>>
>>> - Brett
>>>
>


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
On 3/3/2014 5:53 PM, Tom Leung wrote:
>> but that prints a list of 930 archetypes, and asks me to pick one. Not
> very user friendly, and when I enter "npanday" it does not find anything.
>
> try to make your own pom.xml, it is easy to create one from sketch.

It is not just about creating a pom.xml, but also about creating the 
file system layout for the project. Doing everything manually 
dramatically increases the possibility of defects, which is why we use 
automated tools like Maven. Telling me to just create my own pom.xml 
implies the NPanday is not stable enough to just work properly like any 
other Maven feature.

Do you mean "from scratch" or does "from sketch" mean something else?

>
> Want to configure your own nexus server for adding remote repository?
>
> don't need to configure settings.xml, just try to add an "Proxy Repository"
> for " Aduna Software " on Nexus server admin console.
> see the Nexus user guide for more information.

I did create a Proxy Repository for Aduna on my Nexus server, but it 
does not seem to work. I have tried to configure it like other Proxy 
Repositories (that do work), so I am not sure what the problem is with this.

Again, all I can say is that clear, complete and "tested" documentation 
would go a long way to make it easier for people to get started with 
NPanday.

Cheers, Eric

>
> Best Rgds,
>
> Tom
>
>
>
>
>
> -----Original Message-----
> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
> Sent: Tuesday, March 04, 2014 1:58 AM
> To: npanday-users@incubator.apache.org
> Subject: Re: Getting Started
>
> See below...
>
> On 3/1/2014 8:05 PM, Brett Porter wrote:
>> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com>
> wrote:
>>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\ele
>>> vate>mvn archetype:generate
>>> -DarchetypeArtifactId=maven-archetype-dotnet-simple
>>> -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
>> I guess the guide wasn't clear that you need to substitute the version in
> here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using the
> MSI. (It might work without specifying the version at all, but I don't have
> my VM here to verify at the moment).
>
> No, the guide is not very clear on many topics. In particular, there are few
> things better than a concrete example, as prototypes are often open to
> ambiguous interpretation. In general it is useful to have both prototype
> examples, and concrete examples.
>
> I tried using
>
> mvn archetype:generate
> -DarchetypeArtifactId=maven-archetype-dotnet-simple
> -DarchetypeGroupId=npanday
>
>    but that prints a list of 930 archetypes, and asks me to pick one. Not
> very user friendly, and when I enter "npanday" it does not find anything.
>
>>> Is there some other repository I need to configure in my Maven settings?
> Why aren't the necessary NPanday pieces in Maven Central?
>> They are in central, but only the last release is there, not any
> snapshots. There are some additional artifacts required from
> http://repository.aduna-software.org/maven2.
>
> I tried configuring that remote repository into the settings.xml file and my
> nexus server, but that does not seem to work. Here is what I put in my
> settings.xml
>
>             <repository>
>                 <releases>
>                     <updatePolicy>always</updatePolicy>
>                 </releases>
>                 <snapshots>
>                   <enabled>true</enabled>
>                   <updatePolicy>always</updatePolicy>
>                 </snapshots>
>                 <id>info.aduna.mvn</id>
>                 <name>Aduna Software</name>
> <url>http://repository.aduna-software.org/maven2/</url>
>             </repository>
>
> Is there something else I should be configuring there?
>
> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv
> n
> archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
> -DarchetypeGroupId=npanday -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Stub Project (No POM) 1 [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
> standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate
> (default-cli) @ standalone-pom <<< [INFO] [INFO] ---
> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
> [INFO] Generating project in Interactive mode [WARNING] Archetype not found
> in any catalog. Falling back to central repository
> (http://repo1.maven.org/maven2).
> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's
> repository is elsewhere.
> Downloading:
> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
> Downloading:
> http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-do
> tnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-in
> cubating-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.573s
> [INFO] Finished at: Mon Mar 03 09:49:46 PST 2014 [INFO] Final Memory:
> 32M/1963M [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
> (default-cli) on project standalone-pom: The desired archetype does not
> exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT)
> -> [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/MojoFailureException
>
> Cheers, Eric
>
>> - Brett
>>


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
See below...

On 3/1/2014 8:05 PM, Brett Porter wrote:
> On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com> wrote:
>
>> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mvn archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple -DarchetypeGroupId=npanday -DarchetypeVersion=[version]
> I guess the guide wasn't clear that you need to substitute the version in here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using the MSI. (It might work without specifying the version at all, but I don't have my VM here to verify at the moment).

No, the guide is not very clear on many topics. In particular, there are 
few things better than a concrete example, as prototypes are often open 
to ambiguous interpretation. In general it is useful to have both 
prototype examples, and concrete examples.

I tried using

mvn archetype:generate 
-DarchetypeArtifactId=maven-archetype-dotnet-simple 
-DarchetypeGroupId=npanday

  but that prints a list of 930 archetypes, and asks me to pick one. Not 
very user friendly, and when I enter "npanday" it does not find anything.

>
>> Is there some other repository I need to configure in my Maven settings? Why aren't the necessary NPanday pieces in Maven Central?
> They are in central, but only the last release is there, not any snapshots. There are some additional artifacts required from http://repository.aduna-software.org/maven2.

I tried configuring that remote repository into the settings.xml file 
and my nexus server, but that does not seem to work. Here is what I put 
in my settings.xml

           <repository>
               <releases>
                   <updatePolicy>always</updatePolicy>
               </releases>
               <snapshots>
                 <enabled>true</enabled>
                 <updatePolicy>always</updatePolicy>
               </snapshots>
               <id>info.aduna.mvn</id>
               <name>Aduna Software</name>
<url>http://repository.aduna-software.org/maven2/</url>
           </repository>

Is there something else I should be configuring there?

D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mvn 
archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple 
-DarchetypeGroupId=npanday -DarchetypeVersion=1.5.0-incubating-SNAPSHOT
[INFO] Scanning for projects...
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central 
repository (http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's 
repository is elsewhere.
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHOT/maven-metadata.xml
Downloading: 
http://localhost:8081/nexus/content/groups/public/npanday/maven-archetype-dotnet-simple/1.5.0-incubating-SNAPSHOT/maven-archetype-dotnet-simple-1.5.0-incubating-SNAPSHOT.jar
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4.573s
[INFO] Finished at: Mon Mar 03 09:49:46 PST 2014
[INFO] Final Memory: 32M/1963M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate 
(default-cli) on project standalone-pom: The desired archetype does not 
exist (npanday:maven-archetype-dotnet-simple:1.5.0-incubating-SNAPSHOT) 
-> [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/MojoFailureException

Cheers, Eric

>
> - Brett
>


Re: Getting Started

Posted by Brett Porter <br...@apache.org>.
On 28 Feb 2014, at 3:01 am, Eric Kolotyluk <er...@gmail.com> wrote:

> D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mvn archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple -DarchetypeGroupId=npanday -DarchetypeVersion=[version]

I guess the guide wasn't clear that you need to substitute the version in here. It should be set to 1.5.0-incubating-SNAPSHOT if you are using the MSI. (It might work without specifying the version at all, but I don't have my VM here to verify at the moment).

> Is there some other repository I need to configure in my Maven settings? Why aren't the necessary NPanday pieces in Maven Central?

They are in central, but only the last release is there, not any snapshots. There are some additional artifacts required from http://repository.aduna-software.org/maven2.

- Brett


RE: Getting Started

Posted by Tom Leung <to...@netage.com.hk>.
I don't use "archetype:generate" command.  I create maven projects from
sketch

you may create one pom.xml file as following sample:

<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>npanday-test</groupId>
  <artifactId>ConsoleApplication1</artifactId>
  <packaging>dotnet-executable</packaging>
  <name>ConsoleApplication1 : ConsoleApplication1</name>
  <build>
    <sourceDirectory>./</sourceDirectory>
    <plugins>
      <plugin>
        <groupId>org.apache.npanday.plugins</groupId>
        <artifactId>maven-compile-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <frameworkVersion>4.0</frameworkVersion>
          <define>DEBUG;TRACE</define>
          <includeSources>
            <includeSource>Program.cs</includeSource>
            <includeSource>Properties\AssemblyInfo.cs</includeSource>
          </includeSources>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies />
</project>


-----Original Message-----
From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com] 
Sent: Friday, February 28, 2014 12:01 AM
To: npanday-users@incubator.apache.org
Subject: Re: Getting Started

I was using the latest 1.4 version.

So I installed the latest 1.5 version.

When I try to create a new project from and archetype I get:

D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mv
n
archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple
-DarchetypeGroupId=npanday -DarchetypeVersion=[version] [INFO] Scanning for
projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1 [INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @
standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.2:generate
(default-cli) @ standalone-pom <<< [INFO] [INFO] ---
maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode [WARNING] Archetype not found
in any catalog. Falling back to central repository
(http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's
repository is elsewhere.
Downloading: 
http://repo1.maven.org/maven2/npanday/maven-archetype-dotnet-simple/[version
]/maven-archetype-dotnet-simple-[version].jar
Downloading: 
http://repo.maven.apache.org/maven2/npanday/maven-archetype-dotnet-simple/[v
ersion]/maven-archetype-dotnet-simple-[version].jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4.726s
[INFO] Finished at: Thu Feb 27 07:50:33 PST 2014 [INFO] Final Memory:
31M/1963M [INFO]
------------------------------------------------------------------------
[WARNING] The requested profile "nexus-kolotyluk" could not be activated
because it does not exist.
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate
(default-cli) on project standalone-pom: The desired archetype does not
exist (npanday:maven-archetype-dotnet-simple:[version]) -> [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/MojoFailureException
D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>

Presumably, the archetype is not in my local repository. Why didn't the .msi
put it there for me?

Is there some other repository I need to configure in my Maven settings? 
Why aren't the necessary NPanday pieces in Maven Central?

As an aside, I don't have any love for Visual Studio, and right now I am
using http://www.icsharpcode.net/OpenSource/SD/Default.aspx

I can live without the IDE integration for now, and just use NPanday from
the command line.

Cheers, Eric

On 2/26/2014 5:19 PM, Tom Leung wrote:
> I am using NPanday daily.
>
> What version of NPanday you are using?
>
> NPanday version 1.4 comes with several bugs, it doesn't work properly.
>
> You should get the latest snapshot version for testing NPanday as the 
> following link:
>
> https://archiva-repository.apache.org/archiva/repository/snapshots/org
> /apach e/npanday/npanday-installer/1.5.0-incubating-SNAPSHOT/
>
>
> Best Rgds,
>
> Tom
>
>
> -----Original Message-----
> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
> Sent: Thursday, February 27, 2014 1:47 AM
> To: npanday-users@incubator.apache.org
> Subject: Getting Started
>
> I tried using NPanday a few years ago, but gave up because there were 
> just too many problems for it to actually be useful.
>
> I am trying to give NPanday another chance, but I am once again just 
> running into nothing but problems. The instructions for getting started
are broken.
>
> Is this project still active? Is there anyone maintaining it? Does 
> anyone have a set of getting started instructions that actually makes 
> sense, and has been tested?
>
> Sincerely, Eric
>


Re: Getting Started

Posted by Eric Kolotyluk <er...@gmail.com>.
I was using the latest 1.4 version.

So I installed the latest 1.5 version.

When I try to create a new project from and archetype I get:

D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>mvn 
archetype:generate -DarchetypeArtifactId=maven-archetype-dotnet-simple 
-DarchetypeGroupId=npanday -DarchetypeVersion=[version]
[INFO] Scanning for projects...
[INFO]
[INFO] 
------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] 
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ 
standalone-pom ---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central 
repository (http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's 
repository is elsewhere.
Downloading: 
http://repo1.maven.org/maven2/npanday/maven-archetype-dotnet-simple/[version]/maven-archetype-dotnet-simple-[version].jar
Downloading: 
http://repo.maven.apache.org/maven2/npanday/maven-archetype-dotnet-simple/[version]/maven-archetype-dotnet-simple-[version].jar
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4.726s
[INFO] Finished at: Thu Feb 27 07:50:33 PST 2014
[INFO] Final Memory: 31M/1963M
[INFO] 
------------------------------------------------------------------------
[WARNING] The requested profile "nexus-kolotyluk" could not be activated 
because it does not exist.
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:2.2:generate 
(default-cli) on project standalone-pom: The desired archetype does not 
exist (npanday:maven-archetype-dotnet-simple:[version]) -> [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/MojoFailureException
D:\Users\Eric\Software\Project\Repositories\net\kolotyluk\windows\elevate>

Presumably, the archetype is not in my local repository. Why didn't the 
.msi put it there for me?

Is there some other repository I need to configure in my Maven settings? 
Why aren't the necessary NPanday pieces in Maven Central?

As an aside, I don't have any love for Visual Studio, and right now I am 
using http://www.icsharpcode.net/OpenSource/SD/Default.aspx

I can live without the IDE integration for now, and just use NPanday 
from the command line.

Cheers, Eric

On 2/26/2014 5:19 PM, Tom Leung wrote:
> I am using NPanday daily.
>
> What version of NPanday you are using?
>
> NPanday version 1.4 comes with several bugs, it doesn't work properly.
>
> You should get the latest snapshot version for testing NPanday as the
> following link:
>
> https://archiva-repository.apache.org/archiva/repository/snapshots/org/apach
> e/npanday/npanday-installer/1.5.0-incubating-SNAPSHOT/
>
>
> Best Rgds,
>
> Tom
>
>
> -----Original Message-----
> From: Eric Kolotyluk [mailto:eric.kolotyluk@gmail.com]
> Sent: Thursday, February 27, 2014 1:47 AM
> To: npanday-users@incubator.apache.org
> Subject: Getting Started
>
> I tried using NPanday a few years ago, but gave up because there were just
> too many problems for it to actually be useful.
>
> I am trying to give NPanday another chance, but I am once again just running
> into nothing but problems. The instructions for getting started are broken.
>
> Is this project still active? Is there anyone maintaining it? Does anyone
> have a set of getting started instructions that actually makes sense, and
> has been tested?
>
> Sincerely, Eric
>


RE: Getting Started

Posted by Akehurst David <Da...@uk.thalesgroup.com>.
I too am using it daily,
happy to help with regression testing.

(there is a small feature addition I was hoping to get into the 1.5.0 release,
will send details when I get home)





David Akehurst
Software Architect

Thales UK
1 Linthouse Road, Glasgow G51 4BZ, UK
www.thalesgroup.com/uk

Tel: +44 (0)141 440 4512.  Mob:  Fax: +44 (0) 141 440 4051.
e-mail: david.akehurst@uk.thalesgroup.com 

Please consider the environment before printing a hard copy of this e-mail. 

The information contained in this e-mail is confidential. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have received this e-mail in error, please inform us immediately on +44 (0)141 440 4000 and delete it and all copies from your system. 

Thales Corporate Services Limited. A company registered in England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number: 959962.  

Thales UK Limited. A company registered in England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number: 868273
 

-----Original Message-----
From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
Sent: 27 February 2014 12:36
To: npanday-users@incubator.apache.org
Subject: Re: Getting Started


On 27 Feb 2014, at 12:19 pm, Tom Leung <to...@netage.com.hk> wrote:

> I am using NPanday daily.

Thanks Tom, that's great to hear. Please let me encourage you to follow the dev list - if you're using the latest regularly we'd love to get your help with testing in the lead up to a release.

Cheers,
Brett


RE: Getting Started

Posted by Tom Leung <to...@netage.com.hk>.
Sure, I would like to contribute my effort for testing the latest NPANDAY.

Best Rgds,

Tom




-----Original Message-----
From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
Sent: Thursday, February 27, 2014 8:36 PM
To: npanday-users@incubator.apache.org
Subject: Re: Getting Started


On 27 Feb 2014, at 12:19 pm, Tom Leung <to...@netage.com.hk> wrote:

> I am using NPanday daily.

Thanks Tom, that's great to hear. Please let me encourage you to follow the
dev list - if you're using the latest regularly we'd love to get your help
with testing in the lead up to a release.

Cheers,
Brett


Re: Getting Started

Posted by Brett Porter <br...@apache.org>.
On 27 Feb 2014, at 12:19 pm, Tom Leung <to...@netage.com.hk> wrote:

> I am using NPanday daily.

Thanks Tom, that's great to hear. Please let me encourage you to follow the dev list - if you're using the latest regularly we'd love to get your help with testing in the lead up to a release.

Cheers,
Brett