directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <>
Subject Missing location for Samples [was Embedding ApacheDS as a Web Application]
Date Mon, 20 Oct 2008 11:55:39 GMT
I haven't found a place with such samples already existing in the svn.
Therefore I suggest to create a new project with the following sturcture
where we can store our samples/archetypes/...




Stefan Zoerner schrieb:
> Hi Felix!
> Felix Knecht wrote:
>> This is easy to explain:
>> ATM the archetype plugin sin't deployed anywhere, so it's not
>> downloadable. That's why you need to checkout and build
>> the archetype plugin first (and then you have it in your local maven
>> repository).
>> If once a snapshot or release is deployed somewhere you can add this
>> location as well to mvn archetype.... and that's it.
>> -> Run one maven command and you have created a new maven project
>> containing a sample how to use embedded ApacheDS
>> (corresponds to download and unzip your sample)
>> -> Change into the project and run mvn install (corresponds to run
>> ant script)
>> -> in both cases you should get a war file you can deploy where ever
>> you want
>> At least I think your sample works like this.
> Ah. I think I got it. If it archetype plugin is deployed somewhere
> there would only one step (the second) for an end user in order to get
> the sample built.
> This sounds really good to me.
> I thought about changing the same "embed-apacheds-archetype" to
> something with either "sample" or "webapp" in it in order to reflect
> that this is not the only way to embed it, but only one (simple) option.
> But if it located in svn somewhere beneath a samples directory, it
> would be sufficient.
> Are all these parameters
> mvn archetype:generate -DgroupId=org.example \
>    -DartifactId=myProject \
>    -Dversion=1.0-SNAPSHOT \
> \
>    -DarchetypeArtifactId=embed-apacheds-archetype \
>    -DarchetypeVersion=1.0-SNAPSHOT
> mandatory or is it possible to provide defaults for some of them (for
> instance groupId, artifactId) in order to make the example even more
> easy to build?
>> I've absolutely no idea. I just saw your sample and thought that we
>> could migrate this also into a mvn build as all the
>> directory projects are now build with maven (finally studio does
>> also, thanks to Pierre-Arnaud).
> Good move. Thanks for doing that!
>>> The funny thing: The example was quite often cited in the mailing list.
>>> This is why I tried to update it ...
>> Me too ;-)
>>> I would have favored a sub-project for samples, in which the ApacheDS
>>> embedded in a WebApp is one of them. What do others think?
>> Do we have other samples yet (sorry for this inocent question)?
>> I think if the samples are maven projects creating archetypes should
>> be the way to go.
> There is some stuff for adding elements to the schema, but it does not
> contain code programmed against the ApacheDS API (only JNDI).
> But it would be nice to have the LDIF files somewhere in svn as well.
> It would be great to have more examples like the web app one. At least
> one for writing an extended operation, one for an intercepter, one for
> a partition (very ambitious ...). Plenty of plans and not enough time :-(
> Greetings from Hamburg,
>     Stefan

View raw message