Fix multiple artifact builds

This commit is contained in:
Travis Burtrum 2017-06-13 23:55:57 -04:00
parent fe2a6eec22
commit f9ac10c70f
5 changed files with 29 additions and 18 deletions

View File

@ -9,15 +9,11 @@
<artifactId>jdbcmapper</artifactId>
<name>${project.artifactId}</name>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>querymapper</artifactId>
<version>${project.version}</version>
<classifier>${jar.classifier}</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>

16
pom.xml
View File

@ -18,7 +18,8 @@
$Header:$
-->
<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>
<groupId>org.sonatype.oss</groupId>
@ -117,7 +118,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<excludes>
<exclude>**/*.java</exclude>
@ -127,7 +127,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
@ -163,7 +162,18 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<classifier>${jar.classifier}</classifier>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2</version>
<configuration>
<classifier>${source.classifier}</classifier>
</configuration>
</plugin>
</plugins>
</pluginManagement>

View File

@ -13,6 +13,7 @@
<groupId>${project.groupId}</groupId>
<artifactId>jdbcmapper</artifactId>
<version>${project.version}</version>
<classifier>${jar.classifier}</classifier>
</dependency>
<dependency>
<groupId>com.facebook.presto</groupId>

View File

@ -13,11 +13,13 @@
<groupId>${project.groupId}</groupId>
<artifactId>common</artifactId>
<version>${project.version}</version>
<classifier>${jar.classifier}</classifier>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>runtime-compiler</artifactId>
<version>${project.version}</version>
<classifier>${jar.classifier}</classifier>
</dependency>
<dependency>
<groupId>junit</groupId>

2
revertJava6.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
find */src/{main,test}/java -type f -name '*.java' -print0 | xargs -0 sed -i -e 's@/\*IFJAVA8_START@//IFJAVA8_START@' -e 's@IFJAVA8_END\*/@//IFJAVA8_END@'