You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by "Markham Richard (Ext. - UniCredit Business Integrated Solutions)" <RM...@unicredit.de> on 2013/05/02 09:21:51 UTC

RE: Maven Build

Hi Robert 

I am sorry it took so much time to answer your email.
Any project in your sample project works perfect at command line mode, but it doesn't work if I run it out of Eclipse. Here is the error message
 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling Sample Custom Login Form 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-java) @ org.apache.sling.samples.custom-login-form ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (set-bundle-required-execution-environment) @ org.apache.sling.samples.custom-login-form ---
[INFO] Executing tasks
main:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.061s
[INFO] Finished at: Tue Apr 30 22:31:36 CEST 2013
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (set-bundle-required-execution-environment) on project org.apache.sling.samples.custom-login-form: An Ant BuildException has occured: Unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
[ERROR] around Ant part ...<script language="javascript">var System = java.lang.System;... @ 4:33 in C:\JavaUnited\WorkspaceSling\org.apache.sling.samples.custom-login-form\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  

-----Original Message-----
From: Robert Munteanu [mailto:rmuntean@adobe.com] 
Sent: Dienstag, 23. April 2013 16:02
To: users@sling.apache.org
Subject: RE: Maven Build

Hi Richard,

> The example http://svn.apache.org/repos/asf/sling/trunk/samples/ run 
> smoothly. I have not been successfully to build the example und 
> Eclipse using m2e. Has anybody a tip what I MUST DO:
> 

What have you tried and what broke?

Robert

Re: Maven Build

Posted by Robert Munteanu <ro...@apache.org>.
Strange. Can you run a -X ( debug ) build and see if that gives any
more hints? There should be a root cause for ant being unable to load
a ScriptEngineManager.

On Thu, May 2, 2013 at 2:45 PM, Markham Richard (Ext. - UniCredit
Business Integrated Solutions) <RM...@unicredit.de> wrote:
> Hi Robert
>
> I am using Java 6.
>
> Regards
>
> -----Original Message-----
> From: Robert Munteanu [mailto:rombert@apache.org]
> Sent: Donnerstag, 2. Mai 2013 13:21
> To: users@sling.apache.org
> Subject: Re: Maven Build
>
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-antrun-plugin:1.7:run
>> (set-bundle-required-execution-environment) on project
>> org.apache.sling.samples.custom-login-form: An Ant BuildException has
>> occured: Unable to load a script engine manager
>> (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
>> [ERROR] around Ant part ...<script language="javascript">var System =
>> java.lang.System;... @ 4:33 in
>> C:\JavaUnited\WorkspaceSling\org.apache.sling.samples.custom-login-for
>> m\target\antrun\build-main.xml
>
> Are you by any change using Java 5? If that is the case, please retry with Java 6 and let me know if it works.
>
> Robert

RE: Maven Build

Posted by "Markham Richard (Ext. - UniCredit Business Integrated Solutions)" <RM...@unicredit.de>.
Hi Robert

I am using Java 6.

Regards

-----Original Message-----
From: Robert Munteanu [mailto:rombert@apache.org] 
Sent: Donnerstag, 2. Mai 2013 13:21
To: users@sling.apache.org
Subject: Re: Maven Build

> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-antrun-plugin:1.7:run 
> (set-bundle-required-execution-environment) on project 
> org.apache.sling.samples.custom-login-form: An Ant BuildException has 
> occured: Unable to load a script engine manager 
> (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager) 
> [ERROR] around Ant part ...<script language="javascript">var System = 
> java.lang.System;... @ 4:33 in 
> C:\JavaUnited\WorkspaceSling\org.apache.sling.samples.custom-login-for
> m\target\antrun\build-main.xml

Are you by any change using Java 5? If that is the case, please retry with Java 6 and let me know if it works.

Robert

Re: Maven Build

Posted by Robert Munteanu <ro...@apache.org>.
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (set-bundle-required-execution-environment) on project org.apache.sling.samples.custom-login-form: An Ant BuildException has occured: Unable to load a script engine manager (org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
> [ERROR] around Ant part ...<script language="javascript">var System = java.lang.System;... @ 4:33 in C:\JavaUnited\WorkspaceSling\org.apache.sling.samples.custom-login-form\target\antrun\build-main.xml

Are you by any change using Java 5? If that is the case, please retry
with Java 6 and let me know if it works.

Robert