Re: SimpleApp archetype and Java 8

2015-07-13 Thread Martin Grigorov
Hi,

I guess this is some Eclipse setting that you have enabled locally that
treats valid code as an error (e.g. because your team decided so).
The code should be OK since the introduction of Java 7 diamond operator.
The compiler is able to infer the type from the passed Class parameter;

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jul 13, 2015 at 9:04 PM, Ilkka Seppälä  wrote:

> 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.class, "findByName", "name",
> name));
>
> -Ilkka
>
>
> 2015-07-13 16:05 GMT+03:00 Dan Haywood :
>
> > 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  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ä 
> > 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.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
> > > >
> > >
> >
>


Re: SimpleApp archetype and Java 8

2015-07-13 Thread Ilkka Seppälä
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.class, "findByName", "name", name));

-Ilkka


2015-07-13 16:05 GMT+03:00 Dan Haywood :

> 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  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ä 
> 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.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
> > >
> >
>


Re: SimpleApp archetype and Java 8

2015-07-13 Thread Dan Haywood
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  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ä  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.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
> >
>


Re: Calling any IntelliJ users

2015-07-13 Thread Dan Haywood
Thanks for that feedback, Vladimir.

Now that all the source for the docs are in git, we do of course accept
pull requests :-)

But I'll see about doing an update to the docs in the meantime anyway.

Cheers
Dan




On 13 July 2015 at 13:58, Vladimir Nišević  wrote:

> Hi Dan, I've just went thru your guide and want to give you my feedback.
>
> After the described steps how to setup the idea in the step maven helper
> plugin https://isis.apache.org/guides/cg.html#_maven_helper_plugin you
> assume from chapter 2.1.2 that the Isis source code is already checked out
> locally.
>
> Maybe you should spend some words here about how to get the current Isis
> source code:
>
> - install a git client (sourcetree
> https://www.atlassian.com/software/sourcetree/overview ) or howto
> configure
> a git in Idea
> - checkout the Isis source code (refer to your documentation later
> https://isis.apache.org/guides/cg.html#7.1.-recommended-workflow-(github)
>
>
>
> Regs,Vladimir
>
> 2015-07-08 9:56 GMT+02:00 Dan Haywood :
>
> > Hi folks,
> >
> > for those of you using IntelliJ, I just updated our website to reference
> > the new and improved maven helper plugin that you can install [1].
> This
> > now has a nice dependency tree view, as well as some other useful
> features.
> >
> > The dependency tree view was the one feature that I missed from Eclipse,
> so
> > it's nice to finally have something comparable.
> >
> > Cheers
> > Dan
> >
> > [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
> >
>


Re: Calling any IntelliJ users

2015-07-13 Thread Vladimir Nišević
Hi Dan, I've just went thru your guide and want to give you my feedback.

After the described steps how to setup the idea in the step maven helper
plugin https://isis.apache.org/guides/cg.html#_maven_helper_plugin you
assume from chapter 2.1.2 that the Isis source code is already checked out
locally.

Maybe you should spend some words here about how to get the current Isis
source code:

- install a git client (sourcetree
https://www.atlassian.com/software/sourcetree/overview ) or howto configure
a git in Idea
- checkout the Isis source code (refer to your documentation later
https://isis.apache.org/guides/cg.html#7.1.-recommended-workflow-(github)



Regs,Vladimir

2015-07-08 9:56 GMT+02:00 Dan Haywood :

> Hi folks,
>
> for those of you using IntelliJ, I just updated our website to reference
> the new and improved maven helper plugin that you can install [1].This
> now has a nice dependency tree view, as well as some other useful features.
>
> The dependency tree view was the one feature that I missed from Eclipse, so
> it's nice to finally have something comparable.
>
> Cheers
> Dan
>
> [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
>


Re: Calling any IntelliJ users

2015-07-13 Thread Vladimir Nišević
Hi Martin, haven't seen your hint before sending the mail, Thanks anyway.

Regs,Vladimir

2015-07-13 14:15 GMT+02:00 Vladimir Nišević :

> Ok, I think you've ment this one:
> https://isis.apache.org/guides/cg.html#_maven_helper_plugin
>
> Regs,Vladimir
>
>
> 2015-07-13 14:02 GMT+02:00 Vladimir Nišević :
>
>> Hi Dan, clickling the link [1] brings up a "404 Not Found"
>>
>> Regs,Vladimir
>>
>> 2015-07-08 9:56 GMT+02:00 Dan Haywood :
>>
>>> Hi folks,
>>>
>>> for those of you using IntelliJ, I just updated our website to reference
>>> the new and improved maven helper plugin that you can install [1].
>>> This
>>> now has a nice dependency tree view, as well as some other useful
>>> features.
>>>
>>> The dependency tree view was the one feature that I missed from Eclipse,
>>> so
>>> it's nice to finally have something comparable.
>>>
>>> Cheers
>>> Dan
>>>
>>> [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
>>>
>>
>>
>


Re: Calling any IntelliJ users

2015-07-13 Thread Vladimir Nišević
Ok, I think you've ment this one:
https://isis.apache.org/guides/cg.html#_maven_helper_plugin

Regs,Vladimir


2015-07-13 14:02 GMT+02:00 Vladimir Nišević :

> Hi Dan, clickling the link [1] brings up a "404 Not Found"
>
> Regs,Vladimir
>
> 2015-07-08 9:56 GMT+02:00 Dan Haywood :
>
>> Hi folks,
>>
>> for those of you using IntelliJ, I just updated our website to reference
>> the new and improved maven helper plugin that you can install [1].This
>> now has a nice dependency tree view, as well as some other useful
>> features.
>>
>> The dependency tree view was the one feature that I missed from Eclipse,
>> so
>> it's nice to finally have something comparable.
>>
>> Cheers
>> Dan
>>
>> [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
>>
>
>


Re: Calling any IntelliJ users

2015-07-13 Thread Martin Grigorov
See http://isis.apache.org/guides/cg.html#plugins

Martin Grigorov
Freelancer. Available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Jul 13, 2015 at 3:02 PM, Vladimir Nišević 
wrote:

> Hi Dan, clickling the link [1] brings up a "404 Not Found"
>
> Regs,Vladimir
>
> 2015-07-08 9:56 GMT+02:00 Dan Haywood :
>
> > Hi folks,
> >
> > for those of you using IntelliJ, I just updated our website to reference
> > the new and improved maven helper plugin that you can install [1].
> This
> > now has a nice dependency tree view, as well as some other useful
> features.
> >
> > The dependency tree view was the one feature that I missed from Eclipse,
> so
> > it's nice to finally have something comparable.
> >
> > Cheers
> > Dan
> >
> > [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
> >
>


Re: Calling any IntelliJ users

2015-07-13 Thread Vladimir Nišević
Hi Dan, clickling the link [1] brings up a "404 Not Found"

Regs,Vladimir

2015-07-08 9:56 GMT+02:00 Dan Haywood :

> Hi folks,
>
> for those of you using IntelliJ, I just updated our website to reference
> the new and improved maven helper plugin that you can install [1].This
> now has a nice dependency tree view, as well as some other useful features.
>
> The dependency tree view was the one feature that I missed from Eclipse, so
> it's nice to finally have something comparable.
>
> Cheers
> Dan
>
> [1] http://isis.apache.org/guides/dg.html#_maven_helper_plugin
>


Re: SimpleApp archetype and Java 8

2015-07-13 Thread Martin Grigorov
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ä  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.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
>


SimpleApp archetype and Java 8

2015-07-13 Thread Ilkka Seppälä
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.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