Skip to content

Commit 9b06384

Browse files
author
Frode Carlsen
authored
Revert c31a886 1ab6f69 1ab6f69, må bruke install-file/attach-file pga egen artifakt id og pom
1 parent c31a886 commit 9b06384

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

pom.xml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -405,29 +405,38 @@
405405
</executions>
406406
</plugin>
407407
<plugin>
408-
<groupId>org.codehaus.mojo</groupId>
409-
<artifactId>build-helper-maven-plugin</artifactId>
410-
<version>3.2.0</version>
408+
<groupId>org.apache.maven.plugins</groupId>
409+
<artifactId>maven-install-plugin</artifactId>
411410
<executions>
412411
<execution>
413-
<id>attach-artifacts</id>
414-
<phase>package</phase>
412+
<phase>install</phase>
413+
<goals>
414+
<goal>install-file</goal>
415+
</goals>
416+
<configuration>
417+
<pomFile>${project.build.directory}/jakarta/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</pomFile>
418+
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar</file>
419+
<sources>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources-TOBEDEPLOYED.jar</sources>
420+
</configuration>
421+
</execution>
422+
</executions>
423+
</plugin>
424+
<plugin>
425+
<groupId>org.apache.maven.plugins</groupId>
426+
<artifactId>maven-deploy-plugin</artifactId>
427+
<executions>
428+
<execution>
429+
<phase>deploy</phase>
415430
<goals>
416-
<goal>attach-artifact</goal>
431+
<goal>deploy-file</goal>
417432
</goals>
418433
<configuration>
419-
<artifacts>
420-
<artifact>
421-
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar</file>
422-
<type>jar</type>
423-
<classifier>jakarta</classifier>
424-
</artifact>
425-
<artifact>
426-
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources-TOBEDEPLOYED.jar</file>
427-
<type>jar</type>
428-
<classifier>jakarta-sources</classifier>
429-
</artifact>
430-
</artifacts>
434+
<repositoryId>github</repositoryId>
435+
<!-- må matche unpacked pom.xml fra over (disse endrer ikke path ved transform p.t.) -->
436+
<pomFile>${project.build.directory}/jakarta/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</pomFile>
437+
<url>${project.distributionManagement.repository.url}</url>
438+
<file>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-TOBEDEPLOYED.jar</file>
439+
<sources>${project.build.directory}/${project.artifactId}-jakarta-${project.version}-sources-TOBEDEPLOYED.jar</sources>
431440
</configuration>
432441
</execution>
433442
</executions>

0 commit comments

Comments
 (0)