Hi,

Thanks for your help. Yes, after changing the dependency to 1.9.0-SNAPSHOT
it works with Java 8.

Still I needed to make the little change to get rid of error in Eclipse IDE
(SimpleObjects.java, line 72):

return container.allMatches(new
QueryDefault<SimpleObject>(SimpleObject.class, "findByName", "name", name));

-Ilkka


2015-07-13 16:05 GMT+03:00 Dan Haywood <[email protected]>:

> I'm hoping to push 1.9.0 out as a release later this month.  (Though saying
> this I'm acutely aware that I said the same in Apr, and May, and Jun... )
>
> I'll double check that 1.9.0-SNAPSHOT version of the archetype works from
> the cmd line (but it should, as Martin says).
>
> Thx
> Dan
>
>
>
> On 13 July 2015 at 12:29, Martin Grigorov <[email protected]> wrote:
>
> > Hi,
> >
> > Latest Isis actually requires JDK 1.8 (see [1]).
> > Use Isis 1.9.0-SNAPSHOT and all should be fine.
> > Almost everyone here uses -SNAPSHOT version for developing new apps.
> >
> > 1.
> >
> >
> https://github.com/apache/isis/blob/master/example/archetype/simpleapp/src/main/resources/archetype-resources/pom.xml#L77
> >
> > Martin Grigorov
> > Freelancer. Available for hire!
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Jul 13, 2015 at 2:24 PM, Ilkka Seppälä <[email protected]>
> wrote:
> >
> > > Hi,
> > >
> > > I'm trying to get started with Isis using the SimpleApp archetype. Out
> of
> > > the box it compiles fine on the command line and in the IDE. However, I
> > > would like to use Java 8 so in the parent pom.xml I changed
> > > maven-compiler-plugin configuration to 1.8. Following this change I
> > needed
> > > to change one line in SimpleObjects.java. Line 62 changed from
> > >
> > > return container.allMatches(new QueryDefault<>(SimpleObject.class,
> > > "findByName", "name", name));
> > >
> > > to
> > >
> > > return container.allMatches(new
> > > QueryDefault<SimpleObject>(SimpleObject.class, "findByName", "name",
> > > name));
> > >
> > > After this change my IDE shows no errors, but on the command line when
> I
> > > run "mvn clean install" it aborts with the following error:
> > >
> > > [ERROR] Failed to execute goal
> > > org.datanucleus:datanucleus-maven-plugin:3.3.2:enhance (default) on
> > project
> > > naked-objects-dom: Error executing DataNucleus tool
> > > org.datanucleus.enhancer.DataNucleusEnhancer:InvocationTargetException:
> > > IllegalArgumentException -> [Help 1]
> > >
> > > Is it possible to enable Java 8 support for Apache Isis?
> > >
> > > -Ilkka
> > >
> >
>

Reply via email to