| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Ant example source code file (README.txt)

This example Ant source code file (README.txt) is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Ant tags/keywords

ant, ant, dartifactid=xx, dartifactid=xx, how, if, libs, maven, maven, poms, problems, sun, the, you

The README.txt source code

Building Ant with Maven

The Ant jars can be built using Maven and the POMS present in this directory.

Libs not available in the maven repository

groupId          artifactId       version   comment
com.bea          weblogic   download it
com.bea          weblogicclasses  5.1       a newer version can do.
jai              jai-core         1.1.2_01  download jai from sun
jai              jai-codec   download jai from sun      jmf              2.1.1e    dowmload jmf from sun  netrexx          2.0.5     I used the file NetRexxC.jar from the netrexx distribution
com.starteam     starteam-sdk     5.2       the original file is called starteam-sdk.jar
stylebook        stylebook        1.0-b2    the original file is called stylebook-1.0-b2.jar

to install a jar file into your local Maven cache, do this

mvn install:install-file -DartifactId=xx -Dversion=x.y -Dpackaging=jar -Dfile=/a/b/foo.jar


from this directory, type 

mvn install (or mvn package)

If you do not have all the dependencies, you can remove the modules that you will not be able to build 
from the pom.xml in this directory.

You also might want to disable the tests. 

mvn install -Dmaven.test.skip=true 


 * see if the dependency to weblogicclasses.jar can be replaced by a dependency to some j2ee.jar from Sun,
as it supplies some javax.ejb classes which are required at compile time.


 * the unit tests cannot run properly, the maven-surefire-plugin sets a system property basedir 
which make a large part of our tests fail

 * JIRA issue asking the Maven colleagues to fix this. :-)


about skipping tests :

Other Ant examples (source code examples)

Here is a short list of links related to this Ant README.txt source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.