|
405 | 405 | </executions>
|
406 | 406 | </plugin>
|
407 | 407 | <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> |
411 | 410 | <executions>
|
412 | 411 | <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> |
415 | 430 | <goals>
|
416 |
| - <goal>attach-artifact</goal> |
| 431 | + <goal>deploy-file</goal> |
417 | 432 | </goals>
|
418 | 433 | <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> |
431 | 440 | </configuration>
|
432 | 441 | </execution>
|
433 | 442 | </executions>
|
|
0 commit comments