directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot" ...@marcelot.net>
Subject Re: Embedding ApacheDS as a Web Application
Date Tue, 21 Oct 2008 14:27:43 GMT
Hi Felix,

I tried what you said and I'm getting a build failure.

Here's the log:
=========================================================
MacBookPro:Apache pajbam$ mvn archetype:generate -DarchetypeCatalog=
http://vm094.oxylos.org/ -DarchetypeRepository=
http://vm094.oxylos.org/mirror-maven2/
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://vm094.oxylos.org/ -> apacheds-webapp (Creates ApacheDS as an
embedded Web Application)
Choose a number:  (1): 1
[INFO] snapshot org.apache.directory.samples:apacheds-webapp:1.0-SNAPSHOT:
checking for updates from apacheds-webapp-repo
Downloading:
http://vm094.oxylos.org/org/apache/directory/samples/apacheds-webapp/1.0-SNAPSHOT/apacheds-webapp-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] The desired archetype does not exist
(org.apache.directory.samples:apacheds-webapp:1.0-SNAPSHOT)
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Oct 21 16:26:07 CEST 2008
[INFO] Final Memory: 7M/14M
[INFO]
------------------------------------------------------------------------
=========================================================

Any idea what the problem is ?

Thanks,
Pierre-Arnaud

On Mon, Oct 20, 2008 at 4:38 PM, Felix Knecht <felixk@apache.org> wrote:

> Hi Stefan
> > 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?
>
> The archetype is now on the CI server. You can create a new project and
> run it with following steps:
>
> mvn archetype:generate -DarchetypeCatalog=http://vm094.oxylos.org/
> -DarchetypeRepository=http://vm094.oxylos.org/mirror-maven2/<http://vm094.oxylos.org/-DarchetypeRepository=http://vm094.oxylos.org/mirror-maven2/>
>  (choose '1' and hit <Enter> for all other questions)
> cd myProject
> mvn jetty:run
>
> and your done.
> You can point your browser to http://localhost:8080/ApacheDS/RootDse to
> see your servlet working.
>
>
> The 2 properties -Darchetype... are still needed because the archetype
> isn't yet registered in the main archetype-catalog for maven and because
> the archetype artifact isn't released on repo1.maven.org.
>
> Regards
> Felix
>
>

Mime
View raw message