On Thu, May 28, 2015 at 3:58 PM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> Let me see how painful building 1.7 is right now. Are you saying that
> the grammar does not work for you?

At some point, there was a regression where <tab> stopped being
recognized as whitespace between the directive and the arguments.   If
I recall correctly, things like #if<tab>..." no longer worked.  The
fix is trivial.

But there is no way to rebuild the java classes from the grammar
defintion files.  There apparently used to be under ant, but not under
maven.   I wasn't able to get it working even with ant -- I spent a
few hours trying with some help by Claude before I gave up.  I had
more important things that needed my attention instead of an optional
upgrade of velocity back then.  This was a year ago.


> When running "mvn" from a fresh checkout of Velocity 1.7
> (svn:https://svn.apache.org/repos/asf/velocity/engine/tags/1.7,
> last-changed r1040245), I get this:
>
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-junit/2.4.3/surefire-junit-2.4.3.jar
> 14K downloaded  (surefire-junit-2.4.3.jar)
> [INFO] Surefire report directory:
> /Users/chris/Documents/Eclipse/velocity-1.7/target/surefire-reports
> org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
> instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested exception is java.lang.IllegalAccessException: Class
> org.apache.maven.surefire.testset.PojoTestSet can not access a member of
> class org.apache.velocity.test.TestClassloader with modifiers "public";
> nested exception is
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested exception is java.lang.IllegalAccessException: Class
> org.apache.maven.surefire.testset.PojoTestSet can not access a member of
> class org.apache.velocity.test.TestClassloader with modifiers "public"
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> instantiate POJO 'class org.apache.velocity.test.TestClassloader';
> nested exception is java.lang.IllegalAccessException: Class
> org.apache.maven.surefire.testset.PojoTestSet can not access a member of
> class org.apache.velocity.test.TestClassloader with modifiers "public"
> java.lang.IllegalAccessException: Class
> org.apache.maven.surefire.testset.PojoTestSet can not access a member of
> class org.apache.velocity.test.TestClassloader with modifiers "public"
>         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
>         at java.lang.Class.newInstance(Class.java:436)
>         at
> org.apache.maven.surefire.testset.PojoTestSet.<init>(PojoTestSet.java:55)
>         at
> org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:64)
>         at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
>         at
> org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
>         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:497)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> I have absolutely no idea how to turn off things like unit tests in
> Maven to see if I can even get an artifact.
>
> If I run "mvn compile" it tells me there's nothing do to, but my working
> copy of svn has no changes. Nothing to do, but nothing done, seems like.

mvn install -DskipTests

http://maven.apache.org/surefire/maven-surefire-plugin/examples/skipping-test.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to