A maven archetype for apache sling cms

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

A maven archetype for apache sling cms

Mahsum Demir
Hi,

I think having a Maven archetype which generates a simple sling cms app will be useful. The generated project will include a simple page and a component. The archetype will lessen the time needed to get up and working with the cms and increase the popularity of the cms.

So, what do you think about that?
If you think that is beneficial for the cms too than I would like to implement it.
Also, what is the process of having that project under the Apache name?

Best regards
Mahsum Demir.



Reply | Threaded
Open this post in threaded view
|

Re: A maven archetype for apache sling cms

Robert Munteanu-2
Hi Mahsum,

On Thu, 2019-02-07 at 12:19 +0000, Mahsum Demir wrote:

> Hi,
>
> I think having a Maven archetype which generates a simple sling cms
> app will be useful. The generated project will include a simple page
> and a component. The archetype will lessen the time needed to get up
> and working with the cms and increase the popularity of the cms.
>
> So, what do you think about that?
> If you think that is beneficial for the cms too than I would like to
> implement it.

Do you propose that we:

- create an archetype for Sling that results in a basic application OR
- create an archetype for the Sling CMS [1]

?

> Also, what is the process of having that project under the Apache
> name?

Are you asking about contributing this back to Sling? If yes, we are
more than happy to accept your contributions. If this will be a new
module you can send a pull request against the sling whiteboard [2] or
build it in a separate GitHub repository.

Thanks,

Robert


[1]: https://github.com/apache/sling-org-apache-sling-app-cms
[2]: https://github.com/apache/sling-whiteboard/

Reply | Threaded
Open this post in threaded view
|

Re: A maven archetype for apache sling cms

Christopher Rockwell
Hello all

Stumbled upon this email chain in my own search for a maven archetype for apache sling cms. Mr. Klco has posted about such a thing… https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/ <https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/>

mvn archetype:generate \
    -DarchetypeGroupId=org.apache.sling \
    -DarchetypeArtifactId=sling-bundle-archetype \
    -DarchetypeVersion=1.0.6

I’m not sure though, because it post says there would also be starters for JSP and frontend code. The docs for sling-bundle-archetype <https://sling.apache.org/documentation/development/maven-archetypes.html#sling-bundle-archetype> describe it as simple start for a bundle and only has one Java file, SimpleDSComponent (so not a must-module maven project).

I think sling-multi-module-maven-project is probably what would users like Mahsum and me.
https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/ <https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/>

If there is better maven archetype for apache sling cms, please let us know.

Thank you
Cris Rockwell









> On Feb 20, 2019, at 7:46 AM, Robert Munteanu <[hidden email]> wrote:
>
> Hi Mahsum,
>
> On Thu, 2019-02-07 at 12:19 +0000, Mahsum Demir wrote:
>> Hi,
>>
>> I think having a Maven archetype which generates a simple sling cms
>> app will be useful. The generated project will include a simple page
>> and a component. The archetype will lessen the time needed to get up
>> and working with the cms and increase the popularity of the cms.
>>
>> So, what do you think about that?
>> If you think that is beneficial for the cms too than I would like to
>> implement it.
>
> Do you propose that we:
>
> - create an archetype for Sling that results in a basic application OR
> - create an archetype for the Sling CMS [1]
>
> ?
>
>> Also, what is the process of having that project under the Apache
>> name?
>
> Are you asking about contributing this back to Sling? If yes, we are
> more than happy to accept your contributions. If this will be a new
> module you can send a pull request against the sling whiteboard [2] or
> build it in a separate GitHub repository.
>
> Thanks,
>
> Robert
>
>
> [1]: https://github.com/apache/sling-org-apache-sling-app-cms
> [2]: https://github.com/apache/sling-whiteboard/
>

Reply | Threaded
Open this post in threaded view
|

Re: A maven archetype for apache sling cms

Daniel Klco-2
Thanks Chris for bringing this back up. I'd meant to implement such an
archetype earlier and unfortunately I got distracted. More or less, the
sling-bundle-archetype or the sling-initial-content-archetype would be good
starting points, but neither are quite tailored to use with Sling CMS.

I'll put something together, I've been planning on doing a release with the
most recent updates for awhile now. I've created a ticket to make sure it's
tracked:
https://issues.apache.org/jira/browse/SLING-8762

Thanks!
-Dan

On Thu, Oct 3, 2019 at 3:56 PM Cris Rockwell <[hidden email]> wrote:

> Hello all
>
> Stumbled upon this email chain in my own search for a maven archetype for
> apache sling cms. Mr. Klco has posted about such a thing…
> https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/
> <
> https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/
> >
>
> mvn archetype:generate \
>     -DarchetypeGroupId=org.apache.sling \
>     -DarchetypeArtifactId=sling-bundle-archetype \
>     -DarchetypeVersion=1.0.6
>
> I’m not sure though, because it post says there would also be starters for
> JSP and frontend code. The docs for sling-bundle-archetype <
> https://sling.apache.org/documentation/development/maven-archetypes.html#sling-bundle-archetype>
> describe it as simple start for a bundle and only has one Java file,
> SimpleDSComponent (so not a must-module maven project).
>
> I think sling-multi-module-maven-project is probably what would users like
> Mahsum and me.
>
> https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/
> <
> https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/
> >
>
> If there is better maven archetype for apache sling cms, please let us
> know.
>
> Thank you
> Cris Rockwell
>
>
>
>
>
>
>
>
>
> > On Feb 20, 2019, at 7:46 AM, Robert Munteanu <[hidden email]> wrote:
> >
> > Hi Mahsum,
> >
> > On Thu, 2019-02-07 at 12:19 +0000, Mahsum Demir wrote:
> >> Hi,
> >>
> >> I think having a Maven archetype which generates a simple sling cms
> >> app will be useful. The generated project will include a simple page
> >> and a component. The archetype will lessen the time needed to get up
> >> and working with the cms and increase the popularity of the cms.
> >>
> >> So, what do you think about that?
> >> If you think that is beneficial for the cms too than I would like to
> >> implement it.
> >
> > Do you propose that we:
> >
> > - create an archetype for Sling that results in a basic application OR
> > - create an archetype for the Sling CMS [1]
> >
> > ?
> >
> >> Also, what is the process of having that project under the Apache
> >> name?
> >
> > Are you asking about contributing this back to Sling? If yes, we are
> > more than happy to accept your contributions. If this will be a new
> > module you can send a pull request against the sling whiteboard [2] or
> > build it in a separate GitHub repository.
> >
> > Thanks,
> >
> > Robert
> >
> >
> > [1]: https://github.com/apache/sling-org-apache-sling-app-cms
> > [2]: https://github.com/apache/sling-whiteboard/
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: A maven archetype for apache sling cms

Daniel Klco-2
I have created a first run at a Sling CMS project archetype:
https://github.com/apache/sling-org-apache-sling-app-cms/tree/master/archetype

You should be able to build it with:
mvn clean install

And then use it with:
mvn archetype:generate -DarchetypeGroupId=org.apache.sling
-DarchetypeArtifactId=org.apache.sling.cms.archetype
-DarchetypeVersion=0.12.1-SNAPSHOT

Ruben Reusser has brought up a good point, however, there's an effort to
consolidate the number of archetypes for the Apache Sling project. Before I
release this, I'm going to check with the rest of the team if this is
sufficiently different or should be incorporated into the consolidated
archetype.


On Thu, Oct 3, 2019 at 4:50 PM Daniel Klco <[hidden email]> wrote:

> Thanks Chris for bringing this back up. I'd meant to implement such an
> archetype earlier and unfortunately I got distracted. More or less, the
> sling-bundle-archetype or the sling-initial-content-archetype would be good
> starting points, but neither are quite tailored to use with Sling CMS.
>
> I'll put something together, I've been planning on doing a release with
> the most recent updates for awhile now. I've created a ticket to make sure
> it's tracked:
> https://issues.apache.org/jira/browse/SLING-8762
>
> Thanks!
> -Dan
>
> On Thu, Oct 3, 2019 at 3:56 PM Cris Rockwell <[hidden email]> wrote:
>
>> Hello all
>>
>> Stumbled upon this email chain in my own search for a maven archetype for
>> apache sling cms. Mr. Klco has posted about such a thing…
>> https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/
>> <
>> https://blogs.perficientdigital.com/2018/12/11/building-a-zero-cost-website-with-apache-sling-cms/
>> >
>>
>> mvn archetype:generate \
>>     -DarchetypeGroupId=org.apache.sling \
>>     -DarchetypeArtifactId=sling-bundle-archetype \
>>     -DarchetypeVersion=1.0.6
>>
>> I’m not sure though, because it post says there would also be starters
>> for JSP and frontend code. The docs for sling-bundle-archetype <
>> https://sling.apache.org/documentation/development/maven-archetypes.html#sling-bundle-archetype>
>> describe it as simple start for a bundle and only has one Java file,
>> SimpleDSComponent (so not a must-module maven project).
>>
>> I think sling-multi-module-maven-project is probably what would users
>> like Mahsum and me.
>>
>> https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/
>> <
>> https://robferguson.org/blog/2017/04/16/how-to-build-apache-sling-projects-using-maven/
>> >
>>
>> If there is better maven archetype for apache sling cms, please let us
>> know.
>>
>> Thank you
>> Cris Rockwell
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> > On Feb 20, 2019, at 7:46 AM, Robert Munteanu <[hidden email]>
>> wrote:
>> >
>> > Hi Mahsum,
>> >
>> > On Thu, 2019-02-07 at 12:19 +0000, Mahsum Demir wrote:
>> >> Hi,
>> >>
>> >> I think having a Maven archetype which generates a simple sling cms
>> >> app will be useful. The generated project will include a simple page
>> >> and a component. The archetype will lessen the time needed to get up
>> >> and working with the cms and increase the popularity of the cms.
>> >>
>> >> So, what do you think about that?
>> >> If you think that is beneficial for the cms too than I would like to
>> >> implement it.
>> >
>> > Do you propose that we:
>> >
>> > - create an archetype for Sling that results in a basic application OR
>> > - create an archetype for the Sling CMS [1]
>> >
>> > ?
>> >
>> >> Also, what is the process of having that project under the Apache
>> >> name?
>> >
>> > Are you asking about contributing this back to Sling? If yes, we are
>> > more than happy to accept your contributions. If this will be a new
>> > module you can send a pull request against the sling whiteboard [2] or
>> > build it in a separate GitHub repository.
>> >
>> > Thanks,
>> >
>> > Robert
>> >
>> >
>> > [1]: https://github.com/apache/sling-org-apache-sling-app-cms
>> > [2]: https://github.com/apache/sling-whiteboard/
>> >
>>
>>