Hello everyone I have error which breaks up my build for no reason, here is the error message :
error: error reading
/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1.jar;
error in opening zip file error: error
reading
/.m2/repository/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar;
error in opening zip file
I'm using this dependency...
Hi,
I am working on a project where I am in charge of html, css and javascript. I found this maven-minify-plugin that seemed to just what I wanted.
Everything is good when I deploy using maven on the server, but when I am using Eclipse (STS, www.springsource.com/products/sts) to run the project on localhost no css nor js file is genera...
Summary
A brief description of why anyone would want to attempt this. In a Maven project, I have a need to run tests against classes in target/classes, and a need to debug (using the Eclipse Servers plugin) tomcat within the Eclipse IDE, which is loading classes and a number of other assembled resources in target/<name-version-package>/...
I am using Eclipse 3.51 along with Maven 2.0.x, and Maven Eclipse plugin. The file structure of the project I am working on is hierarchical.
Based on several sources, including this link (http://maven.apache.org/maven-1.x/plugins/eclipse/faq.html#hierarchical although the url indicates it is Maven 1), Eclipse does not handle hierarchica...
hi,
I have a project that is using several profiles. Each profile uses following plugins:
maven-compiler-plugin
maven-resources-plugin
maven-antrun-plugin
maven-surefire-plugin
maven-war-plugin
The one markes in bold is however the only plugin where there is a difference between the profiles (different configuration files will be co...
Greetings, I'm working on a project that have several webapps (WARs) built with Maven and deployed in a JEE.
These WARs share several common business JARS (like one containing domain objects which are loaded from hibernate) and other framework JARs like Spring and Hibernate.
They use Spring MVC, and the Application Context loads Hiber...
hi,
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>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
...
By default maven will filter resources like this:
<properties>
<replace.me>value</replace.me>
</properties>
<some-tag>
<key>${replace.me}</key>
</some-tag>
will get you:
<some-tag>
<key>value</key>
</some-tag>
Is there a way to override the way maven selects the strings to replace? Specifically, I want to be able to use this...
If you are using closed repository, but your application uses some dependencies from external(maven public) repository.
Is there a way the list can be generated with dependencies which are from internal and which from external repository.
Or I have to do it manually, put just the internal repositories and which dependencies my build f...
Hi,
I'm a bit disappointed by what is happening to me. I'm not a maven expert (ie I just type mvn clean install as I was told) but as I installed a new kernel on my debian machine, it seems maven doesnt work anymore :
on old kernel (2.6.26-1-amd64) it download all dependencies well.
on new kernel (2.6.32-trunk-amd64) it fail downloadi...
I am creating an executable jar using the jar-with-dependencies component of the maven-assembly-plugin during the package phase of my maven lifecycle. However, I can't see a way to configure the name of the jar that is output. It appears to always be something like
appname-1.1-r1011-jar-with-dependencies.jar
How can i configure it ...
I'm trying to get the hibernate-sqlite project to work. I downloaded it and can run
mvn eclipse:clean
and
mvn eclipse:eclipse
like the instructions say. And I can import the project into Eclipse. But when I look at the project in Eclipse, it can't find the jars that Maven has downloaded. Where does Maven put the .jars? I don't kno...
Hello,
My pom.xml is running an Ant task to deploy a file using FTP. However, this deployment must be only done if the -Dftp=true argument is given in the Maven command (i.e. mvn clean install -Dftp=true). Thus, I wrote the following code:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
...
I'm trying to understand the maven-release-plugin (version 2.0, CVS).
The release-prepare works well.
But I do not understand why the release-perform don't work?? I've tested the deploy feature and I can deploy artifacts to the remote repo without any exceptions.
[INFO] [ERROR] BUILD ERROR
[INFO] [INFO] Failed to configure plugin param...
I want to limit maven to use only private/not public maven repository, do these two settings have the same effect ?
1.Setting mirror in settings.xml
<mirrors>
<mirror>
<id>my-internal-site</id>
<mirrorOf>*</mirrorOf>
<name>our maven repository</name>
<url>http://myserver/repositor...
When I build my maven project in Hudson, Hudson sends out two e-mails for each failure - one for the project failure, and one for the module that broke.
Is there any way to stop this, so I only get one e-mail per build failure?
...
In my parent project I have a site.xml (referencing a logo) and some resources:
src/site/resources/images/logo.gif
src/site/resources/css/our.css
How do I make them available to all the children? The site.xml specifies the logo url as images/logo.gif but the file is not there when the child site is generated?
...
Hi folks!
In order to deliver an all-in-one Jar for our project, we are wondering if it is possible to include the project's generated site (generated via the site plugin) into the generated project's package?
The idea behind this is very simple, we have a project named "sample" that demonstrates the usage of our API and we want to give ...
I'm looking for a way of packaging different products out of a common base. This could be, for example, for packaging a light version of a product or a specially customized edition.
The differences between my different products are mainly the following:
Producing different configuration files (text files) out of a single one (could b...
Yesterday I asked about using an exlusive maven repository, now it turns I need to use 2, they are both private .. so concerning this link which explains about forcing maven to use one repository, how do I specify the second repository? Lets take for instance I have two of these repositories in my pom.xml now, if something is missing in ...