Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ploty
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Instrument Control
Ploty
Commits
4992780a
Commit
4992780a
authored
9 years ago
by
yannick legoc
Browse files
Options
Downloads
Patches
Plain Diff
Changed the way to deploy.
parent
1e0fa627
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Deploy.sh
+26
-0
26 additions, 0 deletions
Deploy.sh
pom.xml
+31
-4
31 additions, 4 deletions
pom.xml
with
57 additions
and
4 deletions
Deploy.sh
0 → 100755
+
26
−
0
View file @
4992780a
#!/bin/bash
# Get the arguments.
projectArtifactId
=
$1
swtPlatform
=
$2
projectVersion
=
$3
destDir
=
$4
# Check if the version is a snapshot
projectVersionWithoutSnapshot
=
${
projectVersion
%SNAPSHOT
}
projectVersionWithSnapshot
=
$projectVersionWithoutSnapshot
"SNAPSHOT"
if
[[
"
$projectVersionWithSnapshot
"
==
"
$projectVersion
"
]]
then
echo
"This is a snapshot version, deploying the full jar is not performed."
exit
fi
echo
"Deploying the full jar."
jarFile
=
"target/"
$projectArtifactId
"-"
$swtPlatform
"-"
$projectVersion
".jar"
destFile
=
$destDir
"/"
$projectArtifactId
"-"
$swtPlatform
".jar"
cp
$jarFile
$destFile
echo
"Copied
$jarFile
to
$destFile
."
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pom.xml
+
31
−
4
View file @
4992780a
...
...
@@ -175,6 +175,28 @@
</configuration>
</plugin>
<!-- Purge the local repository when deploying the artifact.
This is necessary because the assembly plugin aggregates all the dependencies that could be modified locally, e.g. NomadCommandSystem
-->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<version>
2.10
</version>
<executions>
<execution>
<id>
purge-local-dependencies
</id>
<phase>
deploy
</phase>
<goals>
<goal>
purge-local-repository
</goal>
</goals>
<configuration>
<excludes>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<!-- Assemble a single jar -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
...
...
@@ -198,7 +220,7 @@
</configuration>
<executions>
<execution>
<phase>
package
</phase>
<phase>
deploy
</phase>
<goals>
<goal>
single
</goal>
</goals>
...
...
@@ -213,11 +235,16 @@
<version>
1.8
</version>
<executions>
<execution>
<id>
install
</id>
<phase>
install
</phase>
<id>
deploy
</id>
<phase>
deploy
</phase>
<configuration>
<target>
<copy
file=
"target/${project.artifactId}-${swt.platform}-${project.version}.jar"
tofile=
"${dest.dir}/${project.artifactId}-${swt.platform}.jar"
/>
<exec
executable=
"${env.NOMADCLIENT_HOME}../Ploty/Deploy.sh"
>
<arg
value=
"${project.artifactId}"
/>
<arg
value=
"${swt.platform}"
/>
<arg
value=
"${project.version}"
/>
<arg
value=
"${dest.dir}"
/>
</exec>
</target>
</configuration>
<goals>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment