Skip to content

Commit

Permalink
Fix jar packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhelloworld committed Dec 30, 2021
1 parent f4e7a90 commit cde992c
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions idris-jvm-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,44 @@
<build>
<sourceDirectory>${project.parent.basedir}/src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
<configuration>
<finalName>unwanted</finalName>
<classifier>unwanted</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>default-install</id>
<goals>
<goal>install</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
<execution>
<id>custom-install</id>
<goals>
<goal>install-file</goal>
</goals>
<phase>install</phase>
<configuration>
<file>${project.build.directory}/${project.artifactId}-${project.version}.jar</file>
<pomFile>pom.xml</pomFile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down Expand Up @@ -111,8 +149,8 @@
</configuration>
</execution>
<execution>
<id>copy-compiler-jar</id>
<phase>compile</phase>
<id>version-compiler-jar</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
Expand All @@ -122,6 +160,17 @@
tofile="../build/exec/idris2_app/idris-jvm-compiler-${project.version}.jar"
failonerror="false"
overwrite="true"/>
</target>
</configuration>
</execution>
<execution>
<id>copy-compiler-jar</id>
<phase>process-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="../build/exec/idris2_app/idris-jvm-compiler-${project.version}.jar"
tofile="./target/idris-jvm-compiler-${project.version}.jar"
overwrite="true"/>
Expand Down Expand Up @@ -150,7 +199,7 @@
<executions>
<execution>
<id>idrisOutputScripts</id>
<phase>compile</phase>
<phase>process-classes</phase>
<goals>
<goal>assemble</goal>
</goals>
Expand Down

0 comments on commit cde992c

Please sign in to comment.