maven
Dagger module to build maven Projects
Installation
dagger install github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9Entrypoint
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
| image | String ! | "maven:3.9.9-eclipse-temurin-21-alpine" | No description provided |
| useMvnw | Boolean ! | false | No description provided |
| useCache | Boolean ! | true | No description provided |
| useDefaultCiOptions | Boolean ! | true | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options booleanfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
}Types
Maven 🔗
image() 🔗
Return Type
String ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean imagefunc (m *MyModule) Example(ctx context.Context, image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) string {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Image(ctx)
}@function
async def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> str:
return await (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.image()
)@func()
async example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Promise<string> {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.image()
}useMvnw() 🔗
Return Type
Boolean ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean use-mvnwfunc (m *MyModule) Example(ctx context.Context, image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) bool {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Usemvnw(ctx)
}@function
async def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> bool:
return await (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.usemvnw()
)@func()
async example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Promise<boolean> {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.useMvnw()
}useCache() 🔗
Return Type
Boolean ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean use-cachefunc (m *MyModule) Example(ctx context.Context, image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) bool {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Usecache(ctx)
}@function
async def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> bool:
return await (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.usecache()
)@func()
async example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Promise<boolean> {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.useCache()
}useDefaultCiOptions() 🔗
Return Type
Boolean ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean use-default-ci-optionsfunc (m *MyModule) Example(ctx context.Context, image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) bool {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Usedefaultcioptions(ctx)
}@function
async def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> bool:
return await (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.usedefaultcioptions()
)@func()
async example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Promise<boolean> {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.useDefaultCiOptions()
}dir() 🔗
Return Type
Directory ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean dirfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) *dagger.Directory {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Dir()
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> dagger.Directory:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.dir()
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Directory {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.dir()
}mavenContainer() 🔗
Return Type
Container ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean maven-containerfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) *dagger.Container {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Mavencontainer()
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> dagger.Container:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.mavencontainer()
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Container {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.mavenContainer()
}withImage() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean with-image --image stringfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, image1 string) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Withimage(image1)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, image1: str) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.withimage(image1)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, image1: string): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.withImage(image1)
}withUseMvnw() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| mvnw | Boolean ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean with-use-mvnw --mvnw booleanfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, mvnw bool) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Withusemvnw(mvnw)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, mvnw: bool) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.withusemvnw(mvnw)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, mvnw: boolean): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.withUseMvnw(mvnw)
}withUseCache() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| useCache | Boolean ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean with-use-cache --use-cache booleanfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, useCache1 bool) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Withusecache(useCache1)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, usecache1: bool) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.withusecache(usecache1)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, useCache1: boolean): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.withUseCache(useCache1)
}withUseDefaultCiOptions() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| useDefaultCiOptions | Boolean ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean with-use-default-ci-options --use-default-ci-options booleanfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, useDefaultCiOptions1 bool) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Withusedefaultcioptions(useDefaultCiOptions1)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, usedefaultcioptions1: bool) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.withusedefaultcioptions(usedefaultcioptions1)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, useDefaultCiOptions1: boolean): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.withUseDefaultCiOptions(useDefaultCiOptions1)
}withDir() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| dir | Directory ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean with-dir --dir DIR_PATHfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, dir *dagger.Directory) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Withdir(dir)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, dir: dagger.Directory) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.withdir(dir)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, dir: Directory): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.withDir(dir)
}newContainer() 🔗
Return Type
Container ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean new-containerfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) *dagger.Container {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Newcontainer()
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> dagger.Container:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.newcontainer()
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Container {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.newContainer()
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean containerfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) *dagger.Container {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Container()
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> dagger.Container:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.container()
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Container {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.container()
}mavenBuild() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | [String ! ] ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean maven-build --args string1 --args string2func (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, args []string) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Mavenbuild(args)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, args: List[str]) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.mavenbuild(args)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, args: string[]): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.mavenBuild(args)
}getGeneratedArtifact() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| jarName | String ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean get-generated-artifact --jar-name stringfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, jarName string) *dagger.File {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Getgeneratedartifact(jarName)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, jarname: str) -> dagger.File:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.getgeneratedartifact(jarname)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, jarName: string): File {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.getGeneratedArtifact(jarName)
}getVersion() 🔗
Return Type
String ! Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean get-versionfunc (m *MyModule) Example(ctx context.Context, image string, useMvnw bool, useCache bool, useDefaultCiOptions bool) string {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Getversion(ctx)
}@function
async def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool) -> str:
return await (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.getversion()
)@func()
async example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean): Promise<string> {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.getVersion()
}mvnVerify() 🔗
Runs mvn verify to build the application
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| cleanFirst | Boolean ! | - | Run clean goal before verify goal |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean mvn-verify --clean-first booleanfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, cleanFirst bool) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Mvnverify(cleanFirst)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, cleanfirst: bool) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.mvnverify(cleanfirst)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, cleanFirst: boolean): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.mvnVerify(cleanFirst)
}publishWithJib() 🔗
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| registry | String ! | - | No description provided |
| image | String ! | - | No description provided |
| username | String ! | - | No description provided |
| password | Secret ! | - | No description provided |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean publish-with-jib --registry string --image string --username string --password env:MYSECRETfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, registry string, image1 string, username string, password *dagger.Secret) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Publishwithjib(registry, image1, username, password)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, registry: str, image1: str, username: str, password: dagger.Secret) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.publishwithjib(registry, image1, username, password)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, registry: string, image1: string, username: string, password: Secret): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.publishWithJib(registry, image1, username, password)
}mvnVerifyPublishWithJib() 🔗
Runs mvn clean verify to build the application then publish the imagem with Jib
Return Type
Maven !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Directory with the maven module |
| registry | String ! | - | Registry address to publish the image |
| image | String ! | - | Image name with tag (can contain groups, i.e.: a/b/c:1.0) |
| username | String ! | - | Username for login to the registry |
| password | Secret ! | - | Password for login to the registry |
Example
dagger -m github.com/BasisTI/daggerverse/maven@2d7534654c1d801947680b4bc1f0504a4dc93ea9 call \
--image string --use-mvnw boolean --use-cache boolean --use-default-ci-options boolean mvn-verify-publish-with-jib --source DIR_PATH --registry string --image string --username string --password env:MYSECRETfunc (m *MyModule) Example(image string, useMvnw bool, useCache bool, useDefaultCiOptions bool, source *dagger.Directory, registry string, image1 string, username string, password *dagger.Secret) *dagger.Maven {
return dag.
Maven(image, useMvnw, useCache, useDefaultCiOptions).
Mvnverifypublishwithjib(source, registry, image1, username, password)
}@function
def example(image: str, usemvnw: bool, usecache: bool, usedefaultcioptions: bool, source: dagger.Directory, registry: str, image1: str, username: str, password: dagger.Secret) -> dagger.Maven:
return (
dag.maven(image, usemvnw, usecache, usedefaultcioptions)
.mvnverifypublishwithjib(source, registry, image1, username, password)
)@func()
example(image: string, useMvnw: boolean, useCache: boolean, useDefaultCiOptions: boolean, source: Directory, registry: string, image1: string, username: string, password: Secret): Maven {
return dag
.maven(image, useMvnw, useCache, useDefaultCiOptions)
.mvnVerifyPublishWithJib(source, registry, image1, username, password)
}