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