Unleashed Jboss War with Netbeans and Maven

I am starting a new Java EE 6 project using Netbeans 7, Maven 3 and JBoss 6. In past projects, I use Glasshfish 3. The deployment worked well with glass fish, automatically exploding the war and deploying it, so the dynamic files (xhtml) were instantly updated.

Can this be achieved with JBoss 6? The default behavior looks like a normal package and deploys a WAR file. I assume that I need Maven to do this fully, but I lack knowledge in this area. Can someone help me with setting up Maven to do this automatically, or is it only possible to do with netbeans settings? My intended result is to save the .xhtml files directly to netbeans and see the result instantly.

+3
source share
3 answers

Have you tried this with Netbeans 7 and JBoss 6? It should be the same as with Glassfish. After a full redeployment, your html / xhtml files should be updated (try Ctrl + F5 in the browser to completely refresh the page)

0
source

Redeploy is time consuming.

Therefore, I use soft link. Create a program link under / server / default / deploy / This link should be mapped to your target / web folder (build / web). All changes to xhtml will be automatically made. You may need to restart the application when changing class files.

, ( ). web.xml jboss-web.xml jboos , .

, , . -

ln -s myProject.war myproject/target/web

:

Nb7 jboss6. jboss6 -. . jboss NB7. .

0

try jboss-maven-plugin with "true"

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>jboss-maven-plugin</artifactId>
                    <configuration>
                        <jbossHome>${jboss.home}</jbossHome>
                        <serverName>${jboss.serverName}</serverName>
                        <fileNameEncoding>UTF-8</fileNameEncoding>
                        <unpack>true</unpack>
                    </configuration>
                    <executions>
                        <execution>
                            <id>hard-delpoy</id>
                            <phase>install</phase>
                            <goals>
                                <goal>hard-deploy</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
0
source

All Articles