maven-2

Maven Plugin Execution Order and excluding js files

Hello, I have developed the pom.xml to first combine all the js files in the project and then compress the JS file. These 2 steps are two plugin and are in compile phase. But some how few times puglin execution order is reversed and build fails. In case some one has seen this issue please redirect me to solution. Secondly, I don't ...

Where do I put weblogic-application.xml in my Maven 2 project?

Where do I put weblogic-application.xml in my Maven 2 project so that Maven places it in META_INF in the target EAR artifact? ...

What is the format of svn-settings.xml for use with Maven SCM plugin?

I'm trying to externalize my username and password but it seems the format of svn-settings.xml is incorrect. I can't find any resources on the web except this post here and following that gives an error. In my pom.xml I got <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <vers...

deploying maven jar files and SNAPSHOT dependencies

We currently use SNAPSHOT modifier in development so that project dependencies are linked to the most current build of its dependencies. So when we build a project we get all the jars with various time SNAPSHOTS. Regardless of a code change. This proves to be an issue when the end user wants to download a new release. For example ther...

How to ignore .java files when compiling using maven?

I have .java files in my source directory that don't compile yet due to some API change. I would like to fix sources one by one and it would be useful to ignore some of them to run tests. ...

Additional context for tomcat:run goal

How do I add an additional directory based context to a tomcat:run configuration? I have the following jetty plugin configuration: <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <configuration> <contextHandlers> <contextHandler implem...

java.net maven repo - JMS artifact missing

I just created a new Maven project using the default archetype and added the following dependency to my POM file. <dependencies> <dependency> <groupId>javax.jms</groupId> <artifactId>jms</artifactId> <version>1.1</version> <scope>compile</scope> </dependency> </dependencies> Realizing that the Sun's JARs are not on...

Force Maven clean

I have a project with 2 profiles, because UAT and PROD use different versions of the same jar. I have noticed that if i don't explicitly call mvn clean ... the deployed EAR will have BOTH UAT and PROD jars. Is there a way in the POM to specify that Maven should always clean before any building? ...

Repeated password prompt with Maven deploy-file to scp repository

I'm trying to deploy an artifact to a remote repository accessible via scp and having a problem with repeated password prompts. My settings.xml contains this fragment: <servers> <server> <id>example.com</id> <username>myusername</username> <password>mypassword</password> <filePermissions>664</filePerm...

Using a variable obtained using a pre-build shell command to set an option for the Maven build in Hudson

Hi, I have a Hudson job that runs a maven goal. Before this maven goal is executed I have added a step to run before the build starts, it is a shell script that obtains the version number that I want to use in the 'Goals and options' field. So in my job configuration, under Build Environment I have checked the Configure M2 Extra Build ...

Auto-configure Scala facet in IntelliJ IDEA for mixed Scala/Java Maven project

How do I get IntelliJ to auto-configure the Scala facet in a Maven project with mixed Scala and Java source code? I am using Scala Plugin Nightly for Maia Build 2099. mvn compile and mvn test both work from the command prompt and from the Maven Projects panel in IntelliJ. However, if I try to run ScalaSpec directly in IntelliJ it prese...

destFileName not used by maven-dependency-plugin ?

I'm sure this was working! I have a maven dependency plugin config to put a java service wrapper into a particular folder in an appassembler target folder. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <configuration> <artifactItems> <artifactItem> ...

Maven 'versions' plugin not picking up properties from parent

I don't know if I'm missing something, but I have a problem with the Codehaus versions plugin for Maven. Here's a simplification of my situation: root: moduleA moduleB 'root' is an aggregator POM, i.e. declaring moduleA and moduleB as child modules, and A and B both have root as parent. Both A and B have a dependency on project-C,...

How do I get Maven to run Selenium tests in Firefox 3.6?

Question partly answered in http://stackoverflow.com/questions/3481851/selenium-rc-testing-with-maven - basically stating go back to using Firefox 3.5 (but one answer suggesting that does not work). Not an option anyway - 3.6.8 is what we are using. Anyway, any clue on how to get Maven / Selenium working with Firefox 3.6.x? I am atte...

Managing dependencies with Maven 2

Hi, I have a web application with more than 100 jar files dragged by Maven and things went a bit out of control. For example, I ended up with 3 versions of Spring core classes which caused the application deployment to fail sometimes (it seems the order of the jars loaded from WEB-INF/lib is not always the same with Weblogic): spring...

How to include log4j.properties with mvn assembly:assembly?

I want to include a log4j into the package generated by mvn assembly:assembly so that log4j is configured when the generated .jar is executed. How do I do this? My assembly plugin looks like this: <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>ib...

maven-assembly-plugin causing tests to run twice

I have a maven project where I am using the assembly plugin. I typically create my artifacts by running: mvn clean verify assembly:assembly (I have integration tests which I want run separately to unit tests). When this runs, the assembly plugin is running the unit tests itself. This causes them to be run twice. Is there a way I can t...

Pulling changes from a bugfixing Maven project in Mercurial w/o pulling the pom.xml

I maintain a project that is versioned with Mercurial and managed with Maven. When we released version 1.0, we cloned a release repository that would contain bugfixes and continued development on the main repository. The release repo had version 1.0 in the POM while the development repo had version 1.1-SNAPSHOT. Now, how can I pull bu...

Overwriting generated target in local maven repository with Maven-Eclipse?

Maven won't overwrite the built version of an eclipse project in my local repository. I only changed a META-INF/MANIFEST.MF file, but Maven doesn't seem to recognize that and therefore doesn't overwrite the artifacts in the local repository. How can I force it to overwrite? This is the maven log: [INFO] [INFO] --- maven-jar-plugin:2.2:...

Multi-module Maven project and jetty:run

I'm trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure: pom.xml (packaging pom, has two modules) project-jar/ pom.xml (packaging jar) project-war/ pom.xml (packaging war, depends on project-jar) If I run mvn commands from th...