Skip to content

Commit

Permalink
chore: Some updates to pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Nov 2, 2023
1 parent 6ccab29 commit bba2817
Showing 1 changed file with 37 additions and 45 deletions.
82 changes: 37 additions & 45 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<artifactId>uni-resolver-driver-did-sov</artifactId>
Expand All @@ -17,7 +18,7 @@
<url>https://github.com/decentralized-identity/uni-resolver-driver-did-sov</url>
<connection>scm:git:git://github.com/decentralized-identity/uni-resolver-driver-did-sov.git</connection>
<developerConnection>scm:git:[email protected]:decentralized-identity/uni-resolver-driver-did-sov.git</developerConnection>
<tag>HEAD</tag>
<tag>HEAD</tag>
</scm>

<repositories>
Expand Down Expand Up @@ -47,17 +48,41 @@
</properties>

<profiles>

<profile>

<id>default</id>
<activation><activeByDefault>true</activeByDefault></activation>
<properties><packaging.type>jar</packaging.type></properties>

</profile>

<profile>

<id>ci</id>
<properties><packaging.type>jar</packaging.type></properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>enforce-no-snapshots</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireReleaseDeps>
<message>No Snapshots Allowed!</message>
</requireReleaseDeps>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>war</id>
<properties><packaging.type>war</packaging.type></properties>
<build>
Expand All @@ -79,11 +104,10 @@
${basedir}/src/test/resources/jetty.xml
</jettyXmls>
<useTestScope>true</useTestScope>
<httpConnector>
<port>8080</port>
</httpConnector>
<systemProperties>
<systemProperty>
<name>jetty.port</name>
<value>8080</value>
</systemProperty>
<systemProperty>
<name>slf4j</name>
<value>true</value>
Expand All @@ -105,39 +129,7 @@
</plugin>
</plugins>
</build>

</profile>

<profile>
<id>ci</id>
<properties><packaging.type>jar</packaging.type></properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>enforce-no-snapshots</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireReleaseDeps>
<message>No Snapshots Allowed!</message>
</requireReleaseDeps>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

<dependencyManagement>
Expand Down Expand Up @@ -168,7 +160,7 @@
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>${log4j-slf4j2-impl.version}</version>
</dependency>
<dependency>
Expand Down

0 comments on commit bba2817

Please sign in to comment.