lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven A Rowe <sar...@syr.edu>
Subject RE: [MAVEN] Heads up: build changes
Date Tue, 08 May 2012 18:24:59 GMT
Hi Greg,

I don't see that problem - 'ant generate-maven-artifacts' just works for me.

I suspect that the XSLT processor included with your JDK does not support the EXSLT str:split
functionality used in the lucene/site/xsl/index.xsl stylesheet, which is invoked from the
'process-webpages' target.  What JDK/version/vendor/platform are you using?

Steve

-----Original Message-----
From: Greg Bowyer [mailto:gbowyer@fastmail.co.uk] 
Sent: Tuesday, May 08, 2012 4:54 PM
To: java-user@lucene.apache.org
Subject: Re: [MAVEN] Heads up: build changes

For me ant generate-maven-artifacts if giving me this error, any thoughts ?

-- %< --

process-webpages:
      [xslt] Processing /home/greg/projects/lucene-solr/lucene/build.xml
to /home/greg/projects/lucene-solr/lucene/build/docs/index.html
      [xslt] Loading stylesheet
/home/greg/projects/lucene-solr/lucene/site/xsl/index.xsl
      [copy] Copying 2 files to
/home/greg/projects/lucene-solr/lucene/build/docs
      [copy] Copying
/home/greg/projects/lucene-solr/lucene/JRE_VERSION_MIGRATION.txt to /home/greg/projects/lucene-solr/lucene/build/docs/JRE_VERSION_MIGRATION.html
      [copy] 08-May-2012 12:08:35 org.apache.bsf.BSFManager loadScriptingEngine
      [copy] SEVERE: Exception :
      [copy] java.lang.ClassNotFoundException: 
org.apache.bsf.engines.javascript.JavaScriptEngine
      [copy]     at 
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
      [copy]     at 
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
      [copy]     at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
      [copy]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      [copy]     at 
org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:693)
      [copy]     at org.apache.bsf.BSFManager.exec(BSFManager.java:485)
      [copy]     at 
org.apache.tools.ant.util.optional.ScriptRunner.executeScript(ScriptRunner.java:100)
      [copy]     at 
org.apache.tools.ant.types.optional.ScriptFilter.filter(ScriptFilter.java:110)
      [copy]     at 
org.apache.tools.ant.filters.TokenFilter.read(TokenFilter.java:114)
      [copy]     at 
org.apache.tools.ant.filters.BaseFilterReader.read(BaseFilterReader.java:83)
      [copy]     at java.io.BufferedReader.read1(BufferedReader.java:185)
      [copy]     at java.io.BufferedReader.read(BufferedReader.java:261)
      [copy]     at 
org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:494)
      [copy]     at 
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559)
      [copy]     at 
org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:875)
      [copy]     at 
org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:549)
      [copy]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      [copy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown 
Source)
      [copy]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [copy]     at java.lang.reflect.Method.invoke(Method.java:597)
      [copy]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      [copy]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [copy]     at 
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
      [copy]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      [copy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown 
Source)
      [copy]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [copy]     at java.lang.reflect.Method.invoke(Method.java:597)
      [copy]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      [copy]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [copy]     at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
      [copy]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      [copy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown 
Source)
      [copy]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [copy]     at java.lang.reflect.Method.invoke(Method.java:597)
      [copy]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      [copy]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [copy]     at org.apache.tools.ant.Target.execute(Target.java:390)
      [copy]     at 
org.apache.tools.ant.Target.performTasks(Target.java:411)
      [copy]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      [copy]     at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      [copy]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      [copy]     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
      [copy]     at 
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:302)
      [copy]     at 
org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
      [copy]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      [copy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown 
Source)
      [copy]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [copy]     at java.lang.reflect.Method.invoke(Method.java:597)
      [copy]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      [copy]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [copy]     at 
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
      [copy]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      [copy]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown 
Source)
      [copy]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [copy]     at java.lang.reflect.Method.invoke(Method.java:597)
      [copy]     at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      [copy]     at org.apache.tools.ant.Task.perform(Task.java:348)
      [copy]     at org.apache.tools.ant.Target.execute(Target.java:390)
      [copy]     at 
org.apache.tools.ant.Target.performTasks(Target.java:411)
      [copy]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
      [copy]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1368)
      [copy]     at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [copy]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1251)
      [copy]     at org.apache.tools.ant.Main.runBuild(Main.java:809)
      [copy]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
      [copy]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
      [copy]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)



On 08/05/12 10:31, Steven A Rowe wrote:
> If you use the Lucene/Solr Maven POMs to drive the build, I committed a major change
last night (see https://issues.apache.org/jira/browse/LUCENE-3948 for more details):
>
> * 'ant get-maven-poms' no longer places pom.xml files under the lucene/ and solr/ directories.
 Instead, they are placed in a new top-level directory: maven-build/.
>
> * When you run 'mvn<whatever>' under maven-build/, build and test output now goes
under the conventional Maven target/ directories associated with each module's POM under the
top-level maven-build/ directory.  Maven build and test outputs are now completely separate
from those produced by the Ant build.
>
> The above changes don't affect the 'ant generate-maven-artifacts' 
> process - the top-level maven-build/ directory is not involved.  
> (Instead, the 'generate-maven-artifacts' target calls a separate 
> target - 'filter-pom-templates' - to copy the POMs to 
> lucene/build/poms/ and interpolate their versions.)
>
> Please let me know if you run into problems with the new setup.
>
> Thanks,
> Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message