summaryrefslogtreecommitdiff
path: root/doc/note/maven/maven.txt
blob: a9fd248495ce08a1f2d26bf19b734b7b278ac0f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

Maven
================

mvn dependency:help -Ddetail=true

mvn versions:set -DgenerateBackupPoms=false -DallowSnapshots=true -DnewVersion=

mvn versions:set -DgenerateBackupPoms=false -DnextSnapshot

mvn versions:update-parent -DgenerateBackupPoms=false -DallowDowngrade=true -DallowSnapshots=true -DforceUpdate=true -DskipResolution=true -DparentVersion=YOUR_VERSION

mvn versions:set-property -DgenerateBackupPoms=false -DallowSnapshots=true -Dproperty=foo.bar -DnewVersion=gugus

export MAVEN_OPTS="..."

## Get project version without any other bullshit
mvn help:evaluate -o -q -DforceStdout -Dexpression=project.version && echo

## Deploy paisa snapshot
mvn deploy -DaltDeploymentRepository=artifactory-snapshots::default::https://artifactory.tools.pnet.ch/artifactory/libs-snapshot-local


## Deploy paisa release
mvn deploy -Dcmake.generate.skip=true -Dcmake.compile.skip=true -DaltDeploymentRepository=artifactory-releases::default::https://artifactory.tools.pnet.ch/artifactory/libs-release-local


true \
  && DEPLOPTS= \
  && `# Deploy custom gateleen build 20240206` \
  && mvn clean install -pl '!gateleen-hook-js,!gateleen-playground' \
  && mvn deploy -DskipTests -pl '!gateleen-hook-js,!gateleen-playground' ${DEPLOPTS:?} \
  && `# Deploy custom houston build 20240216` \
  && jenkinsbuild-by-upstream \
  #&& mvn clean install \
  #&& mvn deploy -DskipTests ${DEPLOPTS:?} \
  && true


## Run e2e locally
mvn verify -U -DSelBaseUrl=http://localhost:7012/apigateway/services/foo/index.html -Dskip.tests=false -Dserver.host=localhost -Dserver.port=7012 -Ptestsuite


## Fill local cache with artifacts (TODO verify)

  mvn dependency:go-offline

[See also](https://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html)