directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r437399 - in /directory/branches/apacheds/1.0: ./ sar-plugin/ sar-plugin/src/ sar-plugin/src/main/ sar-plugin/src/main/java/ sar-plugin/src/main/java/org/ sar-plugin/src/main/java/org/apache/ sar-plugin/src/main/java/org/apache/directory/ s...
Date Sun, 27 Aug 2006 16:39:22 GMT
Author: akarasulu
Date: Sun Aug 27 09:39:19 2006
New Revision: 437399

URL: http://svn.apache.org/viewvc?rev=437399&view=rev
Log:
checking in fork of jboss-sar-plugin: fixes DIRSERVER-331

Added:
    directory/branches/apacheds/1.0/sar-plugin/
    directory/branches/apacheds/1.0/sar-plugin/pom.xml
    directory/branches/apacheds/1.0/sar-plugin/src/
    directory/branches/apacheds/1.0/sar-plugin/src/main/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/AbstractSarMojo.java
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarExplodedMojo.java
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarInPlaceMojo.java
    directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarMojo.java
    directory/branches/apacheds/1.0/sar-plugin/src/main/resources/
    directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/
    directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/
    directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/components.xml
    directory/branches/apacheds/1.0/sar-plugin/src/site/
    directory/branches/apacheds/1.0/sar-plugin/src/site/apt/
    directory/branches/apacheds/1.0/sar-plugin/src/site/apt/howto.apt
    directory/branches/apacheds/1.0/sar-plugin/src/site/apt/introduction.apt
    directory/branches/apacheds/1.0/sar-plugin/src/site/site.xml
Modified:
    directory/branches/apacheds/1.0/pom.xml
    directory/branches/apacheds/1.0/server-sar/pom.xml

Modified: directory/branches/apacheds/1.0/pom.xml
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/pom.xml?rev=437399&r1=437398&r2=437399&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/pom.xml (original)
+++ directory/branches/apacheds/1.0/pom.xml Sun Aug 27 09:39:19 2006
@@ -81,6 +81,7 @@
         <module>protocol-dns</module>
         <module>protocol-changepw</module>
         <module>server-tools</module>
+        <module>sar-plugin</module>
         <module>server-sar</module>
         <module>server-unit</module>
         <module>server-main</module>
@@ -112,6 +113,7 @@
         <module>protocol-dns</module>
         <module>protocol-changepw</module>
         <module>server-tools</module>
+        <module>sar-plugin</module>
         <module>server-sar</module>
         <module>server-unit</module>
         <module>server-main</module>

Added: directory/branches/apacheds/1.0/sar-plugin/pom.xml
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/pom.xml?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/pom.xml (added)
+++ directory/branches/apacheds/1.0/sar-plugin/pom.xml Sun Aug 27 09:39:19 2006
@@ -0,0 +1,33 @@
+<project>
+  <parent>
+    <groupId>org.apache.directory.server</groupId>
+    <artifactId>build</artifactId>
+    <version>1.0-RC4-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>apacheds-sar-plugin</artifactId>
+  <packaging>maven-plugin</packaging>
+  <name>ApacheDS Server Sar Maven Plugin</name>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-archiver</artifactId>
+      <version>2.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+      <version>1.0.5</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+</project>

Added: directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/AbstractSarMojo.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/AbstractSarMojo.java?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/AbstractSarMojo.java
(added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/AbstractSarMojo.java
Sun Aug 27 09:39:19 2006
@@ -0,0 +1,242 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ * 
+ */
+package org.apache.directory.server.plugin.sar;
+
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipInputStream;
+import java.util.zip.ZipOutputStream;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.artifact.resolver.filter.ScopeArtifactFilter;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.util.FileUtils;
+import org.codehaus.plexus.util.IOUtil;
+
+public abstract class AbstractSarMojo
+    extends AbstractMojo
+{
+
+    /**
+     * The maven project.
+     *
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * The directory containing generated classes.
+     *
+     * @parameter expression="${project.build.outputDirectory}"
+     * @required
+     * @readonly
+     */
+    private File classesDirectory;
+
+    /**
+     * The directory where the sar is built.
+     *
+     * @parameter expression="${project.build.directory}/${project.build.finalName}"
+     * @required
+     */
+    private File sarDirectory;
+
+    /**
+     * The location of the jboss-service.xml file.  If it is present in the META-INF
+     * directory in src/main/resources with that name then it will automatically be 
+     * included.  Otherwise this parameter must be set.
+     *
+     * @parameter 
+     */
+    private File jbossServiceFile;
+
+    /**
+     * The directory where to put the libs.
+     *
+     * @parameter expression="${project.build.directory}/${project.build.finalName}/lib"
+     * @required
+     */
+    private File libDirectory;
+
+    /**
+     * 
+     */
+    public abstract void execute()
+        throws MojoExecutionException;
+
+    /**
+     * 
+     * @return
+     */
+    public MavenProject getProject()
+    {
+
+        return project;
+    }
+
+    /**
+     * 
+     * @return
+     */
+    public File getSarDirectory()
+    {
+
+        return sarDirectory;
+    }
+    
+    /**
+     * 
+     * @throws MojoExecutionException
+     */
+    public void buildExplodedSAR()
+        throws MojoExecutionException
+    {
+        buildExplodedSAR( Collections.EMPTY_SET );
+    }
+    
+    
+    /**
+     * 
+     * @throws MojoExecutionException
+     */
+    public void buildExplodedSAR( Set excludes )
+        throws MojoExecutionException
+    {
+        getLog().info( "Exploding sar..." );
+
+        if ( excludes == null )
+        {
+            excludes = Collections.EMPTY_SET;
+        }
+        
+        sarDirectory.mkdirs();
+        libDirectory.mkdirs();
+        try
+        {
+            getLog().info( "Assembling sar " + project.getArtifactId() + " in " + sarDirectory
);
+
+            if ( classesDirectory.exists() && ( !classesDirectory.equals( sarDirectory
) ) )
+            {
+                FileUtils.copyDirectoryStructure( classesDirectory, sarDirectory );
+            }
+            
+            File jbossServiceFileTarget = new File( sarDirectory, "META-INF" );
+            jbossServiceFileTarget = new File( jbossServiceFileTarget, "jboss-service.xml"
);
+            if ( ! jbossServiceFileTarget.exists() )
+            {
+                if ( ! jbossServiceFileTarget.getParentFile().exists() )
+                {
+                    jbossServiceFileTarget.getParentFile().mkdirs();
+                }
+                
+                if ( jbossServiceFile == null || ! jbossServiceFile.exists() )
+                {
+                    throw new MojoExecutionException( "Could not find the jboss-service.xml
file." );
+                }
+                else 
+                {
+                    FileUtils.copyFile( jbossServiceFile, jbossServiceFileTarget );
+                }
+            }
+            
+            Set artifacts = project.getArtifacts();
+            List rejects = new ArrayList();
+            getLog().info( "");
+            getLog().info( "    Including artifacts: ");
+            getLog().info( "    -------------------");
+            for ( Iterator iter = artifacts.iterator(); iter.hasNext(); )
+            {
+                Artifact artifact = (Artifact) iter.next();
+                ScopeArtifactFilter filter = new ScopeArtifactFilter( Artifact.SCOPE_RUNTIME
);
+                if ( !artifact.isOptional() && filter.include( artifact ) )
+                {
+                    String type = artifact.getType();
+                    String descriptor = artifact.getGroupId() + ":" + artifact.getArtifactId();
+
+                    if ( "jar".equals( type ) && ! excludes.contains( descriptor
) )
+                    {
+                        getLog().info( "        o " + descriptor );
+
+                        // copy jar skipping maven .xml files which would
+                        // upset the JBoss JARDeployer.
+                        ZipInputStream zis = new ZipInputStream(new FileInputStream(artifact.getFile()));
+                        ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(
+                                new File(libDirectory, artifact.getFile().getName())));
+
+                        try {
+                            ZipEntry ze = null;
+                            while(null != (ze = zis.getNextEntry())) {
+                                String name = ze.getName();
+                                getLog().debug( "           - " + name );
+                                if(name.startsWith("META-INF/maven") && 
+                                    name.endsWith(".xml")) {
+                                    getLog().info( "           ! skipping " + name );
+                                    continue;
+                                }
+                                zos.putNextEntry(ze);
+                                IOUtil.copy(zis, zos);
+                            }
+                        } finally {
+                            zis.close();
+                            zos.close();
+                        }                    
+                    }
+                    else
+                    {
+                        rejects.add( artifact );
+                    }
+                }
+            }
+            
+            if ( ! excludes.isEmpty() )
+            {
+                getLog().info( "" );
+                getLog().info( "    Excluded artifacts: ");
+                getLog().info( "    ------------------");
+                for ( int ii = 0; ii < rejects.size(); ii++ )
+                {
+                    getLog().info( "        o " + rejects.get( ii ) );
+                }
+            }
+            else
+            {
+                getLog().info( "No artifacts have been excluded.");
+            }
+            getLog().info( "" );
+        }
+        catch ( IOException e )
+        {
+            throw new MojoExecutionException( "Could not explode sar...", e );
+        }
+    }
+}

Added: directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarExplodedMojo.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarExplodedMojo.java?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarExplodedMojo.java
(added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarExplodedMojo.java
Sun Aug 27 09:39:19 2006
@@ -0,0 +1,41 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ */
+package org.apache.directory.server.plugin.sar;
+
+
+import org.apache.maven.plugin.MojoExecutionException;
+
+/**
+ * Generate the exploded sar
+ *
+ * @goal exploded
+ * @phase package
+ * @requiresDependencyResolution runtime
+ */
+public class SarExplodedMojo
+    extends AbstractSarMojo
+{
+    public void execute() 
+      throws MojoExecutionException
+    {
+        buildExplodedSAR();
+    }
+
+}

Added: directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarInPlaceMojo.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarInPlaceMojo.java?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarInPlaceMojo.java
(added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarInPlaceMojo.java
Sun Aug 27 09:39:19 2006
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ */
+package org.apache.directory.server.plugin.sar;
+
+
+import org.apache.maven.plugin.MojoExecutionException;
+
+/**
+ * Generates sar in the source directory
+ *
+ * @goal inplace
+ * @requiresDependencyResolution runtime
+ */
+public class SarInPlaceMojo 
+  extends AbstractSarMojo
+{
+
+  public void execute()
+    throws MojoExecutionException
+  {
+
+    getLog().info("Generating sar in source directory... " + getSarDirectory());
+    buildExplodedSAR();
+  }
+}

Added: directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarMojo.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarMojo.java?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarMojo.java
(added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/main/java/org/apache/directory/server/plugin/sar/SarMojo.java
Sun Aug 27 09:39:19 2006
@@ -0,0 +1,133 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ *
+ */
+package org.apache.directory.server.plugin.sar;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Set;
+
+import org.apache.maven.archiver.MavenArchiveConfiguration;
+import org.apache.maven.archiver.MavenArchiver;
+import org.apache.maven.artifact.DependencyResolutionRequiredException;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.codehaus.plexus.archiver.ArchiverException;
+import org.codehaus.plexus.archiver.jar.JarArchiver;
+import org.codehaus.plexus.archiver.jar.ManifestException;
+
+/**
+ * Build a sar.
+ * 
+ * @goal sar
+ * @phase package
+ * @requiresDependencyResolution runtime
+ */
+public class SarMojo extends AbstractSarMojo
+{
+
+  /**
+   * The directory for the generated sar.
+   * 
+   * @parameter expression="${project.build.directory}"
+   * @required
+   */
+  private String outputDirectory;
+
+  /**
+   * The name of the generated sar.
+   * 
+   * @parameter expression="${project.build.finalName}"
+   * @required
+   */
+  private String sarName;
+
+  /**
+   * The Jar archiver.
+   * 
+   * @parameter expression="${component.org.codehaus.plexus.archiver.Archiver#jar}"
+   * @required
+   */
+  private JarArchiver jarArchiver;
+
+  /**
+   * The maven archive configuration to use.
+   * 
+   * @parameter
+   */
+  private MavenArchiveConfiguration archive = new MavenArchiveConfiguration();
+
+  /**
+   * Artifacts excluded from packaging within the generated sar file.  Use 
+   * artifactId:groupId in nested exclude tags.
+   * 
+   * @parameter
+   */
+  private Set excludes;
+  
+  /**
+   * Executes the SarMojo on the current project.
+   * 
+   * @throws MojoExecutionException
+   *           if an error occured while building the webapp
+   */
+  public void execute()
+    throws MojoExecutionException
+  {
+
+    File sarFile = new File(outputDirectory, sarName + ".sar");
+
+    try {
+      performPackaging(sarFile);
+    }
+    catch (Exception e) {
+      throw new MojoExecutionException("Error assembling sar", e);
+    }
+  }
+
+  /**
+   * Generates the sar.
+   * 
+   * @param sarFile the target sar file
+   * @throws IOException
+   * @throws ArchiverException
+   * @throws ManifestException
+   * @throws DependencyResolutionRequiredException
+   */
+  private void performPackaging(File sarFile)
+    throws IOException,
+    ArchiverException,
+    ManifestException,
+    DependencyResolutionRequiredException,
+    MojoExecutionException
+  {
+
+    buildExplodedSAR( excludes );
+
+    // generate sar file
+    getLog().info("Generating sar " + sarFile.getAbsolutePath());
+    MavenArchiver archiver = new MavenArchiver();
+    archiver.setArchiver(jarArchiver);
+    archiver.setOutputFile(sarFile);
+    jarArchiver.addDirectory(getSarDirectory());
+
+    // create archive
+    archiver.createArchive(getProject(), archive);
+    getProject().getArtifact().setFile(sarFile);
+  }
+}

Added: directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/components.xml?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/components.xml
(added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/main/resources/META-INF/plexus/components.xml
Sun Aug 27 09:39:19 2006
@@ -0,0 +1,34 @@
+<component-set>
+  <components>
+    <component>
+      <role>org.apache.maven.artifact.handler.ArtifactHandler</role>
+      <role-hint>sar</role-hint>
+      <implementation>org.apache.maven.artifact.handler.DefaultArtifactHandler</implementation>
+      <configuration>
+        <classifier></classifier>
+        <extension>sar</extension>
+        <type>sar</type>
+        <packaging>jar</packaging>
+        <language>java</language>
+        <addedToClasspath>false</addedToClasspath>
+      </configuration>
+    </component>
+    <component>
+      <role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
+      <role-hint>sar</role-hint>
+      <implementation>org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping</implementation>
+      <configuration>
+        <phases>
+          <process-resources>org.apache.maven.plugins:maven-resources-plugin:resources</process-resources>
+          <compile>org.apache.maven.plugins:maven-compiler-plugin:compile</compile>
+          <process-test-resources>org.apache.maven.plugins:maven-resources-plugin:testResources</process-test-resources>
+          <test-compile>org.apache.maven.plugins:maven-compiler-plugin:testCompile</test-compile>
+          <test>org.apache.maven.plugins:maven-surefire-plugin:test</test>
+          <package>org.apache.directory.server:apacheds-sar-plugin:sar</package>
+          <install>org.apache.maven.plugins:maven-install-plugin:install</install>
+          <deploy>org.apache.maven.plugins:maven-deploy-plugin:deploy</deploy>
+        </phases>
+      </configuration>
+    </component>
+  </components>
+</component-set>

Added: directory/branches/apacheds/1.0/sar-plugin/src/site/apt/howto.apt
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/site/apt/howto.apt?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/site/apt/howto.apt (added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/site/apt/howto.apt Sun Aug 27 09:39:19
2006
@@ -0,0 +1,25 @@
+ ------
+ Maven 2 Sar Plugin: configuration examples
+ ------
+ Frank Mena 
+ <frankm.os@gmail.com>
+ ------
+ October 14, 2005
+
+Introduction
+
+  The Sar plugin allows the packaging of a JBoss service sar in 3 different modes:
+
+   * sar (default): generates the sar artifact
+
+   * inplace: package the sar in the source tree
+
+   * exploded : package an exploded sar application
+
+  Each mode is materialized by a goal. For instance, to generate an exploded
+  sar from the current project, one would type
+
++--------
+  mvn sar:exploded
++---------
+

Added: directory/branches/apacheds/1.0/sar-plugin/src/site/apt/introduction.apt
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/site/apt/introduction.apt?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/site/apt/introduction.apt (added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/site/apt/introduction.apt Sun Aug 27 09:39:19
2006
@@ -0,0 +1,16 @@
+ ------
+ Maven 2 Sar Plugin
+ ------
+ Frank Mena
+ <frankm.os@gmail.com>
+ ------
+ September 23, 2005
+
+Introduction
+
+  This plugin generates a JBoss service sar archive (SAR) file.
+
+  The full description of goals is available {{{index.html}here}}.
+
+
+

Added: directory/branches/apacheds/1.0/sar-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/sar-plugin/src/site/site.xml?rev=437399&view=auto
==============================================================================
--- directory/branches/apacheds/1.0/sar-plugin/src/site/site.xml (added)
+++ directory/branches/apacheds/1.0/sar-plugin/src/site/site.xml Sun Aug 27 09:39:19 2006
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+
+<project name="Maven Sar Plugin">
+  <bannerLeft>
+    <name>Maven Sar Plugin</name>
+    <src>http://maven.apache.org/images/apache-maven-project.png</src>
+    <href>http://maven.apache.org/</href>
+  </bannerLeft>
+  <bannerRight>
+    <src>http://maven.apache.org/images/maven-small.gif</src>
+  </bannerRight>
+  <body>
+    <links>
+      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
+    </links>
+
+    <menu name="Overview">
+      <item name="Introduction" href="introduction.html"/>
+      <item name="How to Use" href="howto.html"/>
+    </menu>
+    ${reports}
+  </body>
+</project>

Modified: directory/branches/apacheds/1.0/server-sar/pom.xml
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/server-sar/pom.xml?rev=437399&r1=437398&r2=437399&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/server-sar/pom.xml (original)
+++ directory/branches/apacheds/1.0/server-sar/pom.xml Sun Aug 27 09:39:19 2006
@@ -65,8 +65,8 @@
     <plugins>
       <plugin>
         <extensions>true</extensions>
-        <groupId>org.codehaus.mojo</groupId>
-      	<artifactId>jboss-sar-maven-plugin</artifactId>
+        <groupId>org.apache.directory.server</groupId>
+      	<artifactId>apacheds-sar-plugin</artifactId>
         <configuration>
           <excludes>
             <exclude>



Mime
View raw message