Skip to content

Commit

Permalink
testing putting profile in ode-svcs instead of parent pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael7371 committed Sep 20, 2024
1 parent 384911c commit e458147
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 deletions.
34 changes: 34 additions & 0 deletions jpo-ode-svcs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,38 @@
</plugin>
</plugins>
</build>
<!-- profile to output only source code and not include any spring boot dependencies in published jar -->
<profiles>
<profile>
<id>package-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>us.dot.its.jpo.ode.OdeSvcsApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
35 changes: 0 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,39 +170,4 @@
<url>https://maven.pkg.github.com/${github_organization}/jpo-ode</url>
</repository>
</distributionManagement>

<!-- profile to output only source code and not include any spring boot dependencies in published jar -->
<profiles>
<profile>
<id>package-jar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>us.dot.its.jpo.ode.OdeSvcsApplication</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<id>repackage</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit e458147

Please sign in to comment.