Skip to content

Commit 2f237c5

Browse files
committed
Skip jar generation, skip artifact install and add comments
1 parent 2cac852 commit 2f237c5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

hibernate5_2-test/pom.xml

+26
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,30 @@
6565
<scope>test</scope>
6666
</dependency>
6767
</dependencies>
68+
<build>
69+
<plugins>
70+
<plugin>
71+
<!-- Don't generate a jar -->
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-jar-plugin</artifactId>
74+
<executions>
75+
<execution>
76+
<id>default-jar</id>
77+
<phase/>
78+
</execution>
79+
</executions>
80+
</plugin>
81+
<plugin>
82+
<!-- No jar to install, skip configuration needs 2.4+ -->
83+
<groupId>org.apache.maven.plugins</groupId>
84+
<artifactId>maven-install-plugin</artifactId>
85+
<version>2.4</version>
86+
<configuration>
87+
<skip>true</skip>
88+
</configuration>
89+
</plugin>
90+
</plugins>
91+
</build>
6892
<profiles>
6993
<profile>
7094
<id>hibernate5_2-test</id>
@@ -77,6 +101,8 @@
77101
<groupId>org.apache.maven.plugins</groupId>
78102
<artifactId>maven-surefire-plugin</artifactId>
79103
<configuration>
104+
<!-- Configure surefire to look for tests inside jackson-datatype-hibernate5 test-jar
105+
package, otherwise no test runs -->
80106
<dependenciesToScan>
81107
<dependency>com.fasterxml.jackson.datatype:jackson-datatype-hibernate5</dependency>
82108
</dependenciesToScan>

0 commit comments

Comments
 (0)