maven-2

Path of resource files in a Netbeans Maven project

In my Netbeans Maven project, I have the following code in the main method: FileInputStream in = new FileInputStream("database.properties"); but always get a file not found error. I have put the file in src/main/resources and it is properly copied to the target/classes directory (I believe that is the expected behavior for Maven reso...

Where do I put the .tld file so that the resulting JAR file built with maven2 is properly packaged?

I currently have the following directory structure for my code: src |-- main | `-- java | `-- com | `-- upthescala | `-- tags | `-- ViewProtectTag.java |-- test |-- pom.xml |-- .project |-- .classpath `-- .hgignore I want to include a tld file for my JSP tag, and I'm not sure where to ...

Maven not picking up JDK 1.6 bundled libraries

Hi, one of our classes use the bundled jaxb api of jdk 1.6. When I try to compile this using maven (JAVA_HOME is set to JDK 1.6 and it shows in the IDE that maven runs using JDK 1.6) I get a class not found error for the jaxb library. the class in question is present in rt.jar under JDK 1.6 lib folder. Any ideas??? ...

Detect maven build status (success/error) from a maven plugin

I am wondering how would one get the status of a build (ERROR/SUCCESS) from a maven plugin ? ...

Maven release plugin - how to set svn:ignores

I have a maven project which generates files which are ignored in Eclipse by the global setting (Team -> Ignored Resources) and therefore are not going into svn. If I want to release the project on our build server with hudson it fails as it says that the local copy has local changes (the generated files). How to I tell maven there to i...

Maven 2, Liquibase and dbDoc

I'd like to generate liquibase's dbdoc as part of my maven site build, but I cannot figure out how to do this. My thoughts were to add maven-antrun-plugin to the reporting section of the pom, but I cannot have an node under plugin in the reporting section. Any ideas? ...

The eclipse autobuilder often ignore the resource directory

I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this cas...

Are maven jars safe?

How can I convince my corp employer, than jars from the Maven repositories are safe for use? I've conducted a count of jars on my local repo and it came back as 552. My goal is to setup a corporate repository with approved jars, but I'd like to not have to submit hundreds and eventually thousands of software requests. any suggestions (ot...

maven findbugs 'high water mark'

[findbugs is the example here, question is applicable to any such maven plugin] I attended a build lecture not long ago and a pattern that was talked about that I quite liked was: when adding a new tool to the chain and you start with n violations, you should keep n decreasing (a high water mark) and fail the build only when current che...

Issue in plugin dependency jar in multi-module pom

There is a top level pom.xml which calls two sub modules as below: <modules> <module>module1</module> <module>module2</module> </modules> Where module2 is dependent on module1 The xjc plugin configuration in module1 pom.xml is as below: <build> <plugins> <plugin> <groupId>com...

How can I build WAR with Maven in Eclipse?

I have project that I'm now starting as Maven project, but for some reason it is not working. Here is my pom.xml: <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"&gt; <modelVersi...

where is " <groupId>org.glassfish.embedded</groupId>" repository here?

I want to use <groupId>org.glassfish.embedded</groupId> in my dependencies. What repository should I use? ...

Sun Java repository isn't exist Resource nexus-maven-repository-index.properties

I use maven-embedded-glassfish-plugin but repository show the message: Unable to update index for maven2-repository.dev.java.net|http://download.java.net/maven/glassfish/: Resource nexus-maven-repository-index.properties does not exist is bug?or this properties dose not exist? ...

Missing directory in a Maven Directory Structure with Eclipse

Hi everybody, I recently set up a j2ee development environment under Ubuntu: Eclipse (Helios) with the maven plugin (m2eclipse). When I try to create a maven project, it tells me to select an "Archetype". Then, I select an Archetype with a GroupId : "org.apache.maven.archetypes" and the ArctifactId : "maven-archetype-quickstart" (I trie...

Flex-Mojo/Flex-compiler version issues with Flex 4.1 and maven2

My projects UI is built using Flex4.1..I am using maven2 and trying to figure out which flex-mojo version should I use for compiling. I tried with the following, <flex.sdk.version>4.1.0.16076</flex.sdk.version> <flex.mojo.version>3.6.1</flex.mojo.version> but am running into issues.. [INFO] Flex compiler and flex framework ver...

Can't find the "org.eclipse.persistence" Maven dependency

I installed Eclipse Helios with the m2eclipse maven plugin. I want to create an application using JPA. So, what I do is: New > Maven Project then I select the maven default archetype. The problem is that I want to add the "org.eclipse.persistence" dependency that I can't find. Where is it? Can we add it manually? Should I update a sort...

I follow this maven-glassfish-plugin example but error message,why?

Yesterday,I read the glassfish embed example this address is: http://weblogs.java.net/blog/arungupta/archive/2008/11/totd_56_simple.html but I running the command glassfish:run had a error message No plugin found for prefix 'glassfish' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] availab...

Maven - add custom phase to execute plugin with other configuration

I have two set of integration tests in one maven project - automatic and manual tests. The manual tests are few but tedious - they require pulling the plug of servers etc. I would like to create a separate goal for the manual tests, so i can run something like mvn manualtests to run the manual tests. If you just run a normal maven build ...

How to make m2eclipse (Maven) point to the "persistence.xml" path ?

Hi everybody, I working with Eclipse Helios, m2eclipse Maven plugin and Glassfish plugin. I edited the "pom.xml" file so that I can get the DerbyClient and the JPA Persistence classes. <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/P...

usage of maven tycho-p2-plugin with SWT

how do I build a swt application using the eclipse p2 repository and the maven tycho-p2-plugin? ...