Maven for other languages? [closed]

Here’s some I know of. As to whether they are the most appropriate tool for a given language, form your own opinion. .Net: NMaven and dotnet-maven-plugin AspectJ: aspectj-maven-plugin (still Java I know but worth mentioning) c/c++: native-maven-plugin compile with compilers such as gcc, msvc, etc … Google Web Toolkit gwt-maven-plugin PHP: Maven for PHP Ruby: … Read more

Maven plugin executing another plugin

Use the Maven Mojo executor by Don Brown of Atlassian fame to run any other arbitrary plugin. The Mojo Executor provides a way to to execute other Mojos (plugins) within a Maven 2 plugin, allowing you to easily create Maven 2 plugins that are composed of other plugins.

Maven archetype for simple Servlet application

There is an archetype for webapp: mvn archetype:generate -DgroupId=com.acme \ -DartifactId=my-webapp \ -Dversion=1.0-SNAPSHOT \ -DarchetypeArtifactId=maven-archetype-webapp \ -DinteractiveMode=false This will generate the following structure: $ tree my-webapp/ my-webapp/ ├── pom.xml └── src └── main ├── resources └── webapp ├── index.jsp └── WEB-INF └── web.xml Where the web.xml is a Servlet 2.3 web.xml: $ cat my-webapp/src/main/webapp/WEB-INF/web.xml <!DOCTYPE … Read more

Maven – Add directory to classpath while executing tests

You can also add new test resource folders. <build> <testResources> <testResource> <directory>${project.basedir}/src/test/resources</directory> </testResource> <testResource> <directory>${project.basedir}/src/test/something_else</directory> </testResource> </testResources> </build> The first path, src/test/resources, is the default. Assuming you still want the default path to be used, make sure it’s included. (The testResources tag overwrites your defaults, so if you don’t include the default path explicitly, it … Read more

Maven: Including jar not found in public repository

You can install the project yourself. Or you can use the system scope like the following: <dependency> <groupId>org.group.project</groupId> <artifactId>Project</artifactId> <version>1.0.0</version> <scope>system</scope> <systemPath>${basedir}/lib/project-1.0.0.jar</systemPath> </dependency> systemPath requires the absolute path of the project. To make it easier, if the jar file is within the repository/project, you can use ${basedir} property, which is bound to the root of … Read more