incubator-npanday-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Kolotyluk <eric.koloty...@gmail.com>
Subject Re: Getting Started
Date Tue, 04 Mar 2014 23:23:45 GMT
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 <eric.kolotyluk@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
>>>
>


Mime
View raw message