Skip to content

Commit 56650ca

Browse files
author
Niall Pemberton
committed
Add source and binary assembly descriptors
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/email/trunk@562002 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7fec308 commit 56650ca

File tree

4 files changed

+110
-1
lines changed

4 files changed

+110
-1
lines changed

README.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ Getting started:
3535
to the target/site directory. The documentation has some examples of
3636
how to use this package as well as a FAQ.
3737

38-
3) Use
38+
3) Create source and binary distributions
39+
40+
Run the 'mvn site assembly:assembly' command. The source and binary
41+
distributions are created in the 'target' directory.
42+
43+
4) Use
3944

4045
Simply include the jar file built in step #1 in your classpath. Import the
4146
classes that you want to use and you are ready to go!

pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,16 @@
270270
</excludes>
271271
</configuration>
272272
</plugin>
273+
<plugin>
274+
<artifactId>maven-assembly-plugin</artifactId>
275+
<configuration>
276+
<descriptors>
277+
<descriptor>src/assembly/bin.xml</descriptor>
278+
<descriptor>src/assembly/src.xml</descriptor>
279+
</descriptors>
280+
<tarLongFileMode>gnu</tarLongFileMode>
281+
</configuration>
282+
</plugin>
273283
</plugins>
274284
</build>
275285

src/assembly/bin.xml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<assembly>
18+
<id>bin</id>
19+
<formats>
20+
<format>tar.gz</format>
21+
<format>zip</format>
22+
</formats>
23+
<includeSiteDirectory>false</includeSiteDirectory>
24+
<fileSets>
25+
<fileSet>
26+
<includes>
27+
<include>LICENSE.txt</include>
28+
<include>NOTICE.txt</include>
29+
<include>RELEASE-NOTES.txt</include>
30+
</includes>
31+
</fileSet>
32+
<fileSet>
33+
<directory>target</directory>
34+
<outputDirectory></outputDirectory>
35+
<includes>
36+
<include>*.jar</include>
37+
</includes>
38+
</fileSet>
39+
<fileSet>
40+
<directory>target/site/apidocs</directory>
41+
<outputDirectory>apidocs</outputDirectory>
42+
</fileSet>
43+
</fileSets>
44+
</assembly>

src/assembly/src.xml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one or more
3+
contributor license agreements. See the NOTICE file distributed with
4+
this work for additional information regarding copyright ownership.
5+
The ASF licenses this file to You under the Apache License, Version 2.0
6+
(the "License"); you may not use this file except in compliance with
7+
the License. You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<assembly>
18+
<id>src</id>
19+
<formats>
20+
<format>tar.gz</format>
21+
<format>zip</format>
22+
</formats>
23+
<!--
24+
<baseDirectory>${project.build.finalName}-src</baseDirectory>
25+
-->
26+
<fileSets>
27+
<fileSet>
28+
<includes>
29+
<include>build.xml</include>
30+
<include>LICENSE.txt</include>
31+
<include>NOTICE.txt</include>
32+
<include>pom.xml</include>
33+
<include>README.txt</include>
34+
<include>RELEASE-NOTES.txt</include>
35+
</includes>
36+
</fileSet>
37+
<fileSet>
38+
<directory>conf</directory>
39+
</fileSet>
40+
<fileSet>
41+
<directory>lib</directory>
42+
</fileSet>
43+
<fileSet>
44+
<directory>src</directory>
45+
</fileSet>
46+
<fileSet>
47+
<directory>xdocs</directory>
48+
</fileSet>
49+
</fileSets>
50+
</assembly>

0 commit comments

Comments
 (0)