war « Development « Maven/Ant Q&A

Home
Maven/Ant Q&A
1.Ant
2.artifact
3.dependency
4.deploy
5.Development
6.eclipse
7.glassfish
8.hudson
9.integration
10.jetty
11.junit
12.m2eclipse
13.module
14.netbeans
15.package
16.plugin
17.POM
18.repository
19.svn
Maven/Ant Q&A » Development » war 

1. How to get Maven to run war:exploded but not war:war    stackoverflow.com

I have a Maven pom that uses <packaging>war</packaging>. But actually, I don't want build the war-file, I just want all the dependent jars collected and a full deployment directory created. So ...

2. Is Developing Maven war apps in MyEclipse worth it?    stackoverflow.com

My organization has made an upper level decision to move to maven as the standard build tool for Java projects. I have been tasked with helping our local teams migrate ...

3. maven yui compression on war:war    stackoverflow.com

I'm trying to automatically compress both CSS and JS using maven and this plugin. I want to compress when the goal war is executed but I'm not figuring how:

<build>
 ...

4. How do I get Maven 2 to build 2 separate WAR files    stackoverflow.com

when doing a mvn install I want to end up with 2 WAR files in my target dir. One will contain the production web.xml and one will contain the test/uat web.xml. I've ...

5. How to exclude file from filtering when overlay is processing?    stackoverflow.com

I would not want to filter some files in overlays, when building a war file. For example how I can exclude from filtering all jsp files from overlay module2?

    ...

6. Maven: deleted files (anturn) still in final war file    stackoverflow.com

I use the antrun plugin to delete and move some property files depending on the profile that is used:

<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
    <execution>
        <phase>compile</phase>
 ...

7. How to add a file to a war with Maven    stackoverflow.com

I have developed a maven plugin that downloads the release notes from JIRA. It's bound by default to the 'generate-sources' phase and creates a 'release.txt' file in the build folder (${project.build.directory}). My question: ...

8. How to copy specified files whitout folder structure using overlays?    stackoverflow.com

I would like copy just "file.xml" without folder structure using overlays like this:

    <overlays>
     <overlay>
      <groupId>com.mygroup</groupId>
    ...

9. Creating one big War file out of 2 war projects    stackoverflow.com

Anyone knows a decent way to merge 2 war modules in to one big war file ? Maybe through some custom maven plugin , or maven-war-plugin configuration ? Thanks

10. Selecting the certain resource files into WAR from the default src/main/resources location with Maven    stackoverflow.com

I am trying to control which files make into the WAR package that is created by mvn package goal. Specifically, I want to exclude some files from the default src/main/resources folder ...

11. How to generate a WAR with the source code in Maven?    stackoverflow.com

I want to distribute the war of my web application generated with Maven with the source code inside it. How to do that with Maven?

12. maven makes war with two versions of the same jar    stackoverflow.com

Maven puts both axis-1.3.jar and axis-1.4.jar to WEB-INF/lib of my war. Can someone explain how to tell it to use only axis-1.4.jar?

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
   ...

13. maven2: excluding directory from WAR    stackoverflow.com

I tried this to exclude whole directory (${basedir}/src/main/webapp/webscripts) from my WAR file but it failed. What is wrong? this doesn't work:

<configuration>
   <webResources>
      <resource>
 ...

14. Maven: Having trouble excluding files from WAR    stackoverflow.com

I have an images folder at src/main/webap/images which I'd like to exclude from my war. Here is my war plugin configuration:

  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
 ...

15. Generating WAR files from a multiproject Maven configuration    stackoverflow.com

I have a Maven project, with 4 components Web, Persistence, Common and Other. The relevant stuff off my POM files: Parent POM:

<groupId>com.test</groupId>
<artifactId>test</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>
<modules>
    <module>components/TestWeb</module>
    ...

16. Maven - Selecting the certain resource files into WAR from the default src/main/resources location    stackoverflow.com

Currently, I want to exclude some files from the default src/main/resources folder into my WAR when packaging I tried using maven-war-plugin with the following configuration but failed. src/main/resources WEB-INF/classes *.xml ...WEB-INF/classes will still contain the XML ...

17. Different files to be packaged in a Maven war project    stackoverflow.com

I have a war packaging Maven project, in which I have a Java properties files called myapp.properties. In this properties file, I store some parameters, for example, database connection parameters, which ...

18. Different maven versions cause extra libraries to be included in WAR file    stackoverflow.com

I'm trying to build a war file to be deployed to a tomcat server using Maven, but have noticed some strange behaviour when building my war file: When running the command from ...

19. Two web.xml files in war, built using Maven    stackoverflow.com

In my war, built by Maven, I find two identical copies of web.xml file, in the same exact path. This is shown by opening the war in 7-ZIP. How can I debug ...

20. Maven: put dependent jar to different war folder instead of war/web-inf/lib    stackoverflow.com

Currently I'm trying to make maven build task for axis2-based project.
In my pom.xml i have defined dependency jar file. and i want that when war is building, the jar will be ...

21. maven webxml is missing from war task    stackoverflow.com

When I built my war package using Maven 2.1.1, I got this WARN message:

[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ig
nored
(webxml attribute is missing from war task, ...

22. How to obfuscate a webapp using Maven and ProGuard    stackoverflow.com

I use Maven and the maven-war-plugin to to build my WAR. All JSPs are pre-compiled using the jspc-maven-plugin and all classes are put into a JAR (WEB-INF/lib). So far everything works ...

23. Maven WebResources keeps throwing error    stackoverflow.com

I've got maven project that I want to be able to move some properties files to the outputted .war file so the property placeholders within spring will be able to make ...

24. Where should i add java files in web(WAR)project in MAVEN    stackoverflow.com

where should i have my java source folder in the maven web application architecture which results in a WAR suggestions needed :)

25. changing default structure in maven for war    stackoverflow.com

My project folder structure is different from that of Maven. Can I still use Maven? If yes .. I want to use webContent folder instead of webapp .. how can i do ...

26. How to add WAR inside EAR with Maven    stackoverflow.com

I have EAR with an application and I need to extend this app with my own code that is packaged as a WAR. Is there a maven plugin that can help ...

27. Maven: clean the webapp directory before war:exploded?    stackoverflow.com

quoting from maven war plugin usage page :

<project>
  ...
  <build>
    <plugins>
      <plugin>
        ...

28. Filter filenames in Maven    stackoverflow.com

I'd like to be able to filter filenames as well as file contents in Maven. The below snippet enables filtering on file contents, but I need to be able to rename files ...

29. maven release:perfom fails when building a war    stackoverflow.com

I am working on getting maven release:perform working for a suite of web applications. I have successfully configured the plugin for the Jars that are built but when I attempt ...

30. Maven add jars through systemPath/system but not added to war or anywhere else    stackoverflow.com

I want to add a jar file through the systemPath from the local file-system relative to my project directory structure, not on a remote repository. I added the dependency ...

31. Disable war overlays in maven    stackoverflow.com

When I have a dependency of type 'war' in a maven project, it automatically uses overlay to merge it into the project I am building. I would like to disable overlay. To make ...

32. maven2 war project depends on jar project    stackoverflow.com

I have a basic requirement. I have 2 projects :

  1. web app (Maven2 project)
  2. A utility jar project (Maven2 project)
When I build the web app, I want it to include the utility ...

33. Maven WAR - sources are not getting compiled    stackoverflow.com

Greetings, I am trying to build my web application with maven but I ran into some difficulties. Maven assembles my war file and puts everything into its place except for the compiled classes. ...

34. How can I update a existing war file with additional files using Maven?    stackoverflow.com

I would like to update an open-source war file in Maven with some additional class files and jar files. I also need to replace one configuration file with my own. The simplest ...

35. In maven - how to rename the output .war file based on the name of the profile in use    stackoverflow.com

I have three profiles in my pom.xml for our application... 1-dev (for use on a developer's) 2-qa (for use on our internal qa server) 3-prod (production). When we run our maven build all three profiles ...

36. Simple WAR file merging - overwriting first WAR file with second WAR file    stackoverflow.com

I want to simply merge two WAR files, overwriting corresponding files in first WAR with files from second WAR i.e. output WAR will contain web.xml from second WAR if one was ...

37. Maven include/assemble packaged static html project in war    stackoverflow.com

I have war archive which has its own xhtmls. js, html, css and so on in its webapp directory. It packages fine with maven. I have to include another static component which ...

38. Maven 3.0.2 - WAR File is duplicating dependant JARS in two places    stackoverflow.com

When I run: "mvn package -skipTests" from the command line to create my WAR file, Maven copies my dependent jars into WEB-INF/lib, and then copies them again into the root of ...

39. converting existing web project using maven    stackoverflow.com

I have been trying to convert a web project that produces a war file to maven. my existing project structure is as follows - MyWebProject | -- WEB-INF/src - contains a bunch of ...

40. Overwriting resources during maven war overlay    stackoverflow.com

As I've gathered, maven-war-plugin never overwrites files which already exist in the target of an overlay. For example, if I have a war A which has a dependency on a war ...

41. Debug Maven to find out the war file name that has been created    stackoverflow.com

I am getting this exception in Maven2 when i run mvn deploy Please see the error

[INFO] An Ant BuildException has occured: Warning: Could not find file D:\bayer\service\target\${file.name}.war to copy.
I have ...

42. How to embed rt.jar into my WAR using maven    stackoverflow.com

How can I embed one of the JRE libraries (say, rt.jar) into my WAR using Maven? Is there a maven plugin/command to do so?

43. correct maven build phase to replace text in war files    stackoverflow.com

Following the example here: http://maven.apache.org/guides/mini/guide-building-for-different-environments.html everything works great, but as far as I can tell, only as long as you're replacing files on the classpath. In the following code, the files ...

44. How to assemble multimodule maven project into one WAR?    stackoverflow.com

Similar question here. I would like to get ONE resulting WAR to be deployed from 3 different maven modules. The war modules are absolutely non-conflicting :

  • First one that has Java classes ...

45. How to make Maven copy resource file into WEB-INF/lib directory?    stackoverflow.com

I'm using NewRelic for monitoring. I want Maven to package both newrelic.jar and newrelic.yaml files into my WEB-INF/lib inside the war file. With the newrelic.jar there is no problem since it's ...

46. In maven, do an archetype overlay like the war overlay feature    stackoverflow.com

Is there a way to do an archetype overlay the same way as we do an overlay with the war plugin ? The idea is to have a very generic archetype and ...

47. Howto reference a WAR from a vendor in my own project    stackoverflow.com

I want to build a war file with maven based on a war file I get from a software vendor. The war file from the vendor contains classes in WEB-INF/classes and ...

48. how to expose WEB-INF/lib inside war using maven    stackoverflow.com

We are using an 3rd party war in our web app (war). In order to communicate with the war, we have created a bridge module (jar). The intention is to prevent ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.