You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:27:56 UTC
[sling-slingstart-maven-plugin] 09/15: SLING-6068 :
slingstart-maven-plugin: Allow to start a quickstart JAR based on a
provisioning model even for non slingstart packagings
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag slingstart-maven-plugin-1.5.0
in repository https://gitbox.apache.org/repos/asf/sling-slingstart-maven-plugin.git
commit fec71fe71ad6d6796f7a08a0cf96f336d0436ccb
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Nov 8 06:01:12 2016 +0000
SLING-6068 : slingstart-maven-plugin: Allow to start a quickstart JAR based on a provisioning model even for non slingstart packagings
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/slingstart-maven-plugin@1768630 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java b/src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java
index ded1135..c74939d 100644
--- a/src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java
+++ b/src/main/java/org/apache/sling/maven/slingstart/run/StartMojo.java
@@ -74,10 +74,10 @@ public class StartMojo extends AbstractMojo {
*/
@Parameter
private List<ServerConfiguration> servers;
-
+
/**
* Overwrites debug parameter of all server configurations (if set).
- * Attaches a debugger to the forked JVM. If set to {@code "true"}, the process will allow a debugger to connect on port 8000.
+ * Attaches a debugger to the forked JVM. If set to {@code "true"}, the process will allow a debugger to connect on port 8000.
* If set to some other string, that string will be appended to the server's {@code vmOpts}, allowing you to configure arbitrary debugging options.
*/
@Parameter(property = "launchpad.debug")
@@ -402,7 +402,7 @@ public class StartMojo extends AbstractMojo {
// If the current project is a slingstart project, use its JAR artifact
if (this.project.getPackaging().equals(BuildConstants.PACKAGING_SLINGSTART)) {
- final File jarFile = new File(this.project.getBuild().getDirectory(), this.project.getBuild().getFinalName() + ".jar");
+ final File jarFile = project.getArtifact().getFile();
if (jarFile.exists()) {
getLog().info("Using launchpad jar being generated as this project's primary artifact: '" + jarFile + "'!");
return jarFile;
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.