Created
December 19, 2024 11:53
-
-
Save 0b1kn00b/6c646e55e9982bc07114853fccd8153f to your computer and use it in GitHub Desktop.
Simple pom.xml to install babashka projects locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; use with bb run install | |
{ | |
:tasks { | |
:requires ([babashka.process :as proc]) | |
install (proc/shell "mvn" "install") | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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> | |
<groupId>{{org}}</groupId> | |
<artifactId>{{name}}</artifactId> | |
<version>{{version}}</version> | |
<name>{{name}}</name> | |
<url>{{url}}</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<maven.compiler.release>17</maven.compiler.release> | |
</properties> | |
<dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit</groupId> | |
<artifactId>junit-bom</artifactId> | |
<version>5.11.0</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-api</artifactId> | |
<scope>test</scope> | |
</dependency> | |
<!-- Optionally: parameterized tests support --> | |
<dependency> | |
<groupId>org.junit.jupiter</groupId> | |
<artifactId>junit-jupiter-params</artifactId> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> | |
<plugins> | |
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle --> | |
<plugin> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>3.4.0</version> | |
</plugin> | |
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> | |
<plugin> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>3.3.1</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.13.0</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>3.3.0</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>3.4.2</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-install-plugin</artifactId> | |
<version>3.1.2</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-deploy-plugin</artifactId> | |
<version>3.1.2</version> | |
</plugin> | |
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle --> | |
<plugin> | |
<artifactId>maven-site-plugin</artifactId> | |
<version>3.12.1</version> | |
</plugin> | |
<plugin> | |
<artifactId>maven-project-info-reports-plugin</artifactId> | |
<version>3.6.1</version> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<sourceDirectory>{{src_dir}}</sourceDirectory> | |
<directory>target</directory> | |
<outputDirectory>target/classes</outputDirectory> | |
<resources> | |
<resource> | |
<directory>{{src_dir}}</directory> | |
</resource> | |
<resource> | |
<directory>.</directory> | |
<includes> | |
<include>bb.edn</include> | |
<include>deps.edn</include> | |
</includes> | |
</resource> | |
</resources> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fill in the
{{templates}}
and runbb run install