Permalink
Browse files

Organize dependencies; now build fails on dependency problems

  • Loading branch information...
ykazakov committed Mar 15, 2018
1 parent 8890676 commit e8aaf66f3cd43d5f71d5fc5742867e654b378ab9
View
@@ -60,11 +60,6 @@
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.jopt-simple</groupId>
<artifactId>jopt-simple</artifactId>
@@ -74,10 +69,6 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
@@ -24,10 +24,30 @@
<artifactId>elk-cli</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>${project.groupId}:elk-cli</usedDependency>
<usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- including shared resources, such as Changes.txt -->
<groupId>org.apache.maven.plugins</groupId>
@@ -55,6 +55,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<ignoredUnusedDeclaredDependencies>
<usedDependency>${project.groupId}:elk-distribution-owlapi4:*:*</usedDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
<execution>
<id>unpack-sources</id>
<goals>
@@ -28,6 +28,20 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>${project.groupId}:elk-protege</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- including shared resources, such as Changes.txt -->
<groupId>org.apache.maven.plugins</groupId>
@@ -49,15 +49,32 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
<usedDependencies>log4j:log4j</usedDependencies>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@@ -122,6 +122,21 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>${project.groupId}:elk-owl-model</usedDependency>
<usedDependency>junit:junit</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -44,6 +44,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<ignoredUnusedDeclaredDependencies>
<usedDependency>${project.groupId}:elk-owlapi4:jar:${project.version}</usedDependency>
</ignoredUnusedDeclaredDependencies>
</configuration>
</execution>
<execution>
<id>unpack-sources</id>
<goals>
View
@@ -58,6 +58,10 @@
<groupId>org.liveontologies</groupId>
<artifactId>owlapi-proof</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>elk-owl-model</artifactId>
@@ -163,6 +167,21 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>${project.groupId}:elk-proofs</usedDependency>
<usedDependency>${project.groupId}:elk-owl-parsing-javacc</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
View
@@ -52,6 +52,11 @@
<artifactId>elk-util-hashing</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>elk-util-io</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>elk-owl-model</artifactId>
@@ -66,6 +71,10 @@
<groupId>org.liveontologies</groupId>
<artifactId>puli</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>elk-util-testing</artifactId>
@@ -98,6 +107,21 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>${project.groupId}:elk-util-concurrent</usedDependency>
<usedDependency>${project.groupId}:elk-owl-parsing-javacc</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
View
@@ -1,4 +1,5 @@
<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/xsd/maven-4.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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -79,10 +80,14 @@
<groupId>org.liveontologies</groupId>
<artifactId>puli</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -1,4 +1,5 @@
<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/xsd/maven-4.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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -18,6 +19,10 @@
<groupId>org.liveontologies</groupId>
<artifactId>puli</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -23,11 +23,6 @@
<artifactId>elk-util-hashing</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
@@ -30,16 +30,38 @@
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<artifactId>slf4j-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<artifactId>slf4j-log4j12</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>org.slf4j:slf4j-api</usedDependency>
<usedDependency>org.slf4j:slf4j-log4j12</usedDependency>
</usedDependencies>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
View
@@ -15,7 +15,6 @@
<maven>2.2.1</maven>
</prerequisites>
<scm>
<connection>scm:git:https://github.com/liveontologies/elk-reasoner.git</connection>
<developerConnection>scm:git:git@github.com:liveontologies/elk-reasoner.git</developerConnection>
@@ -122,6 +121,11 @@
<artifactId>owlapi-proof</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -373,7 +377,7 @@
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>false</failOnWarning>
<failOnWarning>true</failOnWarning>
</configuration>
</execution>
</executions>

0 comments on commit e8aaf66

Please sign in to comment.