Cannot build XXXX artifact: it includes itself in the output layout
Hi,
I'm trying to create a enterprise application. But if I create a enterprise application with Intellij Project Wizard and trying to deploy them im get this error:
Cannot build 'ear_error:ear exploded' artifact: it includes itself in the output layout
How can I fix them?
greeting
ci bo
Please sign in to leave a comment.
Edit the artifact definiition so that it no longer includes itself, I would guess?
does it make any sense that Intellij configure it so?
In order to say that, I would need to know the specific sequence of steps that you have performed.
1. File -> New Project -> Create project from scratch
2. type a project name
3. next
4. Web Application
-> JSF
-> Primefaces
-> Application Server -> Glassfish
-> Enterprise JavaBeans -> Version 3.1
-> JavaEE Application -> Version 6
5. Shift+F10
-> Cannot build 'untitled1:ear exploded' artifact: it includes itself in the output layout
I've fixed this, thank you for reporting.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
thanx!!
HI,
I had this occur in IntelliJ 11.1.3 and 11.1.4 EAP running on a MAC.
I created the project the same way which Dmitry did. The only way I could remove it was to unselect "JavaEE Application" when creating the new project.
The only reason why I went to 11.1.4 EAP was because of this error.
So has it been fixed?
Why does this occur?
Thx,
Paul
It has been fixed in version 12 EAP.
Hello,
IDEA 11.1.x generates incorrect configuration of the EAR artifact when you select 'JavaEE Application' item. However you can fix it by hand after the
project is created: open File | Project Structure, select 'Artifacts' item, select 'appname:ear exploded' artifact, navigate to 'ejb.jar' node in
'Output Layout' tree, remove 'appname:ear exploded' item from this node and drag'n'drop 'appname:ejb exploded' item from 'Available Elements' tree to
this node.
The problem with incorrect artifact generation is fixed in IDEA 12 builds.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"