[jboss-user] [JBoss Tools] - Problems with application.xml for maven projects

Sueleyman Vurucu do-not-reply at jboss.com
Fri May 17 16:10:41 EDT 2013


Sueleyman Vurucu [https://community.jboss.org/people/suikast42] created the discussion

"Problems with application.xml for maven projects"

To view the discussion, visit: https://community.jboss.org/message/818301#818301

--------------------------------------------------------------
Hi,

I have problems to deploy my ear project over jboss tools with my application.xml. My deployment shown as below:

 https://community.jboss.org/servlet/JiveServlet/showImage/2-818301-20823/Unbenannt.PNG  https://community.jboss.org/servlet/JiveServlet/downloadImage/2-818301-20823/450-119/Unbenannt.PNG 

I find a workaround for my problem. But I don't understand why jboss tools copy jboss-structure.xml and not application.xml

My workarround is simple. Create an active maven profile and copy the content of target/<projectname>/META-INF to <project>/EarContent. Then Jboss tolls deploy my ear with application.xml. 

Here is my hack:

<profiles>
                    <!-- Copy application.xml in <project>/ EarContent/META-INF. But only for Eclipse projects. This needed for jboss plugin inside eclipse. -->
                    <profile>
                              <id>CopyEclipseFiles</id>
                              <activation>
                                        <file>
                                                  <exists>
                                                  <!-- 
                                                  ${basedir}/.settings
                                                   -->
                                                   false
                                        </exists>
                                        </file>
                              </activation>
                              <build>
                                        <plugins>
                                                  <plugin>
                                                            <artifactId>maven-resources-plugin</artifactId>
                                                            <executions>
                                                                      <execution>
                                                                                <id>copy-resources</id>
                                                                                <!-- here the phase you need -->
                                                                                <phase>package</phase>
                                                                                <goals>
                                                                                          <goal>copy-resources</goal>
                                                                                </goals>
                                                                                <configuration>
                                                                                          <outputDirectory>${basedir}/EarContent/META-INF</outputDirectory>
                                                                                          <resources>
                                                                                                    <resource>
                                                                                                              <directory>${basedir}/target/wms-wan/META-INF</directory>
                                                                                                              <filtering>true</filtering>
                                                                                                    </resource>
                                                                                          </resources>
                                                                                </configuration>
                                                                      </execution>
                                                            </executions>
                                                  </plugin>
                                        </plugins>
                              </build>
                    </profile>
          </profiles>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818301#818301]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130517/968c0e2b/attachment-0001.html 


More information about the jboss-user mailing list