Building artifacts does not work
Answered
Hi,
within Project Structure I configured a Web Application Archive (*.war) as an output which should be build when the project is build.
This does not work when I build the project, neither when I rebuild the project. And neither when I select Build ... -> Build artifacts -> Build -> Action Build; there is no war-file created.
I use IntelliJ IDEA 2016.3.4
Build #IU-163.12024.16, built on January 31, 2017
Licensed to Siemens AG / Harald Busc
Subscription is active until April 17, 2017
JRE: 1.8.0_73-b02 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Anybody facing the same problem and found a solution ?
Thank you
Regards
AgeBee
Please sign in to leave a comment.
Check idea.log and build.log for errors: https://intellij-support.jetbrains.com/hc/articles/207241085.
Also make sure you are looking in the correct artifact output location.
Share a project to reproduce if you need further help: https://intellij-support.jetbrains.com/hc/articles/206869619.
Hi Serge,
thanks for your quick help.
I looked into the directory C:\Learning\demo07\out\artifacts\demo07Archive which I choose but the directory isn't there, neither the '.war file.
I also took a log into the logfiles (idea.log and build.log) but did not find any entry about the war files which was not created.
Then I created the directories manually but even then no war-file was created.
By the way; I did not even have success to generate JavaEE Applucation exloded nor Web Application exploded artifacts.
I suspect that my whole project is not meant to created such artifacts.
Regards
I created the new project with Spring Initializr (https://start.spring.io), chose 'Web' and 'Web Service' as dependencies and that's it. Configuration for building the artifact as stated in my first comment.
Please share a complete project to reproduce and the logs: https://intellij-support.jetbrains.com/hc/articles/206869619.
Hello Serge,
your hint helped me to solve the problem. Thanks for your instant and quick help.
As I was new to IntelliJ I was not familiar with the process of generating artifacats.
Regards