IDEA EAP Build 90.94 - Cannot figure out how deployments and packing is supposed to work

Hello JetBrains --

I just converted my project that has about 30 web modules, 10 EJBs, and
about 15 supporting JAR modules into the new format required by 90.94. For
some reason when I build web modules the java files in the web app's
"java/src" folder don't get deployed even though it's specified to do so in
the artifact.

So I decided to remove all the artifacts after the conversion to try to
manually configure all new artifacts. I wanted to start simple: one WAR, and
one EAR. I also wanted to see how the new build handled my EAR projects (I'm
using WAS 6.1 and RSA to modify those). For the life of me, I can't seem to
get IDEA to build my EAR in an exploded fashion in the way that I'd like.

The format I'd like to have is:
/explodedfolder/
/explodedfolder/myear.ear/
/explodedfolder/myear.ear/-- JAR files which sit at the EAR level - both
project libraries and modules from my project.
/explodedfolder/myear.ear/webapp1/
/explodedfolder/myear.ear/webapp1/ {JSPs, etc}
/explodedfolder/myear.ear/webapp1/WEB-INF/lib
/explodedfolder/myear.ear/webapp1/WEB-INF/classes
/explodedfolder/myear.ear/webapp2/
/explodedfolder/myear.ear/webapp2/ {JSPs, etc}
/explodedfolder/myear.ear/webapp2/WEB-INF/lib
/explodedfolder/myear.ear/webapp2/WEB-INF/classes

I'm running into a couple stumbling blocks.
1) None of the java source files from my web apps are getting copied into
the WEB-INF/classes folder.
2) I cannot add modules from my project to be deployed into the WEB-INF/lib
of my web app as a JAR. I can only seem to add it as a compiled output. Even
if I try to select compiled output, I don't see anything deployed.
3) I can't seem to figure out how to add my modules to the EAR such that
they get copied as a JAR to the root of the EAR. Also, the project libraries
I have listed under "Dependencies" for the EAR - how do I automatically make
those deploy out? Do I have to configure it twice?
4) When I'm looking at my web facet, I see a "Context" option with 2 options
when the web app is added to an EAR. The options are for the context to be
either the web artifact or the EAR artifact. What is the difference between
the two? The option doesn't show up unless I add the web facet to an EAR as
an artifact.
5) Does the "scope" option have any affect when adding JARs as a dependency
(compile/runtime/etc)?

I've been playing around trying to convert my IDEA 8 project into the 9
format but can't seem to get a build working to an exploded folder - even
for a single web app (with or without an EAR)

I'm happy to send over my project files to the FTP as well. Let me know if
screenshots would help.

Has anyone else been able to configure a similar project?

Thanks
Grant Gochnauer


7 comments
Comment actions Permalink

That's a bug: http://youtrack.jetbrains.net/issue/IDEADEV-40863

I don't understand, though, why a new release was made public before such an important bug was fixed.

Grant Gochnauer wrote:

Hello JetBrains --

I just converted my project that has about 30 web modules, 10 EJBs, and
about 15 supporting JAR modules into the new format required by 90.94.
For some reason when I build web modules the java files in the web app's
"java/src" folder don't get deployed even though it's specified to do so
in the artifact.

So I decided to remove all the artifacts after the conversion to try to
manually configure all new artifacts. I wanted to start simple: one WAR,
and one EAR. I also wanted to see how the new build handled my EAR
projects (I'm using WAS 6.1 and RSA to modify those). For the life of
me, I can't seem to get IDEA to build my EAR in an exploded fashion in
the way that I'd like.

The format I'd like to have is:
/explodedfolder/
/explodedfolder/myear.ear/
/explodedfolder/myear.ear/-- JAR files which sit at the EAR level - both
project libraries and modules from my project.
/explodedfolder/myear.ear/webapp1/
/explodedfolder/myear.ear/webapp1/ {JSPs, etc}
/explodedfolder/myear.ear/webapp1/WEB-INF/lib
/explodedfolder/myear.ear/webapp1/WEB-INF/classes
/explodedfolder/myear.ear/webapp2/
/explodedfolder/myear.ear/webapp2/ {JSPs, etc}
/explodedfolder/myear.ear/webapp2/WEB-INF/lib
/explodedfolder/myear.ear/webapp2/WEB-INF/classes

I'm running into a couple stumbling blocks.
1) None of the java source files from my web apps are getting copied
into the WEB-INF/classes folder.
2) I cannot add modules from my project to be deployed into the
WEB-INF/lib of my web app as a JAR. I can only seem to add it as a
compiled output. Even if I try to select compiled output, I don't see
anything deployed.
3) I can't seem to figure out how to add my modules to the EAR such that
they get copied as a JAR to the root of the EAR. Also, the project
libraries I have listed under "Dependencies" for the EAR - how do I
automatically make those deploy out? Do I have to configure it twice?
4) When I'm looking at my web facet, I see a "Context" option with 2
options when the web app is added to an EAR. The options are for the
context to be either the web artifact or the EAR artifact. What is the
difference between the two? The option doesn't show up unless I add the
web facet to an EAR as an artifact.
5) Does the "scope" option have any affect when adding JARs as a
dependency (compile/runtime/etc)?

I've been playing around trying to convert my IDEA 8 project into the 9
format but can't seem to get a build working to an exploded folder -
even for a single web app (with or without an EAR)

I'm happy to send over my project files to the FTP as well. Let me know
if screenshots would help.

Has anyone else been able to configure a similar project?

Thanks
Grant Gochnauer

0
Comment actions Permalink

Ah thanks!

That should hopefully fix the compiling/copying issues. I'm still curious
how to properly configure an EAR with JARs and web modules properly. It's
not totally intuitive to me :) I'm sure JB is still working on it since this
is the first build with this new format.

Grant


"Stephen Friedrich" <mail@gremlin.info> wrote in message
news:hba784$4eo$1@is.intellij.net...

That's a bug: http://youtrack.jetbrains.net/issue/IDEADEV-40863

>

I don't understand, though, why a new release was made public before such
an important bug was fixed.

>

Grant Gochnauer wrote:

>> Hello JetBrains --
>>
>> I just converted my project that has about 30 web modules, 10 EJBs, and
>> about 15 supporting JAR modules into the new format required by 90.94.
>> For some reason when I build web modules the java files in the web app's
>> "java/src" folder don't get deployed even though it's specified to do so
>> in the artifact.
>>
>> So I decided to remove all the artifacts after the conversion to try to
>> manually configure all new artifacts. I wanted to start simple: one WAR,
>> and one EAR. I also wanted to see how the new build handled my EAR
>> projects (I'm using WAS 6.1 and RSA to modify those). For the life of me,
>> I can't seem to get IDEA to build my EAR in an exploded fashion in the
>> way that I'd like.
>>
>> The format I'd like to have is:
>> /explodedfolder/
>> /explodedfolder/myear.ear/
>> /explodedfolder/myear.ear/-- JAR files which sit at the EAR level - both
>> project libraries and modules from my project.
>> /explodedfolder/myear.ear/webapp1/
>> /explodedfolder/myear.ear/webapp1/ {JSPs, etc}
>> /explodedfolder/myear.ear/webapp1/WEB-INF/lib
>> /explodedfolder/myear.ear/webapp1/WEB-INF/classes
>> /explodedfolder/myear.ear/webapp2/
>> /explodedfolder/myear.ear/webapp2/ {JSPs, etc}
>> /explodedfolder/myear.ear/webapp2/WEB-INF/lib
>> /explodedfolder/myear.ear/webapp2/WEB-INF/classes
>>
>> I'm running into a couple stumbling blocks.
>> 1) None of the java source files from my web apps are getting copied into
>> the WEB-INF/classes folder.
>> 2) I cannot add modules from my project to be deployed into the
>> WEB-INF/lib of my web app as a JAR. I can only seem to add it as a
>> compiled output. Even if I try to select compiled output, I don't see
>> anything deployed.
>> 3) I can't seem to figure out how to add my modules to the EAR such that
>> they get copied as a JAR to the root of the EAR. Also, the project
>> libraries I have listed under "Dependencies" for the EAR - how do I
>> automatically make those deploy out? Do I have to configure it twice?
>> 4) When I'm looking at my web facet, I see a "Context" option with 2
>> options when the web app is added to an EAR. The options are for the
>> context to be either the web artifact or the EAR artifact. What is the
>> difference between the two? The option doesn't show up unless I add the
>> web facet to an EAR as an artifact.
>> 5) Does the "scope" option have any affect when adding JARs as a
>> dependency (compile/runtime/etc)?
>>
>> I've been playing around trying to convert my IDEA 8 project into the 9
>> format but can't seem to get a build working to an exploded folder - even
>> for a single web app (with or without an EAR)
>>
>> I'm happy to send over my project files to the FTP as well. Let me know
>> if screenshots would help.
>>
>> Has anyone else been able to configure a similar project?
>>
>> Thanks
>> Grant Gochnauer
>>
>>

0
Comment actions Permalink

Ah thanks!

That should hopefully fix the compiling/copying issues. I'm still curious
how to properly configure an EAR with JARs and web modules properly. It's
not totally intuitive to me :) I'm sure JB is still working on it since this
is the first build with this new format.

Grant


"Stephen Friedrich" <mail@gremlin.info> wrote in message
news:hba784$4eo$1@is.intellij.net...

That's a bug: http://youtrack.jetbrains.net/issue/IDEADEV-40863

>

I don't understand, though, why a new release was made public before such
an important bug was fixed.

>

Grant Gochnauer wrote:

>> Hello JetBrains --
>>
>> I just converted my project that has about 30 web modules, 10 EJBs, and
>> about 15 supporting JAR modules into the new format required by 90.94.
>> For some reason when I build web modules the java files in the web app's
>> "java/src" folder don't get deployed even though it's specified to do so
>> in the artifact.
>>
>> So I decided to remove all the artifacts after the conversion to try to
>> manually configure all new artifacts. I wanted to start simple: one WAR,
>> and one EAR. I also wanted to see how the new build handled my EAR
>> projects (I'm using WAS 6.1 and RSA to modify those). For the life of me,
>> I can't seem to get IDEA to build my EAR in an exploded fashion in the
>> way that I'd like.
>>
>> The format I'd like to have is:
>> /explodedfolder/
>> /explodedfolder/myear.ear/
>> /explodedfolder/myear.ear/-- JAR files which sit at the EAR level - both
>> project libraries and modules from my project.
>> /explodedfolder/myear.ear/webapp1/
>> /explodedfolder/myear.ear/webapp1/ {JSPs, etc}
>> /explodedfolder/myear.ear/webapp1/WEB-INF/lib
>> /explodedfolder/myear.ear/webapp1/WEB-INF/classes
>> /explodedfolder/myear.ear/webapp2/
>> /explodedfolder/myear.ear/webapp2/ {JSPs, etc}
>> /explodedfolder/myear.ear/webapp2/WEB-INF/lib
>> /explodedfolder/myear.ear/webapp2/WEB-INF/classes
>>
>> I'm running into a couple stumbling blocks.
>> 1) None of the java source files from my web apps are getting copied into
>> the WEB-INF/classes folder.
>> 2) I cannot add modules from my project to be deployed into the
>> WEB-INF/lib of my web app as a JAR. I can only seem to add it as a
>> compiled output. Even if I try to select compiled output, I don't see
>> anything deployed.
>> 3) I can't seem to figure out how to add my modules to the EAR such that
>> they get copied as a JAR to the root of the EAR. Also, the project
>> libraries I have listed under "Dependencies" for the EAR - how do I
>> automatically make those deploy out? Do I have to configure it twice?
>> 4) When I'm looking at my web facet, I see a "Context" option with 2
>> options when the web app is added to an EAR. The options are for the
>> context to be either the web artifact or the EAR artifact. What is the
>> difference between the two? The option doesn't show up unless I add the
>> web facet to an EAR as an artifact.
>> 5) Does the "scope" option have any affect when adding JARs as a
>> dependency (compile/runtime/etc)?
>>
>> I've been playing around trying to convert my IDEA 8 project into the 9
>> format but can't seem to get a build working to an exploded folder - even
>> for a single web app (with or without an EAR)
>>
>> I'm happy to send over my project files to the FTP as well. Let me know
>> if screenshots would help.
>>
>> Has anyone else been able to configure a similar project?
>>
>> Thanks
>> Grant Gochnauer
>>
>>

0
Comment actions Permalink

The bug is fixed in 90.96, hopefully they will release it soon, it is a big bug.

0
Comment actions Permalink

JB re-released the community edition on build 90.96 but not the Ultimate yet
:)


"Barry Kaplan" <no_reply@jetbrains.com> wrote in message
news:29803351.92611255712299151.JavaMail.clearspace@app8.labs.intellij.net...

The bug is fixed in 90.96, hopefully they will release it soon, it is a
big bug.

>

---
Original message URL:
http://www.jetbrains.net/devnet/message/5247187#5247187


0
Comment actions Permalink
I'm still curious

how to properly configure an EAR with JARs and web modules properly. It's
not totally intuitive to me :) I'm sure JB is still working on it since this
is the first build with this new format.


Same thing here, I would like to see some hints how to configure a J2EE project properly. I'm still puzzled.

0
Comment actions Permalink

Ok, I reverted back to Maia build #10781 again. Unfortunately build 90.94 is currently not yet usable for me.

0

Please sign in to leave a comment.