Just realised my attachment didnt get through to the mailing list so am pasting 
in the details below.

Thanks
Sharan

======================================================

base) sharan@kibian:~$ cd /opt/shazasf/training/incubator-training/
(base) sharan@kibian:/opt/shazasf/training/incubator-training$ ls
content  DISCLAIMER  LICENSE  NOTICE  pom.xml  README.md  sessions  site  tools
(base) sharan@kibian:/opt/shazasf/training/incubator-training$ cd content
(base) sharan@kibian:/opt/shazasf/training/incubator-training/content$ mvn 
archetype:generate -DarchetypeGroupId=org.apache.training 
-DarchetypeArtifactId=content-archetype -DarchetypeVersion=1.0.0-SNAPSHOT
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
com.google.inject.internal.cglib.core.$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of 
com.google.inject.internal.cglib.core.$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > 
generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < 
generate-sources @ standalone-pom <<<
[INFO] 
[INFO] 
[INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom 
---
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central 
repository.
[WARNING] Add a repository with id 'archetype' in your settings.xml if 
archetype's repository is elsewhere.
[WARNING] The POM for org.apache.training:content-archetype:jar:1.0.0-SNAPSHOT 
is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.582 s
[INFO] Finished at: 2020-05-23T10:26:06+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on 
project standalone-pom: The desired archetype does not exist 
(org.apache.training:content-archetype:1.0.0-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
(base) sharan@kibian:/opt/shazasf/training/incubator-training/content$ 

============================================

On 2020/05/23 08:34:13, sharanf <[email protected]> wrote: 
> Hi Gautam
> 
> Thanks for this. Just for info here is what I did a few days ago to 
> prepare things.
> 
> I forked training on github to sharanf / incubator-training
> 
> Then locally on my pc I did the following
> 
> mkdir training
> cd training
> git clone https://github.com/sharanf/incubator-training.git
> git branch AddComDevDirectory
> git checkout AddComDevDirectory
> cd content
> 
> And this is my starting point before I ran the maven command. I took a 
> closer look at my history and  swa that part of the command was missing 
> so guess this is why I was getting my original error message.
> 
> So this morning I re-ran the maven command again - this time making sure 
> that I included it all.
> 
> cd content
> mvn archetype:generate -DarchetypeGroupId=org.apache.training 
> -DarchetypeArtifactId=content-archetype -DarchetypeVersion=1.0.0-SNAPSHOT
> 
> Now I am getting a different error message for a build failure and have 
> attached a screenshot.
> 
> Thanks
> Sharan
> 
> On 2020-05-22 19:44, gautam gupta wrote:
> > Hi Sharan,
> > Could you please share the screenshot of commands that you ran?
> >
> > Just to check, I ran this set of commands to create a folder named "train":
> > cd temp
> > git clone https://github.com/apache/incubator-training.git
> > cd incubator-training/
> > cd content/
> > mvn archetype:generate -DarchetypeGroupId=org.apache.training
> > -DarchetypeArtifactId=content-archetype -DarchetypeVersion=1.0.0-SNAPSHOT
> > cd train
> >
> > These were my inputs:
> > [INFO] Generating project in Interactive mode
> > [INFO] Archetype repository not defined. Using the one from
> > [org.apache.training:content-archetype:1.0.0-SNAPSHOT] found in catalog
> > local
> > Define value for property 'groupId': abc
> > Define value for property 'artifactId': train
> > Define value for property 'version' 1.0-SNAPSHOT: : 1.0-SNAPSHOT
> > Define value for property 'package' abc: : war
> > Confirm properties configuration:
> > groupId: abc
> > artifactId: train
> > version: 1.0-SNAPSHOT
> > package: war
> >   Y: : Y
> >
> > thanks,
> > Gautam
> >
> > On Fri, May 22, 2020 at 9:21 AM sharanf <[email protected]> wrote:
> >
> >> Hi Gautam
> >>
> >> Thanks for the response.
> >>
> >> I tried running the command you mentioned in the content directory and
> >> am getting the following message.
> >>
> >>       "Choose a number or apply filter (format: [groupId:]artifactId,
> >> case sensitive contains) ::"
> >>
> >> Once I enter anything I get the following message:
> >>
> >>       "Your filter doesnt match any archetype (hint: enter to return to
> >> initial list)"
> >>
> >> I have tried hitting enter but the first message "Choose a number or
> >> apply filter (format: [groupId:]artifactId, case sensitive contains) ::"
> >> just repeats again.
> >> Any suggestions to what I'm doing wrong?
> >>
> >> Thanks
> >> Sharan
> >>
> >> On 2020-05-22 01:58, gautam gupta wrote:
> >>> Hi Sharan,
> >>> Yes, you can run this command from "incubator-training/content" directory
> >>> to create the new folder. It'll ask you for the value of groupid,
> >>> artifactid, packaging etc.
> >>>
> >>> *Command: *
> >>>
> >>> mvn archetype:generate -DarchetypeGroupId=org.apache.training
> >>> -DarchetypeArtifactId=content-archetype
> >>> -DarchetypeVersion=1.0.0-SNAPSHOT
> >>>
> >>> Define value for property 'groupId': org.apache.training
> >>> Define value for property 'artifactId': Apache-Hive
> >>> Define value for property 'version' 1.0-SNAPSHOT: : 1.0.0.SNAPSHOT
> >>> Define value for property 'package' org.apache.training: : war
> >>>
> >>> Thanks,
> >>>
> >>> Gautam
> >>>
> >>>
> >>> On Thu, May 21, 2020 at 2:28 PM Sönke Liebau
> >>> <[email protected]> wrote:
> >>>
> >>>> Hi Sharan,
> >>>>
> >>>> I believe that template directory was removed in favor of the Maven
> >>>> archetype that Chris created.
> >>>>
> >>>> Please have a look at https://training.apache.org/users/index.html for
> >>>> some
> >>>> guidance.
> >>>>
> >>>> And if that is not enough (I realize the site is somewhat brief) please
> >>>> feel free to reach out again!
> >>>>
> >>>> Best regards,
> >>>> Sönke
> >>>>
> >>>>
> >>>> On Thu, 21 May 2020 at 21:19, Sharan Foga <[email protected]> wrote:
> >>>>
> >>>>> Hi All
> >>>>>
> >>>>> I was looking to create a ComDev directory for some training content.
> >>>>> There used to be a template directory  to copy from but I cant see it
> >>>>> anymore. Has it been moved?
> >>>>>
> >>>>> Thanks
> >>>>> Sharan
> >>>>>
> >>>> --
> >>>> Sönke Liebau
> >>>> Partner
> >>>> Tel. +49 179 7940878
> >>>> OpenCore GmbH & Co. KG - Thomas-Mann-Straße 8 - 22880 Wedel - Germany
> >>>>
> >>
> 
> 

Reply via email to