NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Jonas Trollvik Posted via mailing list.
|
Posted: Tue Dec 09, 2008 10:31 am Post subject: Maven multi-module project |
|
|
Hi,
I recently converted our projects to a maven multi-module project. I
have a webapp project which is the entrypoint for the whole
application which is one of the modules.
It works fine to deploy the application to the tomcat container when I
select the Webapp project, however what I want to do is to do the same
for the Multi-module project so all dependencies will be compiled if
changed aswell. However I cannot find any information on how to do
this in netbeans / maven.
I first tried to solve the problem by adding this to the multi-module
project pom:
<properties>
<netbeans.hint.packaging>war</netbeans.hint.packaging>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
This made the deploy icon show up at least but it does not deploy the
war itself so I think Im way off here.
Any suggestions/help on how to handle this problem the right way would
be appreciated
Best regards,
Jonas Trollvik |
|
| Back to top |
|
 |
Jonas Trollvik Posted via mailing list.
|
Posted: Tue Dec 16, 2008 9:26 pm Post subject: Maven multi-module project |
|
|
Sorry for bringing this up again, but since I cannot find any useful
information regarding this I have to ask again. Is there no way to
"run" a multi module maven project in Netbeans?
Regards,
Jonas
On Tue, Dec 9, 2008 at 11:31 AM, Jonas Trollvik <address-removed> wrote:
| Quote: | Hi,
I recently converted our projects to a maven multi-module project. I
have a webapp project which is the entrypoint for the whole
application which is one of the modules.
It works fine to deploy the application to the tomcat container when I
select the Webapp project, however what I want to do is to do the same
for the Multi-module project so all dependencies will be compiled if
changed aswell. However I cannot find any information on how to do
this in netbeans / maven.
I first tried to solve the problem by adding this to the multi-module
project pom:
<properties>
<netbeans.hint.packaging>war</netbeans.hint.packaging>
<netbeans.hint.deploy.server>Tomcat60</netbeans.hint.deploy.server>
</properties>
This made the deploy icon show up at least but it does not deploy the
war itself so I think Im way off here.
Any suggestions/help on how to handle this problem the right way would
be appreciated
Best regards,
Jonas Trollvik
|
|
|
| Back to top |
|
 |
dshead
Joined: 11 Nov 2010 Posts: 1 Location: Russia
|
Posted: Thu Nov 11, 2010 2:45 pm Post subject: Deploying Maven modules to Netbeans' registered application server |
|
|
Hi, to all. I have a same problem, like Jonas, I suppose. My application consists of 3 modules:
1. Server web-application.
2. Classes library for JAX-WS interchanging
3. Client web-application
The order in which I need it to deploy is next:
1. Server web-app: build, deploy to application server (Tomcat) registered in Netbeans
2. Build Classes library based on Server web-app (so needed web-app to be deployed)
3. Build and deploy to Tomcat of Client web-application with dependecies on Classes library.
I have set up property netbeans.deploy=true to Run Action of web-apps. And it is deployed fine separately.
But when I do the same for Main project, I suppose this property is ignored, cause in Maven log I can't see phase for deploying of applications, just packaging and install.
If someone has an ideas, please, share it.
Best regards, Dmitry S. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|