You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ecstasy (Jira)" <ji...@apache.org> on 2021/03/26 16:55:00 UTC
[jira] [Created] (SLING-10262) Sling not picking up the
SourceDirectory and gives error src\main\scripts does not exist
ecstasy created SLING-10262:
-------------------------------
Summary: Sling not picking up the SourceDirectory and gives error src\main\scripts does not exist
Key: SLING-10262
URL: https://issues.apache.org/jira/browse/SLING-10262
Project: Sling
Issue Type: Bug
Affects Versions: JSPC Maven Plugin 2.2.2
Reporter: ecstasy
Here is my plugin configuration and it specifies the source directory but sling still looking to default location
{code:java}
<plugin><plugin> <groupId>org.apache.sling</groupId> <artifactId>jspc-maven-plugin</artifactId> <version>2.2.2</version> <executions> <execution> <configuration> <failOnError>false</failOnError> <printCompilationReport>true</printCompilationReport> <sourceDirectory>${project.basedir}/src/main/jsps</sourceDirectory> <showSuccess>true</showSuccess> <outputDirectory>${project.basedir}/target/jspc/</outputDirectory> </configuration> <id>compile-jsp</id> <goals> <goal>jspc</goal> </goals> </execution> </executions> </plugin>
{code}
Getting error
{code:java}
[INFO] --- jspc-maven-plugin:2.2.2:jspc (default-cli) @ project-war ---[INFO] --- jspc-maven-plugin:2.2.2:jspc (default-cli) @ project-war ---[ERROR] Compilation Failureorg.apache.sling.scripting.jsp.jasper.JasperException: java.lang.IllegalStateException: basedir E:\project\src\main\scripts does not exist at org.apache.sling.maven.jspc.JspcMojo.executeInternal(JspcMojo.java:329) at org.apache.sling.maven.jspc.JspcMojo.execute(JspcMojo.java:223) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)Caused by: java.lang.IllegalStateException: basedir E:\project\src\main\scripts does not exist at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:308) at org.apache.sling.maven.jspc.JspcMojo.scanFiles(JspcMojo.java:256) at org.apache.sling.maven.jspc.JspcMojo.executeInternal(JspcMojo.java:282)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)