You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Felix Knecht <fe...@apache.org> on 2008/10/20 13:55:39 UTC

Missing location for Samples [was Embedding ApacheDS as a Web Application]

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/...

{svn}\directories
  samples
    archetypes
      branches
      tags
      trunk
    sample-a
    sample-b

WDOT?

Felix


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 \
>    -DarchetypeGroupId=org.apache.directory \
>    -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.
>> http://maven.apache.org/guides/introduction/introduction-to-archetypes.html
>>
>
> There is some stuff for adding elements to the schema, but it does not
> contain code programmed against the ApacheDS API (only JNDI).
>
> http://directory.apache.org/apacheds/1.5/add-your-first-elements-to-the-schema.html
>
>
> 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
>
>


Re: Missing location for Samples [was Embedding ApacheDS as a Web Application]

Posted by Felix Knecht <fe...@apache.org>.
Felix Knecht schrieb:
> Emmanuel Lecharny schrieb:
>   
>> {svn}/directory
>>  samples
>>    branches
>>    tags
>>    trunk
>>
>> should be ok. Do we need the Archetype sub-level ?
>>
>> (I think that sample-a, sample-b are under trunk ?)
>>     
> I'm also fine with this. Just one question/remark: archetypes can/should
> be released. So this would look then like
> samples
>   trunk
>     apacheds-webapp-archetype
>     sample-a
>     sample
>   tags/apacheds-webapp-archetype/1.0/  (or)
>   tags/1.0/apacheds-webapp-archetype/ (or)
>   tags/apachds-webapp-archetype-1.0/
>
> Or do we consider archetypes just like 'normal' samples which are never
> released and deploy them just as snapshot on the CI server?
>   
Or we just forget about archetypes and just pu in the sample.
> Felix
>
>   


Re: Missing location for Samples [was Embedding ApacheDS as a Web Application]

Posted by Felix Knecht <fe...@apache.org>.
Emmanuel Lecharny schrieb:
> {svn}/directory
>  samples
>    branches
>    tags
>    trunk
>
> should be ok. Do we need the Archetype sub-level ?
>
> (I think that sample-a, sample-b are under trunk ?)
I'm also fine with this. Just one question/remark: archetypes can/should
be released. So this would look then like
samples
  trunk
    apacheds-webapp-archetype
    sample-a
    sample
  tags/apacheds-webapp-archetype/1.0/  (or)
  tags/1.0/apacheds-webapp-archetype/ (or)
  tags/apachds-webapp-archetype-1.0/

Or do we consider archetypes just like 'normal' samples which are never
released and deploy them just as snapshot on the CI server?

Felix

Re: Missing location for Samples [was Embedding ApacheDS as a Web Application]

Posted by Emmanuel Lecharny <el...@gmail.com>.
Felix Knecht wrote:
> 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/...
>
> {svn}\directories
>   samples
>     archetypes
>       branches
>       tags
>       trunk
>     sample-a
>     sample-b
>
> WDOT?
>
>   
{svn}/directory
  samples
    branches
    tags
    trunk

should be ok. Do we need the Archetype sub-level ?

(I think that sample-a, sample-b are under trunk ?)

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org