On the maven build in general, I don't like the kind of thing
seen below. We might as well use ant than learn a new tool
to do this???

Good: Declarative information known to the build system
Bad: Scripting or any other hack that breaks the information trail

Is this just because our projects are hopelessly entangled?

        <plugins>
           <plugin>
              <artifactId>maven-antrun-plugin</artifactId>
                 <version>1.0</version>
                 <executions>
                    <execution>
                       <!-- instruct maven that this plugin should be 
                            executed whenever the package phase is ran
-->
                       <phase>package</phase>
                          <configuration>
                             <tasks>
                             
                                <mkdir dir="${basedir}/output/lib"/>
                             
                                <!-- Build jboss-common.jar -->
                                <jar
jarfile="${basedir}/output/lib/jboss-common.jar"
                                  
manifest="${basedir}/src/etc/default.mf">
                                   <fileset
dir="${basedir}/output/classes">
                                      <include name="org/jboss/**"/>
                                      <include
name="org/apache/xerces/**"/>
                                   </fileset>
                                </jar>

                                <!-- Build jboss-common-client.jar -->
                                <jar
jarfile="${basedir}/output/lib/jboss-common-client.jar"
                                  
manifest="${basedir}/src/etc/default.mf">
                                   <fileset
dir="${basedir}/output/classes">
                                      <include name="org/jboss/**"/>
                                      <include
name="org/apache/xerces/**"/>
                                      <exclude
name="org/jboss/deployment/**"/>
                                   </fileset>
                                </jar>

                                <!-- Build namespace.jar -->
                                <jar
jarfile="${basedir}/output/lib/namespace.jar"
                                  
manifest="${basedir}/src/etc/default.mf">
                                   <fileset
dir="${basedir}/output/classes">
                                      <include
name="javax/xml/namespace/*"/>
                                   </fileset>
                                 </jar>


-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Chief Scientist
JBoss Inc.
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to