Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 71008200C92 for ; Mon, 12 Jun 2017 22:10:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E747160BD9; Mon, 12 Jun 2017 20:10:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B4C0F160BCF for ; Mon, 12 Jun 2017 22:10:00 +0200 (CEST) Received: (qmail 77415 invoked by uid 500); 12 Jun 2017 20:09:59 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 77406 invoked by uid 99); 12 Jun 2017 20:09:59 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2017 20:09:59 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 3E74D3A0419 for ; Mon, 12 Jun 2017 20:09:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1798520 - in /sling/site/trunk/content/documentation: development.mdtext development/jspc.mdtext Date: Mon, 12 Jun 2017 20:09:59 -0000 To: commits@sling.apache.org From: sseifert@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170612200959.3E74D3A0419@svn01-us-west.apache.org> archived-at: Mon, 12 Jun 2017 20:10:01 -0000 Author: sseifert Date: Mon Jun 12 20:09:58 2017 New Revision: 1798520 URL: http://svn.apache.org/viewvc?rev=1798520&view=rev Log: prepare switch to maven plugin site documentation Modified: sling/site/trunk/content/documentation/development.mdtext sling/site/trunk/content/documentation/development/jspc.mdtext Modified: sling/site/trunk/content/documentation/development.mdtext URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/development.mdtext?rev=1798520&r1=1798519&r2=1798520&view=diff ============================================================================== --- sling/site/trunk/content/documentation/development.mdtext (original) +++ sling/site/trunk/content/documentation/development.mdtext Mon Jun 12 20:09:58 2017 @@ -36,7 +36,7 @@ Sling is using Apache Maven 3 as its bui * [HTL Maven Plugin](http://sling.apache.org/components/htl-maven-plugin/) * [SlingStart Maven Plugin](http://sling.apache.org/components/slingstart-maven-plugin/) * [Maven Launchpad Plugin]({{ refs.maven-launchpad-plugin.path }}) -* [Maven JspC Plugin]({{ refs.jspc.path }}) +* [JspC Maven Plugin](http://sling.apache.org/components/jspc-maven-plugin/) * [Maven Archetypes]({{ refs.maven-archetypes.path }}) * [Maven Tips & Tricks]({{ refs.maventipsandtricks.path }}) Modified: sling/site/trunk/content/documentation/development/jspc.mdtext URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/development/jspc.mdtext?rev=1798520&r1=1798519&r2=1798520&view=diff ============================================================================== --- sling/site/trunk/content/documentation/development/jspc.mdtext (original) +++ sling/site/trunk/content/documentation/development/jspc.mdtext Mon Jun 12 20:09:58 2017 @@ -1,60 +1,3 @@ -translation_pending: true -Title: Maven JspC Plugin -Excerpt: Compiles JSP scripts into class files and generates Declarative Service Descriptors to register the compiled JSPs as services +Title: HTL Maven Plugin - -The Maven JspC Plugin provides a single goal `jspc` which is by default executed in the `compile` phase of the Maven build process. This goal takes all JSP source files from a configured location (`src/main/scripts` by default) and compiles them into classes in a configurable location (`target/jspc-plugin-generated` by default). In addition, for each compiled JSP a Declarative Services descriptor is generated and written to a descriptor file (`OSGI-INF/jspServiceComponents.xml` in the output location). This descriptor will then be read by the Service Component Runtime of the deployment OSGi framework to register all contained JSP as `javax.servlet.Servlet` services. - - - -## Use - -To use the Maven JspC Plugin define the following elements in the `` section of the POM: - - - - - .... - - .... - - .... - - org.apache.sling - maven-jspc-plugin - - - compile-jsp - - jspc - - - - - .... - - .... - - .... - - - - - -## Configuration - -The Maven JspC Plugin may be configured in the `` element using the following properties: - -| Parameter | Default Value | Description | -|--|--|--| -| `sourceDirectory` | `$\{project.build.scriptSourceDirectory`} | Location of the JSP source file; may be overwritten using the `jspc.sourceDirectory` system property. | -| `outputDirectory` | `$\{project.build.directory}/jspc-plugin-generated` | Target directory for the compiled JSP classes; may be overwritten using the `jspc.outputDirectory` system propertiy. | -| `compilerTargetVM` | `1.5` | The Target Virtual Machine Version to generate class files for; may be overwritten using the `jspc.compilerTargetVM` system property. | -| `compilerSourceVM` | `1.5` | The Compiler Source Version of the Java source generated from the JSP files before compiling into classes; may be overwritten using the `jspc.compilerSourceVM` system property. | -| `servletPackage` | `org.apache.jsp` | The root package name for the generated class files; may be overwritten using the `jspc.servletPackage` system property. | - - - -## Notes - -The generated JSP classes as well as the Declarative Services descriptor are automatically copied to the generated bundle jar file if the Maven Bundle Plugin (from the Apache Felix) project is used to build the project package. \ No newline at end of file +See [Apache Sling JspC Maven Plugin documentation](http://sling.apache.org/components/jspc-maven-plugin/).