maven-2

Parser problem with Seam Test

I have a maven project in Eclipse, a web-project using Seam. Now I wanted to use Seam Test for unit test. I dit not use SeamGen to create the project. I followed this guide, but when I run my test I get this error. I get a feeling the wrong sax parser is being used. Does anyone recognize it? [Parser] Running: :\Documents and Setti...

Maven dependency graph missing in NetBeans 6.9

NetBeans had a really cool feature that would allow you to view all of a Maven project's dependencies as a graph. Well, I recently upgraded from 6.8 to 6.9, and while all the other Maven stuff works fine, the menu item for the dependency graph has vanished. I couldn't find any information on the NetBeans site. Does anybody know if this f...

Capturing the Unique Maven SNAPSHOT build number

I am looking for a way to capture the unique SNAPSHOT build number that was generated during the 'mvn deploy' phase of the build. I would like to be able to pass this version (during a Hudson build) to another process used for deploying to an application server. The key here is being able to capture the exact Maven SNAPSHOT build numbe...

Jboss-Maven-Plugin can't start?

I use Jboss-Maven-Plugin by 1.4 version. I look JBoss Maven Plugin Usage Example,And I pom.xml is <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jboss-maven-plugin</artifactId> <version>1.4</version> <configuration> <jbossHome>E:\JavaWorkingTools\JBoss\jboss-5.1...

maven + eclipse + servlet-api.jar

Hello, I'm using Eclipse along with plugin m2eclipse to build and manage my project. In POM, I have included entry for servlet-api: <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</scope> </dependency> Scope is provided, not to include the ....

Are there any recommended tools for beautifying PHP/HTML?

Does anyone know of a good tool for cleaning up/formatting PHP files? I'd need something that can handle HTML with < ?php ?> tags, as well as pure PHP files. Ideally, I'd like a Maven mojo, since the rest of my code is being generated by Maven already. ...

Which maven2 lifecycle-phase to choose?

I have a jee-web-application and for using my project with oc4j application server it must be patched in my build-lifecycle to avoid several issues. Actually i do this via maven-antrun-plugin which works great. I have to remove, copy some special libraries into WEB-INF/lib and edit the web.xml, to avoid clashes with EL functions and clas...

Configuring Maven with two versions of Java

Hi All, I need two versions of Java ie. Java5 and Java6 on the same machine, as some of my projects support Java6 and some supports Java5. So I made it by putting the path of Java6 in JAVA_HOME and Java5 in JAVA5_HOME. I added both the JAVA_HOMEs in the PATH variable. But when I do java -version, then by default I am getting the follow...

OSGI bundle error - Unresolved constraint in bundle 4: package; (package=com.sun.org.apache.xerces.internal.parsers)

I am new to OSGI bundle development. I am trying to create a bundle using Maven script, when I deploy it, i am getting the following error *BundleProvisioningResourceLocator->error: Unable to handle Bundle: [bundle-jar-file-name].jar. Bundle state: UPDATED org.osgi.framework.BundleException: Unresolved constraint in bundle 4: package; ...

How can I get the Maven Shade plugin to copy an arbitrary file to the jar

I am using the Maven Shade plugin to build an executable JAR file for one of my projects. It works well but I need to include an extra file in the JAR which is not included in other builds (and is not simply picked up from the project's target/ directory). How can I do this? ...

Maven execution to perform several plugins in sequence

I'm working on something that is using Hibernate for database access. I've got everything set up and working so that I can use mvn hibernate3:hbm2ddl to build the database schema, and I'm using mvn liquibase:update to populate initial data into the database (DBUnit was my first try but I couldn't get it to work with Oracle and Liquibase ...

JUnit 4.8.1 / Maven trivial test not working

Hi Although I tried out all suggestions I found, I still can't get the most trivial JUnit test running. The error message basically repeats saying "junit.framework.AssertionFailedError: No tests found in project002.trivial.TestClassTest". You may inspect a snapshot of my IDE or download the zipped project. Here is my pom.xml: <projec...

Can Nexus/Maven store 32 bit and 64 bit artifacts at the same time?

Hi, I'm currently using Nexus as an artifact repository manager. Artifacts are deployed to Nexus automatically via a build machine running Hudson. The build machine is a 64 bit whereas my development machine is 32 bit. I would like to create a 32 bit build slave which would automatically build a 32 bit version of our code (e.g. code w...

Is there any way to override or update Jersey's Jackson version?

We're trying to use Jackson 1.5 to take advantage of some of the polymorphic handling it offers, but it appears that Jersey brings along it's own outdated version of Jackson (1.1.1). When testing Jersey serialized JSON, we get different results than when we serialize by hand in unit tests. {"id":"40","ticketProps":[{"id":"28","field":{...

Specify system property to Maven project

Is there a way ( I mean how do I ) set a system property in a maven project? I want to access a property from my test and my webapp ( running locally ) and I know I can use a java system property. Should I put that in ./settings.xml or something like that? Context I took an open source project and managed to change the db configurat...

DTDs show up in project target path in Eclipse but not when using via Maven command line.

I wasn't sure what the best title is so if anyone has a better suggestion, fire away. I'm not sure what information I should be providing, so I'll tell you what is happening. I have some unit tests that pass fine in Eclipse. In these tests, there's some XML that's being validated against a custom built DTD (a slightly modified Apelon D...

Suggest a good approach for targeting different databases and configurations for dev/test/qa with Maven2?

Hi I'm starting a new web development project with my team using Hibernate and Spring MVC. We will be building with Maven2 and use the NetBeans IDE. Our past projects have used ant for the build system. We will be using Atlassian Bamboo for our CI server. My question relates to the best practice for switching between dev/test/qa/product...

m2eclipse and RAD 7.5

I am using Maven to automate a project that is being developed in RAD 7.5. I've installed m2eclipse in RAD 7.5 , updated ( manually ) maven dependencies , and it builds Maven way within RAD. My main question : what is the best practice using m2eclipse with RAD? Should we keep both ( RAD and maven ) settings in the project workspace or re...

Maven Problem Missing Artifact (jsf-api.jar)

I installed M2Eclipse Plug-In for Eclipse. I'm not very experienced with maven. My Problem is that I can't download two Artifacts: 13.07.10 08:53:30 MESZ: Build errors for test; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test: Missing: ---------- 1) com.sun.faces:jsf-api:jar:2.0.0-b13 ...

Classpath variable in java

I'm reading a few files in my application and referring to them as new File("src/main/resource/filename") and it works. But when I package the jar with the Maven assembly plugin and run java - jar I get an error, naturally: Error occured: src\main\resources\UPDATE.txt (The system cannot find the path specified) Because there is no ...