Can't make IDEA understand that I'm wringinf compiled Groovy code and not scripts!

Tommy Svensson <[email protected]> Tue, 21 Jul 2026 14:44:46 +0200
Newsgroups gmane.comp.lang.groovy.user
Message-ID <[email protected]>
--6a5f69cd_b546f52_306e
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

When I create a new maven module containing Groovy =C2=A0code, =C2=A0IDEA=
 =C2=A0creates this:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 ...
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<configuration>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <sc=
ripts>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 <script>src/main/groovy/Main.groovy</script>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </s=
cripts>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </configuration>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ...

I am not doing groovy scripts=21 I'm writing complied groovy code.=C2=A0

Is there any way to make IDEA aware of this =3F=C2=A0

I would have also sent this to JetBrains, but found no email address to t=
heir support.


I can of course fix this manually in pom after creating a maven module , =
but much more prefer to being able to tell IDEA this and have it generate=
 valid POMs for me.=C2=A0

Any suggestions are apprecieated=21


 =20
 =20
 Tommy Svensson
 =20
 tommy=40natusoft.se
 =20
  =20
  =20
 =20
  =20
  =20
  =20
 =20
  =20




mailto:tommy=40natusoft.se=C3=96ppnaKopiera
--6a5f69cd_b546f52_306e
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</style> =20
<div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial=
;font-size:13px; margin: 0px; line-height: auto;=22>
  When I create a new maven module containing Groovy &nbsp;code, &nbsp;ID=
EA &nbsp;creates this:
</div>
<div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial=
;font-size:13px; margin: 0px; line-height: auto;=22>
 <br />
</div>
<div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; ...
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;configuration&gt;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
lt;scripts&gt;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &lt;script&gt;src/main/groovy/Main.groovy&lt;/script&gt;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
lt;/scripts&gt;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/configurat=
ion&gt;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
   &nbsp; &nbsp; &nbsp; &nbsp; ...
  </div>
  <div>
   <br />
  </div>
  <div>
   I am not doing groovy scripts=21 I'm writing complied groovy code.&nbs=
p;
  </div>
  <div>
   <br />
  </div>
  <div>
   Is there any way to make IDEA aware of this =3F&nbsp;
  </div>
  <div>
   <br />
  </div>
  <div>
   I would have also sent this to JetBrains, but found no email address t=
o their support.
  </div>
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  <br />
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  I can of course fix this manually in pom after creating a maven module =
, but much more prefer to being able to tell IDEA this and have it genera=
te valid POMs for me.&nbsp;
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  <br />
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  Any suggestions are apprecieated=21
 </div>
 <div id=3D=22bloop=5Fcustomfont=22 style=3D=22margin: 0px;=22>
  <br />
 </div>
</div> =20
<div id=3D=22bloop=5Fsign=5F1784636642783289856=22 class=3D=22bloop=5Fsig=
n=22> =20
 <p style=3D=22margin: 0px; font-style: normal; font-variant-caps: normal=
; font-stretch: normal; font-size: 21px; line-height: normal; font-family=
: &quot;Bradley Hand&quot;; font-size-adjust: none; font-kerning: auto; f=
ont-variant-alternates: normal; font-variant-ligatures: normal; font-vari=
ant-numeric: normal; font-variant-east-asian: normal; font-variant-positi=
on: normal; font-variant-emoji: normal; font-feature-settings: normal; fo=
nt-optical-sizing: auto; font-variation-settings: normal;=22>Tommy Svenss=
on</p> =20
 <p style=3D=22margin: 0px; font-style: normal; font-variant-caps: normal=
; font-stretch: normal; font-size: 21px; line-height: normal; font-family=
: &quot;Bradley Hand&quot;; font-size-adjust: none; font-kerning: auto; f=
ont-variant-alternates: normal; font-variant-ligatures: normal; font-vari=
ant-numeric: normal; font-variant-east-asian: normal; font-variant-positi=
on: normal; font-variant-emoji: normal; font-feature-settings: normal; fo=
nt-optical-sizing: auto; font-variation-settings: normal;=22><a href=3D=22=
mailto:tommy=40natusoft.se=22>tommy=40natusoft.se</a></p> =20
 <div> =20
  <p style=3D=22margin: 0px; font-stretch: normal; font-size: 21px; line-=
height: normal; font-family: &quot;Bradley Hand&quot;; font-size-adjust: =
none; font-kerning: auto; font-variant-alternates: normal; font-variant-l=
igatures: normal; font-variant-numeric: normal; font-variant-east-asian: =
normal; font-variant-position: normal; font-feature-settings: normal; fon=
t-optical-sizing: auto; font-variation-settings: normal;=22><br /></p> =20
 </div> =20
 <div> =20
  <br /> =20
 </div> =20
</div> =20
<div contenteditable=3D=22false=22 data-am-link-popover=3D=221=22 style=3D=
=22position: fixed; z-index: 2147483647; display: none; max-width: 440px;=
 padding: 6px 8px; border-radius: 8px; background: rgba(40, 40, 40, 0.96)=
; color: rgb(255, 255, 255); font-style: normal; font-variant-caps: norma=
l; font-weight: normal; font-width: normal; font-size: 12px; line-height:=
 1.4; font-family: -apple-system, system-ui, sans-serif; font-size-adjust=
: none; font-kerning: auto; font-variant-alternates: normal; font-variant=
-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian=
: normal; font-variant-position: normal; font-variant-emoji: normal; font=
-feature-settings: normal; font-optical-sizing: auto; font-variation-sett=
ings: normal; box-shadow: rgba(0, 0, 0, 0.35) 0px 4px 16px; align-items: =
center; gap: 8px; -webkit-user-select: none; pointer-events: auto; left: =
15px; top: 34px;=22>
 <span class=3D=22am=5Flink=5Fpopover=5Furl=22 title=3D=22mailto:tommy=40=
natusoft.se=22 style=3D=22overflow: hidden; text-overflow: ellipsis; whit=
e-space: nowrap; max-width: 300px; flex: 0 1 auto;=22>mailto:tommy=40natu=
soft.se</span>
 <button type=3D=22button=22 style=3D=22flex: 0 0 auto; padding: 2px 10px=
; border-radius: 4px; border: 0px; background: rgb(59, 130, 246); color: =
rgb(255, 255, 255); cursor: pointer; font-style: inherit; font-variant-ca=
ps: inherit; font-weight: inherit; font-width: inherit; font-size: inheri=
t; line-height: inherit; font-family: inherit; font-size-adjust: inherit;=
 font-kerning: inherit; font-variant-alternates: inherit; font-variant-li=
gatures: inherit; font-variant-numeric: inherit; font-variant-east-asian:=
 inherit; font-variant-position: inherit; font-variant-emoji: inherit; fo=
nt-feature-settings: inherit; font-optical-sizing: inherit; font-variatio=
n-settings: inherit;=22>=C3=96ppna</button>
 <button type=3D=22button=22 style=3D=22flex: 0 0 auto; padding: 2px 10px=
; border-radius: 4px; border: 0px; background: rgba(255, 255, 255, 0.18);=
 color: rgb(255, 255, 255); cursor: pointer; font-style: inherit; font-va=
riant-caps: inherit; font-weight: inherit; font-width: inherit; font-size=
: inherit; line-height: inherit; font-family: inherit; font-size-adjust: =
inherit; font-kerning: inherit; font-variant-alternates: inherit; font-va=
riant-ligatures: inherit; font-variant-numeric: inherit; font-variant-eas=
t-asian: inherit; font-variant-position: inherit; font-variant-emoji: inh=
erit; font-feature-settings: inherit; font-optical-sizing: inherit; font-=
variation-settings: inherit;=22>Kopiera</button>
</div>
--6a5f69cd_b546f52_306e--