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 ... |
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 ... |
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>
...
|
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 ... |
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?
...
|
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>
...
|
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: ... |
|
I would like copy just "file.xml" without folder structure using overlays like this:
<overlays>
<overlay>
<groupId>com.mygroup</groupId>
...
|
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
|
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 ... |
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?
|
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>
...
|
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>
...
|
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>
...
|
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>
...
|
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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, ...
|
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 ... |
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 ... |
where should i have my java source folder in the maven web application architecture which results in a WAR
suggestions needed :)
|
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 ... |
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 ... |
quoting from maven war plugin usage page :
<project>
...
<build>
<plugins>
<plugin>
...
|
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 ... |
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 ... |
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 ... |
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 ... |
I have a basic requirement.
I have 2 projects :
- web app (Maven2 project)
- A utility jar project (Maven2 project)
When I build the web app, I want it to include the utility ... |
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. ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ... |
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 ...
|
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?
|
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 ... |
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 ...
|
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 ... |
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 ... |
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 ... |
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 ... |