maven-2

How can I run a Maven webapp in Eclipse when I use profiles to populate properties files at build time?

Here is an example profile in my POM: <profiles> <profile> <id>QA</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <jdbc.url>jdbc:mysql://127.0.0.1:3306/SomeDB</jdbc.url> <jdbc.username>webapp</jdbc.username> <jdbc.password>somepassword</jdbc.password> </properties> </profi...

Maven2 & Swing projects: Build & run swing application

I tried to find info on how to use maven to build and run a swing application but couldn't find anything useful (maven documentation is a mess). Can someone point me to relevant documentation? Is anyone using maven in swing development ? ...

Migrating from ant to maven in Netbeans

Our software is written in Java and comprise many (7) projects. These projects are Netbeans ant projects. I'm considering to converting them to maven2. Where can I find some hints for doing such thing? ...

Why is javac 1.5 running so slowly compared with the Eclipse compiler?

I have a Java Maven project with about 800 source files (some generated by javacc/JTB) which is taking a good 25 minutes to compile with javac. When I changed my pom.xml over to use the Eclipse compiler, it takes about 30 seconds to compile. Any suggestions as to why javac (1.5) is running so slowly? (I don't want to switch over to the...

How do I set up the JBoss Maven repository in NetBeans 6.5?

I tried to configure the Maven plug in (version 4) to add the JBoss Maven repository at http://repository.jboss.com/maven2/ following the guide at http://wiki.netbeans.org/MavenBestPractices#section-MavenBestPractices-UtilizingAndManagingMavenRepositories. The new repository appears in the list of Maven repositories, but I can not see a...

Flex Mojo Maven Compile Question

I am trying to get the flex mojos maven compiler to run my projects. Anyone with feedback on the below information is appreciated. I am using this configuration for the maven compiler plugin and for some reason every time I run the clean install on my SWF project I still see the following in the compile step for the app. ...

Which version of flexmojos should be used?

Recently I reorganized my Adobe AIR project as a maven project so I could hook into my continuous integration server. Most of the information I found to get it working came from various blogs, which seems to be the only way to go as far as flex stuff is concerned. When I was deciding which super-pom to inherit from, though, I found tha...

Using Maven from Ant

Are there ant plugins that wrap maven so that I can make use of its dependency management features to download jars for me and place them in my ant build's lib folder? My specific problem is that I'm using the Crap4j plugin for Hudson, but it doesn't, as of yet, support Maven. Since it's a small project, maven is overkill, but I don't ...

JBOSS has too many libs! (a problem with m2eclipse)

I admit it is not the best title, but I don't know how to prase it without having a title of three lines. I have a project with the (for instance) dependency JTA, using the scope "provided" (JBOSS brings its own JTA implementation). If I use m2eclipse it resolves all dependencies just fine. My problem is, if I deploy this project to jb...

Building RAD7 project from command line.

Hey We have existing projects set with compilation dependencies in a RAD7 IDE. Is it possible to create automated build script from the existing project structure? We have IBM portal projects and regular WEB and enterprise projects. Maven and Ant are possible solutions but can we use these tools to build existing projects from command l...

How do I backup a nexus repository manager

The nexus book: http://www.sonatype.com/books/nexus-book/reference/. Does not seem to spend any time on how one should go about backing up a nexus repository. If I am installing my snapshot and releases into this local repository, it seems that it would behoove me to back it up. However, I'm not really interested in backing up anythin...

Maven 2 project versions, dependency versions, and perpetual releasing

Scenario: The system has number of components, each with its own POM. There are some long dependency chains (A depends on B depends on C, etc.). I want each "non-developer-desktop" build to be a potential release candidate -- if it passes QA, we will deploy it without rebuilding. In other words, I never want to build SNAPSHOT versions...

Maven Assembly generation

Hi everyone, Currently trying to package a small app in such a way that our ops team has a much easier time to deploy it. My requirements are that the projects gets compiled and zipped up. I run the command "mvn -DmyProfile clean generate-sources package" from the command line and I have created a src.xml file that details where which...

How to add a classpath entry when executing the app with exec plugin

One of the components is looking for the persistence.xml using the java.class.path system property. It is desired to keep this file separately from jars in the /conf folder. When running the app with exec:exec, classpath is formed from the path to the main jar plus path to every dependency. I can't seem to figure out how to add the /co...

On Maven2, how may I call an URL at the end of a (failed or successful) build?

I've build a small AppeEngine application which displays a green or red screen according to an URL call (/pass or /fail). That page is refreshed every minute. The idea is to use a spare computer to display that build status page and set a continuous integration tool (TeamCity in my case) which will call the /pass or /fail URL at the end...

Why is there no need for Maven in .NET?

I have the impression, that in the .NET-world, there is no real need for a Maven-like tool. I am aware that there is Byldan and NMaven (is it still alive?), but I have not yet seen a real-world project that uses them. Also in most .NET projects I have worked on, there never was voiced an need for a Maven-like tool. The problems Maven m...

Maven Deploy To Multiple Tomcat Servers

What is the most minimal example of deploying a war to multiple tomcat servers using maven that can be written? I've tried the following URLs and asked the mailing list, but not coming up with anything that was short and would simply work. http://www.nabble.com/Deploying-to-Multiple-Servers-at-Once-td21592419.html The example should...

running junits and cobertura with maven.

...

How does Maven know where to find Java 1.5

In pom.xml you can: <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> How does Maven know where I have 1.5 version?...

Maven vs. Ant

If there is Maven does it at all make sense to learn and use Ant? ...