directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: Embedding ApacheDS as a Web Application
Date Tue, 21 Oct 2008 15:08:09 GMT
Pierre-Arnaud Marcelot schrieb:
> Hi Felix,
> 
> I tried what you said and I'm getting a build failure.

No. It works for me. But it looks like it didn't download the archetype artifact when looking
at your log.
Can you access it via browser
http://vm094.oxylos.org/mirror-maven2//org/apache/directory/samples/apacheds-webapp/1.0-SNAPSHOT/apacheds-webapp-1.0-SNAPSHOT.jar
?

felix@donar /tmp $ 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: remote -> 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/mirror-maven2//org/apache/directory/samples/apacheds-webapp/1.0-SNAPSHOT/apacheds-webapp-1.0-SNAPSHOT.jar
12K downloaded
Confirm properties configuration:
groupId: org.example
artifactId: myProject
version: 1.0.0-SNAPSHOT
package: org.example
 Y: :
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Tue Oct 21 17:03:39 CEST 2008
[INFO] Final Memory: 28M/64M
[INFO] ------------------------------------------------------------------------

HTH
Felix

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

Here should be the download ...
"12K downloaded"

> [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
> <mailto: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
>     <http://repo1.maven.org>.
> 
>     Regards
>     Felix
> 
> 


Mime
View raw message