Re: setting up maven environment

2018-01-11 Thread Martin Mucha
Thanks for link!

But ... I'm sorry, my module have java and groovy files in it, and as
documentation explains, this compiler has issues to build such modules...
And, I'm not trying to be sarcastic/whatever here, if other modules, which
don't have issues with that, are surprisingly hard to configure to be
actually working, I as a groovy beginner should probably lead with
something simpler. Can you look at my previous reply, if you can see
anything wrong with my pom.xml?

thanks!

2018-01-11 15:45 GMT+01:00 Guillaume Laforge :

> And a link to GMavenPlus:
> https://github.com/groovy/GMavenPlus/wiki
>
> Guillaume
>
>
> On Thu, Jan 11, 2018 at 3:44 PM, Daniel Sun 
> wrote:
>
>> FYI,
>> http://docs.groovy-lang.org/latest/html/documentation/tools-
>> groovyc.html#_maven_integration
>>
>> Cheers,
>> Daniel.Sun
>>
>>
>>
>>
>> --
>> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>>
>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge  / Google+
> 
>


Re: setting up maven environment

2018-01-11 Thread Martin Mucha
Thanks for link,

sadly this seems to be one the links on web, which does not work/contain
complete information. Build fails with: An Ant BuildException has occured:
taskdef class org.codehaus.groovy.ant.Groovyc cannot be found

Ok nevermind, let me restate the question. I got furthest with following
pom.xml below. The problem is, that when I build single groovy class:

package cz.???.processors.fdp


class ImpossibleToCompile {
}

I'm getting error:

1. ERROR in
/home/mmucha/projects/FDP/fdp-nifi-processors/nifi-fdp-processors/src/main/groovy/cz/???/processors/fdp/ImpossibleToCompile.groovy
(at line 1)
[ERROR] package cz.???.processors.fdp
[ERROR] ^
[ERROR] The type groovy.lang.GroovyObject cannot be resolved. It is
indirectly referenced from required .class files


What can be wrong here? Or what maven configuration could I use to compile
this triviality without any error?


pom.xml



http://maven.apache.org/POM/4.0.0; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd;>
4.0.0


2.4.3

${version.groovy.all}-01

2.9.2-01



???
???
1.0-SNAPSHOT


???
jar




org.codehaus.groovy
groovy-all
${version.groovy.all}
test



org.apache.nifi
nifi-api


org.apache.nifi
nifi-utils


commons-io
commons-io



org.apache.nifi
nifi-standard-processors
${nifi.version}




org.apache.nifi
nifi-record-serialization-service-api





org.apache.nifi
nifi-schema-registry-service-api





org.apache.nifi
nifi-record



org.apache.nifi
nifi-mock
test


org.slf4j
slf4j-simple
test


junit
junit
test





bintray
Groovy Bintray
https://dl.bintray.com/groovy/maven

never


false









maven-compiler-plugin
3.7.0

groovy-eclipse-compiler








org.codehaus.groovy
groovy-eclipse-compiler

${plugin.version.groovy-eclipse-compiler}


org.codehaus.groovy
groovy-eclipse-batch
${version.groovy-eclipse-batch}












2018-01-11 15:44 GMT+01:00 Daniel Sun :

> FYI,
> http://docs.groovy-lang.org/latest/html/documentation/
> tools-groovyc.html#_maven_integration
>
> Cheers,
> Daniel.Sun
>
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>


Re: setting up maven environment

2018-01-11 Thread Guillaume Laforge
And a link to GMavenPlus:
https://github.com/groovy/GMavenPlus/wiki

Guillaume


On Thu, Jan 11, 2018 at 3:44 PM, Daniel Sun  wrote:

> FYI,
> http://docs.groovy-lang.org/latest/html/documentation/
> tools-groovyc.html#_maven_integration
>
> Cheers,
> Daniel.Sun
>
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>



-- 
Guillaume Laforge
Apache Groovy committer & PMC Vice-President
Developer Advocate @ Google Cloud Platform

Blog: http://glaforge.appspot.com/
Social: @glaforge  / Google+



Re: setting up maven environment

2018-01-11 Thread Daniel Sun
FYI,
http://docs.groovy-lang.org/latest/html/documentation/tools-groovyc.html#_maven_integration

Cheers,
Daniel.Sun




--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html