Skip to content

Commit

Permalink
Merge pull request #6404 from Pandrex247/FISH-7809
Browse files Browse the repository at this point in the history
FISH-7809 Remove 'deploy-internals' Profile and Fix Deployment of Core
  • Loading branch information
Pandrex247 authored Sep 20, 2023
2 parents 78b3190 + 1c907ef commit 80e35c6
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 90 deletions.
9 changes: 0 additions & 9 deletions appserver/distributions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@
</build>

<profiles>

<!-- Don't deploy any distributions if only the internals are being deployed -->
<profile>
<id>deploy-internals</id>
<properties>
<deploy.skip>true</deploy.skip>
</properties>
</profile>

<!-- Default build profile -->
<profile>
<id>DefaultBuild</id>
Expand Down
6 changes: 0 additions & 6 deletions appserver/extras/embedded/all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,5 @@
</plugins>
</build>
</profile>
<profile>
<id>deploy-internals</id>
<properties>
<deploy.skip>true</deploy.skip>
</properties>
</profile>
</profiles>
</project>
8 changes: 0 additions & 8 deletions appserver/extras/embedded/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,4 @@
<module>tests</module>
</modules>

<profiles>
<profile>
<id>deploy-internals</id>
<properties>
<deploy.skip>true</deploy.skip>
</properties>
</profile>
</profiles>
</project>
6 changes: 0 additions & 6 deletions appserver/extras/embedded/web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -419,11 +419,5 @@
</plugins>
</build>
</profile>
<profile>
<id>deploy-internals</id>
<properties>
<deploy.skip>true</deploy.skip>
</properties>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -528,11 +528,5 @@
<product.name>Payara Micro Enterprise</product.name>
</properties>
</profile>
<profile>
<id>deploy-internals</id>
<properties>
<deploy.skip>true</deploy.skip>
</properties>
</profile>
</profiles>
</project>
1 change: 0 additions & 1 deletion appserver/packager/external/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@

<properties>
<findbugs.skip>true</findbugs.skip>
<deploy.skip>false</deploy.skip>
</properties>

<modules>
Expand Down
1 change: 0 additions & 1 deletion appserver/packager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
<findbugs.skip>true</findbugs.skip>
<zip.excludes>**\/META-INF,META-INF\/*</zip.excludes>
<pkg_proto.py>src/main/resources/pkg_proto.py</pkg_proto.py>
<deploy.skip>true</deploy.skip>
</properties>

<build>
Expand Down
22 changes: 0 additions & 22 deletions core/core-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,7 @@

<name>Payara Core Parent</name>

<distributionManagement>
<repository>
<id>payara-nexus-artifacts</id>
<url>https://nexus.payara.fish/repository/payara-artifacts/</url>
</repository>
<snapshotRepository>
<id>payara-nexus-snapshots</id>
<url>https://nexus.payara.fish/repository/payara-snapshots/</url>
</snapshotRepository>
</distributionManagement>

<properties>
<!-- core artifacts end up in payara-artifacts repo -->
<deploy.skip>false</deploy.skip>
<jar.manifest>${project.build.outputDirectory}/META-INF/MANIFEST.MF</jar.manifest>
</properties>

Expand Down Expand Up @@ -403,15 +390,6 @@
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
<skip>${deploy.skip}</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
Expand Down
22 changes: 21 additions & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
<!-- build settings -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<deploy.skip>true</deploy.skip>
<deploy.skip>false</deploy.skip>
<javadoc.skip>true</javadoc.skip>

<payara.deployment.transformer.version>1.3</payara.deployment.transformer.version>
Expand Down Expand Up @@ -215,6 +215,17 @@
</license>
</licenses>

<distributionManagement>
<repository>
<id>payara-nexus-artifacts</id>
<url>https://nexus.payara.fish/repository/payara-artifacts/</url>
</repository>
<snapshotRepository>
<id>payara-nexus-snapshots</id>
<url>https://nexus.payara.fish/repository/payara-snapshots/</url>
</snapshotRepository>
</distributionManagement>

<repositories>
<!-- Try Maven central first, not last, which happens when omitted here -->
<repository>
Expand Down Expand Up @@ -448,6 +459,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
<skip>${deploy.skip}</skip>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down
1 change: 0 additions & 1 deletion nucleus/packager/external/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@

<properties>
<findbugs.skip>true</findbugs.skip>
<deploy.skip>false</deploy.skip>
</properties>

<modules>
Expand Down
1 change: 0 additions & 1 deletion nucleus/packager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<temp.modules.dir>${temp.dir}/modules</temp.modules.dir>
<findbugs.skip>true</findbugs.skip>
<zip.excludes>**\/META-INF,META-INF\/*</zip.excludes>
<deploy.skip>true</deploy.skip>
</properties>

<modules>
Expand Down
37 changes: 9 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@
</pluginRepository>
</pluginRepositories>

<distributionManagement>
<repository>
<id>payara-nexus-distributions</id>
<url>https://nexus.payara.fish/repository/payara-community/</url>
</repository>
</distributionManagement>

<properties>
<dynamic.build.properties.version>0.0.1.a2</dynamic.build.properties.version>

Expand Down Expand Up @@ -150,6 +157,8 @@
<monitoring-console-process.version>2.0.1</monitoring-console-process.version>
<monitoring-console-webapp.version>2.0.1</monitoring-console-webapp.version>
<validation.xml.root>${project.build.outputDirectory}</validation.xml.root>

<deploy.skip>true</deploy.skip>
</properties>

<profiles>
Expand Down Expand Up @@ -278,25 +287,6 @@
</build>
</profile>

<profile>
<!-- only internal modules deployed, so tests can run without Server build built -->
<id>deploy-internals</id>
<properties>
<deploy.skip>false</deploy.skip>
</properties>

<distributionManagement>
<repository>
<id>payara-nexus-artifacts</id>
<url>https://nexus.payara.fish/repository/payara-artifacts/</url>
</repository>
<snapshotRepository>
<id>payara-nexus-snapshots</id>
<url>https://nexus.payara.fish/repository/payara-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</profile>

<profile>
<id>BuildCore</id>
<activation>
Expand Down Expand Up @@ -390,15 +380,6 @@
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven.deploy.plugin.version}</version>
<configuration>
<retryFailedDeploymentCount>10</retryFailedDeploymentCount>
<skip>${deploy.skip}</skip>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
Expand Down

0 comments on commit 80e35c6

Please sign in to comment.