Sorry, I haven't a Mac. But I just did a from-scratch checkout of trunk on an Ubuntu with JDK 1.7 and mvn clean install worked fine. The Maven plugin we use to run the database during our unit tests will sometimes report errors during its shutdown *after* a successful build & run of the tests, but that's unrelated to the Roller build. (We need to convert the DB-using tests to integration tests--the source of the problem--or see if we can hack the plugin for it to run happily w/unit tests.)

Glen

On 03/28/2014 04:19 PM, Matt Raible wrote:
Same issue when skipping tests. Can anyone with a Mac see if this happens for 
them?

On Mar 28, 2014, at 1:23 PM, Greg Huber <[email protected]> wrote:

Just gave it a go, does build (ish), maybe skip the tests?

[@dev ~]$ cd /home/dev/eclipse43roller/workspace/roller-project/app
[@dev app]$ mvn clean install -Dmaven.test.skip=true

Same jdk/maven but cenots 6.



On 28 March 2014 18:07, Matt Raible <[email protected]> wrote:

Hey all,

I'm trying to compile trunk so I can build a pagemodel plugin that reads
cookies in a template. Here's the error I'm getting when running "mvn
install":

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run (gen-db-scripts) on
project roller-webapp: An Ant BuildException has occured: Exception thrown
by 'generator.parse'. For more information consult the velocity log, or
invoke ant with the -debug flag.
[ERROR] around Ant part ...<texen outputFile="README.txt"
controlTemplate="control.vm"
outputDirectory="/Users/mraible/dev/roller/app/target/dbscripts"
templatePath="/Users/mraible/dev/roller/app/src/main/resources/sql"
contextProperties="/Users/mraible/dev/roller/app/src/main/resources/sql/dbscripts.properties"/>...
@ 5:291 in /Users/mraible/dev/roller/app/target/antrun/build-main.xml:
/Users/mraible/dev/roller/app/target/dbscripts/db2/createdb.sql (No such
file or directory)

Mac OS X

java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
2014-02-14T10:37:52-07:00)
Maven home: /opt/tools/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home:
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.2", arch: "x86_64", family: "mac"

Any ideas?

Thanks,

Matt

Below is what happens with "mvn -X install":

aused by: org.apache.maven.plugin.MojoExecutionException: An Ant
BuildException has occured: Exception thrown by 'generator.parse'. For more
information consult the velocity log, or invoke ant with the -debug flag.
around Ant part ...<texen outputFile="README.txt"
controlTemplate="control.vm"
outputDirectory="/Users/mraible/dev/roller/app/target/dbscripts"
templatePath="/Users/mraible/dev/roller/app/src/main/resources/sql"
contextProperties="/Users/mraible/dev/roller/app/src/main/resources/sql/dbscripts.properties"/>...
@ 5:291 in /Users/mraible/dev/roller/app/target/antrun/build-main.xml
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:355)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: /Users/mraible/dev/roller/app/target/antrun/build-main.xml:5:
Exception thrown by 'generator.parse'. For more information consult the
velocity log, or invoke ant with the -debug flag.
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:596)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327)
        ... 21 more
Caused by: java.io.FileNotFoundException:
/Users/mraible/dev/roller/app/target/dbscripts/db2/createdb.sql (No such
file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:110)
        at java.io.FileWriter.<init>(FileWriter.java:63)
        at
org.apache.velocity.texen.Generator.getWriter(Generator.java:290)
        at org.apache.velocity.texen.Generator.parse(Generator.java:401)
        at org.apache.velocity.texen.Generator.parse(Generator.java:353)
        at org.apache.velocity.texen.Generator.parse(Generator.java:331)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:395)
        at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:384)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:173)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:280)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:369)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
        at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
        at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:420)
        at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:207)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:342)
        at org.apache.velocity.Template.merge(Template.java:356)
        at org.apache.velocity.Template.merge(Template.java:260)
        at org.apache.velocity.texen.Generator.parse(Generator.java:445)
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:584)
        ... 33 more

Reply via email to