Search 5,000,000+ questions and answers.

Frequently Asked Questions

How can I use Ant tasks in Maven 2?

FAQs-1 - Maven User - Codehaus
For use in a plugin written in Java, Beanshell or other Java-like scripting language, you can construct the Ant tasks using the instructions given in the Ant documentation If you have very small amounts of Ant script specific to your project, you can use the AntRun plugin.
Related Questions

How to use ant-contrib tasks?

FAQ on ANT Building Process by Roseanne Zhang, Java Programm...
And add this line into your ant script, all ant-contrib tasks are now available to you! <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
Related Questions

Can I use Ant instead of Maven in 2.x?

FAQ - AppFuse 2 - Confluence
If you create a project using one of the basic archetypes in M5 and then run mvn appfuse:full-source, you can use a modified version of AppFuse Light's build.xml to build/test/deploy your project. Below are the steps needed to add Ant support to a basic archetype: Download maven-artifact-ant-2.0.4-dep.jar and copy it to a "lib" directory in your project. You will need to create this directory if it doesn't already exist. We don't plan on supporting Ant for modular archetypes.
Related Questions

How do I implement "maven.jar.override" of Maven 1 with Maven 2?

FAQs-1 - Maven User - Codehaus
How do I determine my project's transitive dependencies, and if needed, exclude a particular transitive dependency? If two versions of the same dependency are at the same depth, how do you know or predict which version will be used? How do I specify that all web modules will inherit the group's common files from a parent web module? What does the "ERROR Cannot override read-only parameter < parameter_name>" message, when running mean? What does the FATAL ERROR with .
Related Questions

Who is Maven?

Maven Health and Wellness - Frequently Asked Questions
Below is a list of frequently asked questions and our answers. These questions are based on those that have come up most often in our contact with our treatment clients. Please contact us with any other questions you may have.
Related Questions

Where can I get the Maven 2 plugin for Eclipse?

FAQs-1 - Maven User - Codehaus
lt;plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <configuration> <outputEncoding>UTF-8</outputEncoding> </configuration> </plugin> MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1" (mx/ms not mandatory for m2 but for m1). LANG=en_US.ISO8859-15
Related Questions

Why there are no dependency properties in Maven 2?

FAQs-1 - Maven User - Codehaus
They were removed because they aren't reliable in a transitive environment. It implies that the dependency knows something about the environment of the dependee, which is back to front. In most cases, granted, the value for war bundle will be the same for a particular In the end, we give control to the actual POM doing the building, trying to use sensible defaults that minimise what needs to be The scope you should use for this is provided.
Related Questions

How do I convert my <reports> from Maven 1 to Maven 2?

FAQs-1 - Maven User - Codehaus
lt;project> ... <reports> <report>maven-checkstyle-plugin</report> <report>maven-pmd-plugin</report> </reports> </project> lt;project> ... <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <!-- put your config here --> </configuration> </plugin> <plugin> <groupId>org.apache.maven.
Related Questions

How does maven 2 implement reproducibility?

FAQs-1 - Maven User - Codehaus
Make use of ibiblio for your libraries. This should always be the case for jars. (The group is working on stabilising metadata and techniques for locking it down even if it changes. An internal repository mirror that doesn't fetch updates (only new) is recommended for true reproducibility.)
Related Questions

How to configure Maven 2 build?

TeamCity FAQ - Confluence
No additional configuration on the agent side is needed to run Maven 2 builds. A snapshot version of Maven 2.1 is distributed as an agent plugin (just like bundled Ant 1.6.5) pomLocation- the directory where the pom.xml file is located. In the example the "%build.working.dir%" macro is used, that is substituted with the real directory path on the concrete agent machine. Alternatevely, if there is a separate Maven 2.1.
Related Questions

QALab Specific Goals for Maven 2 How do I use the MERGE task?

maven2-qalab-plugin - Frequently Asked Questions
The easiest way you can configure the qalab mojos for Merge is as follows if you have accepted the default settings for the qa tools. lt;build> <plugins> ... <plugin> <groupId>net.objectlab</groupId> <artifactId>mvn-qalab-plugin</artifactId> <version>2.
Related Questions

How do I use Ant to create HTML test reports?

JUnit FAQ
Ensure that Ant's optional.jar file is either in your CLASSPATH or exists in your $ANT_HOME/lib directory. lt;target name="test-html"> <junit fork="yes" printsummary="no" haltonfailure="no"> <batchtest fork="yes" todir="${test.reports}" > <fileset dir="${classes}"> <include name="**/*Test.class" /> </fileset> </batchtest> <formatter type="xml" /> <classpath refid="test.classpath" /> </junit> <junitreport todir="${test.
Related Questions

Is Maven required to use this toolkit?

Databinder - Frequently asked questions
No. You???re free to link to the Databinder JAR in any way you see fit. However, the server bandwidth required to distribute ???quickstart??? projects containing all dependencies is unavailable to Databinder; using Maven is the only option for this convenience. You’d likely make up the time spent installing Maven 2 just in running the examples. And after working through those examples, you may find that you like Maven enough to use it in your own projects.
Related Questions

How to replace "attainGoal" in maven 1 with plugin in maven 2?

FAQs - Maven User - Codehaus
I would like to write up a plugin that have multiple goals. Does anyone have some samples that can share? Basically, a sample goal that compiles the source and another one that packages it as a WAR would be sufficient. Please help and thanks in advance The way to 'call goals' in maven 2 is using plugin. I think what you should do is write a plugin that comprises of other plugins (goals) that you wish to call with their respective phase.
Related Questions

Why can't I use ant directly?

JBoss.com - buildsystem-faq
The JBoss build system is based on Ant, but requires a very specific environemnt to execute in. To facilitate easy usage and minimize user problems we have choosen to provide a JBoss specific build.sh and build.bat which perform the proper environemnt setup for the build system to run smoothly for branches 3.2 and 3.0. As of the current main branch(which will be 5.0), ant 1.5.1+ may be used. You MUST use the given build.sh or build.bat scripts to start the process.
Related Questions

Is it possible to use XDoclet without Ant?

jGuru: XDoclet FAQ Home Page
It's not possible to use XDoclet without Ant, for some good reasons. But anyway you should be able to invoke Ant from make for example. Obviously it's...
Related Questions

How do I setup the classpath of my antrun plugin to use the classpath from maven?

FAQs-1 - Maven User - Codehaus
The maven classpaths are available as ant references when running your ant script. The ant reference names and some examples can be found here: maven-antrun-plugin
Related Questions

Is Wicket available in the central Maven 2 repository?

FAQs
Yes, it is. However, we must rely on the Maven project to update their repository with the latest releases, resulting in some lag. If you need them hot and fresh, you can use the wicket-stuff's Maven 2 repository by adding the the following to your project's pom.xml: lt;repositories> <repository> <id>org.wicketstuff</id> <name>Wicket Stuff Repo</name> <url>http://wicketstuff.org/maven/repository</url> </repository> </repositories>
Related Questions

Development Oddjob is heavily based on Ant - why not just use Ant?

Oddjob - FAQ
Ant is a fantastic build tool, Ant was never designed for the business event model Oddjob is aimed at, the fact it comes so close is a great credit to it's design. But Ant has a few drawbacks for this purpose. Ant has only two completion states. Complete or BuildException. For the business type flow of events I'm conviced there has to be three completion states which is why Oddjob has Complete, Not Complete and Exception. Ant is designed to run from start to finish, not continuously.
Related Questions

Can I use OK Ant Killer™ ant bait outdoors?

Ant Killer,Ants,Ant control,Fire ants killer,Insecticides, P...
Yes, you can certainly use OK Ant Killer™ ant bait outdoors as long as the following conditions are met: OK Ant Killer™ is odorless and does not emit any residue, hence it is environmental friendly. At times, you will need to increase the application dosage to regain its effectiveness as though you are using it indoors.
Related Questions

What tasks can I use a vapor steam cleaner for?

Steam Cleaning Guide: Including vapor steam cleaners
Vapor steam cleaning does not clean everything and in fact there are some materials/surfaces to avoid. These are very heat sensitive materials such as some silks clothing and Persian rugs, velour and the exterior paint-work of your car. We have also found that it may also take the shine off some [not all] vinyl flooring. Otherwise, the list of tasks that may be tackled by vapor steam cleaning is a long one.
Related Questions

Can I use the PC for other tasks?

Motion Analysis, Slow Motion Cameras and Video Analysis Soft...
Yes, our PCs are powerful enough to handle other software but we do not recommend installing unknown products on the PC such as specialty hardware cards or gaming software. The reason is that these PCs are specifically setup and tuned for our application which requires a dedicated CPU and hard disk. Experienced users may use their PC for other applications such as word processing, etc.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact