maven-plugin

A couple of questions about Maven 2

Hi, i have some questions about Maven 2 and i hope somebody can clear things up for me: made a new thread about that (link: http://stackoverflow.com/questions/540697/maven-2-plugin-build-surfire) Is it possible to define a profile several times with diffrend values (such as use a diffrend configruation file) and activate those profile...

Maven 2 plugin, build + surfire

hi, If i define a plugin in the <build> tag and want to use this in my site command how do i do that? Do i have to define the plugin within <reporting> tag again? And how about the configuration which i probably have done within the build tag and want to take place at the reporting tag as well? (i dont want to specifie for example a l...

What is the best way to unit test a EJB3 component without having to deploy the component.

I would like to have a JUnit (or other) system where the enterprise beans can be tested in a mock environment so that all resources/beans and so on are injected locally. The enterprise beans should not have to accomplish this. All kinds of injection should be supported. I would like to have a maven plugin for this so that the tests can...

What are the URLs of all the Maven Archetype catalogs that you know about?

Maven Archetypes are the "templates" by which you can quickly generate a running example of a given framework or project type. I am trying to compile a list of all the Maven archetype catalogs currently active on the net. From the Maven documentation about catalog files: Knowledge about archetypes are stored in catalogs. The...

Maven error with multiple executions in maven-deploy-plugin

I found this nice recipe and want to use it to deploy some 3rd-party files in our repository The call on the command line is mvn -P deploy-libs If I do this for one file it works exactly as intended <profiles> <profile> <id>deploy-libs</id> <build> <defaultGoal>deploy:deploy-file</defaultGoal> ...

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. ...

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...

which Maven(2) plugin to use with GWT 1.6?

There seems to be quite a lot of confusion regarding integrating Maven with GWT 1.6, as Google has changed the layout to "exploded war" format. Which plugin are you using? Does it have goals for hosted/compile? Does it work "in place", writing output to src/main/webapp/WEB-INF, or does it use an external dir? (I'm not a fan of having...

How to get the name of goal in maven2's Mojo at runtime

For Maven2 how can I get the name of goal currently being executed in Mojo's execute method? Precisely I need value of @goal attribute inside Mojo's execute method. ...

Maven 2.1.0 not passing on system properties to Java virtual machine

We use the command line to pass on system properties to the Java virtual machine when running our Hudson builds on a Linux box. It used to work quite well in 2.0.9 by since we upgraded to 2.1.0 it has stopped working altogether. The system properties just never make it to the Java virtual machine. I have created a small test projec...

Why does the maven-assembly-plugin puts the same dependency in my zip multiple times?

I put together an assembly descriptor <assembly> <id>all</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <moduleSets> <moduleSet> <includes> <include>org.openscada.atlantis:org.openscada.atlantis.core.common</include> <include>org.openscada.atlantis:org.openscada.atlantis.net.b...

Maven plugin can't load class

I'm trying to make a maven plugin that needs to use reflection. I want a project to run the plugin, and give it the full name of a class in the project, and the plugin will load it by reflection to get info from it. There's something strange with the classloader though, because it can't find the class when I use Class.forName("package....

maven compilation error: duplicate classes

In my maven2 project I have a directory ${basedir}/autogen that contains some autogenerated source code files produced by wsdl2java. When running mvn compile I get an compilation error, because of duplicate classes, that lives in ${basedir}/autogen. This is true. But what is the compilation phase doing in ${basedir}/autogen? I have not...

How do I combine library code and a maven plugin in same project?

Can I make a single maven project that can be included as a dependency (to reference Java classes inside) and executed as a plugin? I'm working on a library to help with hosting GWT on a LAMP stack. For someone to use this, they need to extend some Java classes (so it must be a dependency) and they need to invoke a maven plugin (so it n...

Is the maven-native-plugin widely used to build C++ projects using maven?

It's been a little while since I did C++ development professionally and I'd like to get caught up on what the current state of C++ development is in a number of areas. Most of my recent work has been Java, making heavy use of Maven. When I last did C++ development for work, some variant of make was widely accepted as the way to go for ...

compiling project with jdk1.5 using maven2

i managed to create my project structure using maven2. but when am compiling my project using mvn install getting error generics are not supported in -source 1.3 googled to build my project using jdk1.5 and added build tag <project> <modelVersion>4.0.0</modelVersion> <groupId>com.myProject</groupId> <artifactId>project</artifactI...

maven, ant plugin

Is it possible to attach an ant execution to a specific plugin/goal ? ( I know I'm losing the declarative aspect of maven if I do that..) ...

maven, ant plugin, antrun:run

When executing 'mvn antrun:run' my tasks are not run.. I have an echo task, but no output is shown.. When running the phases that the tasks are bound to, they do get executed.. How do I specifically execute the tasks from the commandline? ...

adding manifest to jar file while compiling with maven2

Hi, I have made following changes to the POM.xml file for adding a manifest file that i have kept in \resources\META-INF But am unable to create an executable jar file. <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0.2</version> <con...