Skip to content

Commit f318140

Browse files
Legger til .flattened og attach-sources (#1959)
1 parent 335cfaa commit f318140

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ app-local.properties
3737
.DS_Store
3838
/lsp/
3939
.factorypath
40+
.vscode
4041

pom.xml

+31-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
<felles.version>4.1.30</felles.version>
3838
<prosesstask.version>3.1.8</prosesstask.version>
39-
39+
<maven.deploy.skip>true</maven.deploy.skip>
4040
<kontrakter.version>6.1.21</kontrakter.version>
4141

4242
<tjenestespesifikasjoner.version>1.2021.02.22-10.45-4201aaea72fb</tjenestespesifikasjoner.version>
@@ -209,6 +209,16 @@
209209
<artifactId>sonar-maven-plugin</artifactId>
210210
<version>3.9.1.2184</version>
211211
</plugin>
212+
<plugin>
213+
<groupId>org.apache.maven.plugins</groupId>
214+
<artifactId>maven-source-plugin</artifactId>
215+
<version>3.2.1</version>
216+
</plugin>
217+
<plugin>
218+
<groupId>org.codehaus.mojo</groupId>
219+
<artifactId>flatten-maven-plugin</artifactId>
220+
<version>1.2.7</version>
221+
</plugin>
212222
</plugins>
213223
</pluginManagement>
214224

@@ -221,6 +231,13 @@
221231
<flattenedPomFilename>.flattened</flattenedPomFilename>
222232
</configuration>
223233
<executions>
234+
<execution>
235+
<id>flatten</id>
236+
<phase>process-resources</phase>
237+
<goals>
238+
<goal>flatten</goal>
239+
</goals>
240+
</execution>
224241
<execution>
225242
<id>flatten.clean</id>
226243
<phase>clean</phase>
@@ -230,7 +247,18 @@
230247
</execution>
231248
</executions>
232249
</plugin>
233-
250+
<plugin>
251+
<groupId>org.apache.maven.plugins</groupId>
252+
<artifactId>maven-source-plugin</artifactId>
253+
<executions>
254+
<execution>
255+
<id>attach-sources</id>
256+
<goals>
257+
<goal>jar</goal>
258+
</goals>
259+
</execution>
260+
</executions>
261+
</plugin>
234262
<plugin>
235263
<!-- FOR Å LEGGE VED JAKARTA EE9 KOMPATIBLE ARTEFAKTER I TILLEGG -->
236264
<groupId>org.apache.maven.plugins</groupId>
@@ -386,6 +414,7 @@
386414
<url>${project.distributionManagement.repository.url}</url>
387415
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar</file>
388416
<sources>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources-TOBEDEPLOYED.jar</sources>
417+
<skip>${maven.deploy.skip}</skip>
389418
</configuration>
390419
</execution>
391420
</executions>

0 commit comments

Comments
 (0)