1"use strict";(globalThis.webpackChunkbleep_site=globalThis.webpackChunkbleep_site||[]).push([[6538],{93(e,n,t){t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>c,metadata:()=>r,toc:()=>o});const r=JSON.parse('{"id":"reference/cli/import-maven","title":"bleep import-maven","description":"{/* AUTO-GENERATED by bleep gen-cli-docs. Do not edit by hand.","source":"@site/../docs/reference/cli/import-maven.mdx","sourceDirName":"reference/cli","slug":"/reference/cli/import-maven","permalink":"/docs/reference/cli/import-maven","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"bleep import-maven"},"sidebar":"reference","previous":{"title":"bleep history show","permalink":"/docs/reference/cli/history/show"},"next":{"title":"bleep import-sbt","permalink":"/docs/reference/cli/import-sbt"}}');var s=t(4848),i=t(8453);const c={title:"bleep import-maven"},d="bleep import-maven",l={},o=[{value:"Synopsis",id:"synopsis",level:2},{value:"Flags",id:"flags",level:2},{value:"Getting in and out",id:"getting-in-and-out",level:2}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:["\n",(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"bleep-import-maven",children:(0,s.jsx)(n.code,{children:"bleep import-maven"})})}),"\n",(0,s.jsxs)("p",{children:["import an existing Maven build by reading pom.xml (uses ",(0,s.jsx)(n.code,{children:"mvn help:effective-pom"})," to resolve parent POMs and dependencyManagement)"]}),"\n",(0,s.jsx)(n.h2,{id:"synopsis",children:"Synopsis"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-bash",children:"bleep import-maven [flags]\n"})}),"\n",(0,s.jsx)(n.h2,{id:"flags",children:"Flags"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Flag"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"--ignore-when-templating, -i <string>"})," (repeatable)"]}),(0,s.jsx)(n.td,{children:"some projects may differ much from the rest, for instance documentation and examples. considering these when computing templates may negatively affect the result"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"--skip-mvn"})}),(0,s.jsx)(n.td,{children:"skip running mvn, use existing effective-pom.xml in .bleep/import/maven/"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"--skip-generated-resources-script"})}),(0,s.jsx)(n.td,{children:"disable creating a script to regenerate discovered generated sources/resources"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"--mvn-path <string>"})}),(0,s.jsx)(n.td,{children:"optional path to mvn executable"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"--build-jvm <integer>"})}),(0,s.jsx)(n.td,{children:"java version of the (temurin) JVM the imported build uses. At least 17, which is the default unless the build compiles for a newer java version"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"--exclude-project, -x <string>"})," (repeatable)"]}),(0,s.jsx)(n.td,{children:"exclude specific projects from import and all their downstream dependencies (can be specified multiple times)"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"--platform, -p <platform>"})," (repeatable)"]}),(0,s.jsx)(n.td,{children:"only import projects for specified platform(s)"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"--scala, -s <scala version>"})," (repeatable)"]}),(0,s.jsx)(n.td,{children:"only import projects for specified scala version(s)"})]})]})]}),"\n",(0,s.jsx)(n.h2,{id:"getting-in-and-out",children:"Getting in and out"}),"\n",(0,s.jsxs)(n.p,{children:["Mechanical paths in: ",(0,s.jsx)(n.a,{href:"/docs/reference/cli/import-sbt/",children:(0,s.jsx)(n.code,{children:"bleep import-sbt"})})," (sbt) and\n",(0,s.jsx)(n.a,{href:"/docs/reference/cli/import-maven/",children:(0,s.jsx)(n.code,{children:"bleep import-maven"})})," (Maven). Mechanical path out:\n",(0,s.jsx)(n.a,{href:"/docs/reference/cli/export-maven/",children:(0,s.jsx)(n.code,{children:"bleep export-maven"})}),", a proof-of-concept script \u2014 see the\n",(0,s.jsx)(n.a,{href:"/docs/guides/exit-strategy",children:"exit strategy"}),"."]}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.strong,{children:"Gradle has neither."})," There is no Gradle importer and no Gradle exporter, so a Gradle build is\nhand-ported in, and would be hand-ported out. There is no sbt exporter either."]})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},8453(e,n,t){t.d(n,{R:()=>c,x:()=>d});var r=t(6540);const s={},i=r.createContext(s);function c(e){const n=r.useContext(i);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.