Thanks for taking a look Sönke!  I'll try it again.

Thanks
Sharan

On 2020/05/23 10:09:08, Sönke Liebau <[email protected]> 
wrote: 
> Hi Sharan,
> 
> I've just cloned a fresh copy and created a new presentation with the
> following commands. I hope that helps!
> 
> ➜ tmp git clone [email protected]:apache/incubator-training.git
> 
> 
> 
> 
> 
> Cloning into 'incubator-training'...
> remote: Enumerating objects: 1973, done.
> remote: Total 1973 (delta 0), reused 0 (delta 0), pack-reused 1973
> Receiving objects: 100% (1973/1973), 36.68 MiB | 477.00 KiB/s, done.
> Resolving deltas: 100% (770/770), done.
> 
> 
> ➜  tmp cd incubator-training
> 
> 
> ➜  incubator-training git:(master) mvn install
> [INFO] Scanning for projects...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Training: Website
>    [pom]
> [INFO] Training: Tools: Content Archetype
> [maven-archetype]
> [INFO] Training: Tools: Content Master Resources
>    [jar]
> [INFO] Training: Tools: Content Master Pom
>    [pom]
> [INFO] Training Parent
>    [pom]
> [INFO] Training: Tools
>    [pom]
> [INFO]
> [INFO] ----------------< org.apache.training:training-website
> >----------------
> [INFO] Building Training: Website 0.4.0-SNAPSHOT
>    [1/6]
> [INFO] --------------------------------[ pom
> ]---------------------------------
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version)
> @ training-website ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.7.0:process
> (process-resource-bundles) @ training-website ---
> [INFO] Preparing remote bundle
> org.apache:apache-jar-resource-bundle:1.4
> ...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Training: Website 0.4.0-SNAPSHOT ................... SUCCESS [  2.086 
> s]
> [INFO] Training: Tools: Content Archetype 1.0.0-SNAPSHOT .. SUCCESS [  0.958 
> s]
> [INFO] Training: Tools: Content Master Resources 1.0.0-SNAPSHOT
> SUCCESS [  0.653 s]
> [INFO] Training: Tools: Content Master Pom 1.0.0-SNAPSHOT . SUCCESS [  1.944 
> s]
> [INFO] Training Parent 0.4.0-SNAPSHOT ..................... SUCCESS [  0.018 
> s]
> [INFO] Training: Tools 0.4.0-SNAPSHOT ..................... SUCCESS [  0.019 
> s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  5.871 s
> [INFO] Finished at: 2020-05-23T11:54:04+02:00
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> ➜  incubator-training git:(master) cd content
> 
> 
> ➜  content git:(master) mvn archetype:generate
> -DarchetypeGroupId=org.apache.training
> -DarchetypeArtifactId=content-archetype
> -DarchetypeVersion=1.0.0-SNAPSHOT
> [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.0.1:generate (default-cli) >
> generate-sources @ standalone-pom >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:3.0.1:generate (default-cli) <
> generate-sources @ standalone-pom <<<
> [INFO]
> [INFO]
> [INFO] --- maven-archetype-plugin:3.0.1:generate (default-cli) @
> standalone-pom ---
> [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': org.apache.training
> Define value for property 'artifactId': test
> Define value for property 'version' 1.0-SNAPSHOT: :
> Define value for property 'package' org.apache.training: :
> Confirm properties configuration:
> groupId: org.apache.training
> artifactId: test
> version: 1.0-SNAPSHOT
> package: org.apache.training
>  Y: : y
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Using following parameters for creating project from Archetype:
> content-archetype:1.0.0-SNAPSHOT
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Parameter: groupId, Value: org.apache.training
> [INFO] Parameter: artifactId, Value: test
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: package, Value: org.apache.training
> [INFO] Parameter: packageInPathFormat, Value: org/apache/training
> [INFO] Parameter: package, Value: org.apache.training
> [INFO] Parameter: version, Value: 1.0-SNAPSHOT
> [INFO] Parameter: groupId, Value: org.apache.training
> [INFO] Parameter: artifactId, Value: test
> [INFO] Project created from Archetype in dir:
> /home/sliebau/tmp/incubator-training/content/test
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time:  34.480 s
> [INFO] Finished at: 2020-05-23T11:54:52+02:00
> [INFO] 
> ------------------------------------------------------------------------
> 
> 
> 
> 
> On Sat, 23 May 2020 at 10:57, Sönke Liebau <[email protected]>
> wrote:
> 
> > Hi Sharan,
> >
> > we did not yet release the archetype officially, so your Maven is unable
> > to find this in any repository. You'll need to build and install the
> > archetype yourself for this to work.
> > From memory I believe there is a very brief section in the docs about this
> > should end with "mvn install" as command.
> >
> > I'm currently away from my laptop, but will have a look once I'm back and
> > send more details.
> >
> > Best regards,
> > Sönke
> >
> > Sharan Foga <[email protected]> schrieb am Sa., 23. Mai 2020, 10:44:
> >
> >> 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
> >> > >>>>
> >> > >>
> >> >
> >> >
> >>
> >
> 
> -- 
> Sönke Liebau
> Partner
> Tel. +49 179 7940878
> OpenCore GmbH & Co. KG - Thomas-Mann-Straße 8 - 22880 Wedel - Germany
> 

Reply via email to