I'm writing a GWT-Hibernate internal web application for our development group.
Previously, I had written tools to parse up XML files which represented customer configuration gathered in the field for analysis. Now, I'm trying to add an UI front-end for the support group. The XML parsing code uses xpath and org.w3c.dom classes to consum...
New to Maven.
Ok so I used Maven to package up my project, but one of the files had some test information in it. I would like to change that file but I'm at a standstill as keeping the same version number of the project.
I don't know what to do! Are these my options and what's the best way to do this?
Change the file and do a new bui...
We have over 800 MB of test case resource files that are Excel format. Every time I run the "mvn clean test" command, they get re-copied to the target directory, and this takes about 5 minutes on my machine.
Is there a way to setup Maven (ideally via our pom.xml) so that it will NOT copy our testResources to the target directory, instea...
Is there a Maven repository with more recent versions of the jars that I need? The main repository is often behind a few minor releases... Also, how do I go about adding additional repositories in my pom.xml file?
...
We've put basic authentication on the Apache instance hosting our maven repository and now our automated build is unable to deploy (PUT) to the repository (although it can GET) giving the error:
Already tried to authenticate with 'Authentication Required' authentication realm at maven.dev.renewtek.com, but still receiving: HTTP/1.1 401 ...
I'm using Maven integration for Eclipse(0.10.2) on Eclipse Helios(3.6). Eclipse can successfully build my project. but the maven build fails because the compiler can't resolve the PropertiesEditor class in dependency jar spring-beans-2.5.6. What should be looking for to fix it?
...
I have configured parent pom.xml to use the internal repository which i have created it with apache Archiva. My Pom looks like
<distributionManagement>
<repository>
<id>internal</id>
<url>dav:http://x.x.x.x:9090/archiva/repository/internal</url>
</repository>
</distributionManagement>
I am trying to execute the same ...
how to exclude a dependency from war but using it till testing or development
...
I would like to know the reasons people use or not use Maven. We are about to switch all our builds to Maven 2 and don't have to much experience with it.
What are the advantages/disadvantages of using Maven 2, stuff like:
Why did you switch to maven?
Why did you throw maven away and used
something else?
What problem did it
solve ...
I'm just curious, is there a way to specify that you want a string of goals run as the default goal in a maven project? Is there an equivalent to Ant's <project name="MyProject" basedir="." default="main"><target name="main" depends="clean,run"/>?
...
I haven't found a Maven plugin or target that will package my app and deploy it to Glassfish without error. I get this exception:
[ERROR] com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while preparing the app : java.lang.RuntimeException: Could not resolve a persistence unit corresponding to the persistence...
I am trying to compile a maven project, the source code uses Generics and other featuers of Java 1.5, thus causing my build to fail
In my POM.xml I have configured the build configuration against 1.5 for the source and target properties, but this doesn't solve my issue
Is my POM.xml correct, or am I missing something?
Thanks
<?xml ve...
I want to generate an zip file that will update an application with maven. The zip will be hosted on a server and I am using the assembly plugin to generate the zip. However I would like maven to automatically generate a text file that stores the current version number outside the zip. Is this possible?
EDIT:
I successfully did it using...
Suppose I have a module A:jar, which runtime and compilation set of dependencies depends on JDK version. In my example, I have a pre-jdk6-profile for JAXB API: prior to JDK 1.6.0 I need to include jaxb-api-nnn.jar as compile dependency. This profile is placed to A.pom.
I also have module B:war, which depends on A:jar. I want to be able ...
Inovking maven2 goal "mvn dependency:list" on an artifact pom causes to download the whole dependent artifact packages. i think only those pom files are necessary for resolving dependencies. Aren't they?
...
When I generate eclipse artifacts, Eclipse shows the source folder in this order.
src/test/java
src/test/resources
src/main/java
src/main/resources
I would prefer,
src/main/java
src/main/resources
src/test/java
src/test/resources
Thanks in advance!
...
I have a straightforward Maven2/Spring project. Locally in Intellij all the tests run fine, however on the build server (Hudson), the application context won't start because test-context.xml can't be found on the classpath.
New to this...any ideas? Assuming this is something obvious...
Project dir structure:
-src
--java
--resources
-t...
I can't seem to get a web application running with the embedded glassfish plugin:
Plugin Configuration:
<plugin>
<groupId>org.glassfish</groupId>
<artifactId>maven-embedded-glassfish-plugin</artifactId>
<version>${glassfish.version}</version>
<configuration>
...
I installed m2eclipse to build a java project in Eclipse.
I imported the project as follows:
Import->
Maven->
Existing Maven Projects->
Import Maven Projects->
- Select root directory
- Select pom file
- Click Finish
To be sure m2eclipse was actually building the project, I deleted the target directory and made sure it was re-created...
I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default (Preferences->Java->Installed JREs). When I changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the project was using Java 1.5 (I described these build errors earlier in this question.)
I'm g...