Skip to content

Commit 2cefe29

Browse files
committed
Maven: Repro for issue 3834
1 parent 02352ce commit 2cefe29

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

log4j-assembly-test/pom.xml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to you under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
19+
<modelVersion>4.0.0</modelVersion>
20+
<parent>
21+
<groupId>org.apache.logging.log4j.samples</groupId>
22+
<artifactId>log4j-samples</artifactId>
23+
<version>${revision}</version>
24+
</parent>
25+
26+
<artifactId>log4j-assembly-test</artifactId>
27+
<packaging>pom</packaging>
28+
<name>Apache Log4j Samples: Assembly test</name>
29+
30+
<dependencies>
31+
32+
<dependency>
33+
<groupId>org.apache.logging.log4j</groupId>
34+
<artifactId>log4j-api</artifactId>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>org.apache.logging.log4j</groupId>
39+
<artifactId>log4j-jul</artifactId>
40+
<scope>runtime</scope>
41+
</dependency>
42+
43+
</dependencies>
44+
45+
<build>
46+
<plugins>
47+
48+
<plugin>
49+
<groupId>org.apache.maven.plugins</groupId>
50+
<artifactId>maven-assembly-plugin</artifactId>
51+
<version>3.7.1</version>
52+
<configuration>
53+
<appendAssemblyId>false</appendAssemblyId>
54+
<descriptors>
55+
<descriptor>src/main/assembly/zip.xml</descriptor>
56+
</descriptors>
57+
</configuration>
58+
<executions>
59+
<execution>
60+
<id>make-assembly</id>
61+
<goals>
62+
<goal>single</goal>
63+
</goals>
64+
<phase>package</phase>
65+
</execution>
66+
</executions>
67+
</plugin>
68+
69+
</plugins>
70+
</build>
71+
72+
</project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to you under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.2.0 https://maven.apache.org/xsd/assembly-2.2.0.xsd">
19+
<id>zip</id>
20+
<formats>
21+
<format>zip</format>
22+
</formats>
23+
<includeBaseDirectory>false</includeBaseDirectory>
24+
<dependencySets>
25+
<dependencySet>
26+
<outputDirectory>/log4j-assembly-test/libs</outputDirectory>
27+
<useProjectArtifact>false</useProjectArtifact>
28+
<scope>runtime</scope>
29+
</dependencySet>
30+
</dependencySets>
31+
</assembly>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<name>Apache Log4j Samples</name>
3535

3636
<modules>
37+
<module>log4j-assembly-test</module>
3738
<module>log4j-nashorn-test</module>
3839
<module>log4j-samples-aspectj</module>
3940
<module>log4j-samples-asynclogger</module>

0 commit comments

Comments
 (0)