File: building.xml

package info (click to toggle)
libjaxen-java 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,868 kB
  • sloc: java: 21,259; xml: 8,073; makefile: 2
file content (104 lines) | stat: -rw-r--r-- 2,672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0"?>
<document url="http://jaxen.org/building.xml">

  <properties>
    <author>Elliotte Rusty Harold</author>
    <title>Building Jaxen</title>
  </properties>

  <body>
    <title>Building Jaxen</title>
    
    <section name="Compiling">
      <p>
        Jaxen's build system is <a href="http://maven.apache.org/">Maven 3</a>. 
        To compile Jaxen, install Maven. Then at the shell 
        prompt inside the top-level jaxen directory, type "mvn compile":
      </p>
      
      <p><samp>$ mvn compile</samp></p>
      
      <p>
        You'll likely see some deprecation warnings. Don't worry about these. 
        They're internal to jaxen, and do not indicate bugs.
      </p>
      
      <p>
        To run the unit tests, type "mvn test":
      </p>
      
      <p><samp>$ mvn test</samp></p>
      
      <p>
        To build a jar file  at the shell 
        prompt type "mvn package":
      </p>
      
      <p><samp>$ mvn package</samp></p>
      
      <p>
        This runs the unit tests as well. The jar file will appear in the target directory. <!--   If any are failing and you still want to 
        build a jar file, use the <code>-Dmaven.test.failure.ignore=true</code> option:-->
      </p>
 <!--
       <p><samp>$ maven -Dmaven.test.failure.ignore=true jar</samp></p>
      -->
      
      
      <p>
        To generate javadoc, type "mvn javadoc:javadoc":
      </p>
      
      <p><samp>$ mvn javadoc:javadoc</samp></p>
      
      <p>
        To generate the complete documentation for the site, including 
        code coverage measurements, static code analysis, and more, type "mvn site":
      </p>
      
      <p><samp>$ mvn site</samp></p>
      
      <p>
       Again the output appears in the target folder. 
      </p>
      
     <p>
        To remove build artifacts, type "mvn clean":
      </p>
      
      <p><samp>$ mvn clean</samp></p>
      
      
    </section>

    <section name="Publishing a Release">
      <p>
       To prepare jaxen for release:
      </p>
     
      <ol>
        <li>Update xdocs/releases.xml, xdocs/status.xml, and xdocs/index.xml with the new version number and information.</li>        
        <li>Update pom.xml and INSTALL with the new version number.</li>    
        <li>Make sure all changes are committed.</li>   
        <li>Check that all tests pass by running <samp>mvn test</samp>.</li> 
        <li>Tag the release in Github.</li>
        <li>And then a miracle occurs to upload to Maven Central.</li>
        <li>
          Upload site and binaries to cafeconleche.org/jaxen.
        </li>
      </ol>

    </section>


  </body>
</document>