maven-2

can maven compile multiple source folder to multiple target folder

I am trying to change a ant project to maven project, here is the problem. for example: I have two source folder. -pom.xml -ejb -org -x -ejbclass1.java -tpf -org -x -tpfclass1.java now I want to generate class file under target folder like this: ejb -classes -org ...

generating Eclipse project files with Maven

When I try and generate the Eclipse project files using mvn eclipse:eclipse I get the following error: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-eclipse-plugin:2.9-SNAPSHOT:eclipse': Unable to load the mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.9-SNAPSHOT:eclipse' in the plug...

Version propagation in Maven

I have a multi module maven project and I would like to use versions in such a way that the developer has to touch only the root project pom to change the version of all modules. For example ProjA contains Module1 Module2 Module3 All the modules contain their own Poms and have ProjA's pom as their parent. Once I run the build ...

converting websphere portal project to maven

I am working on converting websphere portal project to maven framework for CI build. I am wondering if there is a way to reference websphere jars other than via dependencies in pom.xml and loading them all to maven repository? I cannot imagine loading them ALL to the repository... Please advice! Thanks! ...

Maven compilation failes (but compilation under Eclipse is successful).

Hello, While building my web project from Eclipse, everything is fine: no errors, no warnings. However while building project with Maven it failes. Below is the output form mvn compile: c:\Users\jwa\Desktop\tets\traffic_web>mvn compile -e + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] -------------...

Maven Cargo configuring a Glassfish 2.1 instance to run integration-tests?

I was wondering whether it is possible to use Maven2 to automatically configure a Glassfish 2.1 with JNDI Resources, Datasources and Mail-Sessions for my integration tests. Also I wonder whether it is possible to create some sort of benchmarks that might then be tracked using continuum or Hudson. ...

Maven error while building WAR package (web.xml missing..?)

Hello, While executing mvn install, I'm getting following error: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode) My web application structure tree is like that: my-app |-- pom.xml |-- src |-- ... |-- WebContent |-- ... |-- META-INF ...

Upgrading AspectJ Runtime Library in Eclipse

I am trying to upgrade to a newer version of aspectjrt than the one that comes with Eclipse. I updated the version number in maven pom.xml. Eclipse doesn't seem to pick it up, it still displays the built-in version on its classpath. Which version of the library does m2eclipse uses? ...

mvn install ignores hibernate mapping files

Hello While installing my project to local repository with mvn install command, hibernate mapping files are excluded from generated JAR. I have the *.hbm.xml files under src/main/resources/traffic_domain/mapping/, so it should be ok as it is following standard directory layout for maven. my POM file looks like that: <project> <mode...

Java. Warning - Build path specifies execution environment J2SE-1.4

I creat a Maven Project in the Eclipse Helios. It works fine for a day, but one moment emerge this warning Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible with this environment. Since this message project no more compiling and debugging. Does anyone have so...

Maven, assembly plugin, multi-module project and module dependencies

I'm building a multi-module Maven project whose major product is a WAR file, and I'm trying to assemble that file together with associated release-related artifacts (README, release notes, license file, etc.) into a ZIP for distribution. But when I try to build a distribution file, it fails. What am I doing wrong? Note that I have alread...

Deploying Artifacts in Nexus for the first time

When we try uploading our artifacts for the first time in the nexus repository I get the following error Error retrieving previous build number for artifact 'foo.bar:bar:pom': repository metadata for: 'snapshot foo.bar:bar:0.0.1-SNAPSHOT' could not be retrieved from repository: InternalSnapshots due to an error: Authorization failed: ...

How use the maven-jboss-plugin?If I want to deploy the war how to do?

I want to trying maven-jboss-plugin but I don't know what is this,and I want to deploy the war use the jboss-maven-plugin or maven-jboss-plugin?How to use? ...

Where is the "caucho.com" new Maven2 repository address?

I add the "http://caucho.com/m2" or "http://caucho.com/m2-snapshot" repository address but is error .Message is Unable to update index for caucho release repository|http://caucho.com/m2: Resource nexus-maven-repository-index.properties does not exist Where is the new address? ...

What could be causing 'error transferring file' in maven?

I have installed maven 2.2.1 on my debian machine and getting the following error [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: repository.exoplatform.org What I have been able to find relating to this problem is its typically ca...

How to use the Maven's Netbeans Module plugin to create an autoupdate site as an artifact ?

How to use the Maven's Netbeans Module plugin to create an autoupdate site as an artifact ? I can see the files of the auto-update site been generated in the target/ directory, but I have no idea how to turn it into an artifact. My final purpose is to have it embedded into a war for an easier installation (I will use the dependency plu...

In IDEA, after adding a dependancy in maven, my artifact always show's the library needs to be 'fixed'

So every time I add a dependancy to a library using maven in my pom.xml, it doesn't get deployed until I go to module settings and then click on 'fix'. This happend when I added freemarker. Why doesn't IDEA do this for me? Am I missing a step? ...

step by step by process to create 4 layer project using maven in netbeans 6.8

Hi actually I am trying to create maven project in netbeans but when i am going to build it fails and give message as "Error building POM (may not be this project's POM)" so i need help on it.... Update: Below the requested informations: pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"...

How to use emacs as my JAVA IDE ?

I would like to use emacs instead of Netbeans which gets too bloated on my computer. I already got JDEE, I did not digg it, but it looks like it lakes : Classes testing : run a class which has a main method, but which is not the main class of the project Maven integration : this is a minor wish as Netbeans doesn't support maven that we...

Using Maven shade plugin in a multi module project

I have a scenario where-in I need to create an uber jar of a multi module maven project including all modules and their dependencies. I tried using maven shade plugin. but it seems to work only when I use it at the module level. If I add the plugin entry in parent pom then the build breaks (it tries to shade the parent pom) [INFO] Repl...