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.koloty...@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.koloty...@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
>

Reply via email to