Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
3b9418e4
Commit
3b9418e4
authored
May 29, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整目录
parent
a5b3cb0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
42 deletions
+42
-42
pomEdit.sh
tke/java/pomEdit.sh
+42
-0
pomEdit.sh
tke/nodejs/pomEdit.sh
+0
-42
No files found.
tke/java/pomEdit.sh
View file @
3b9418e4
#!/bin/bash
#修改 spring-boot-maven-plugin 配置
#增加 maven-dependency-plugin 配置
numStart
=
`
grep
-n
-B4
'spring-boot-maven-plugin'
pom.xml |
grep
'<plugin>'
|
awk
-F-
'{print $1}'
`
numEnd
=
`
grep
-n
-A4
'spring-boot-maven-plugin'
pom.xml |
grep
'</plugin>'
|
awk
-F-
'{print $1}'
`
sed
-i
"
${
numStart
}
,
${
numEnd
}
d"
pom.xml
sed
-i
"
${
numStart
}
i
\
</plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</executions>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</execution>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<outputDirectory>
\$
{project.build.directory}/libs</outputDirectory>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<includeScope>runtime</includeScope>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<type>jar</type>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</goals>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<goal>copy-dependencies</goal>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<goals>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<phase>package</phase>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<id>copy</id>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<execution>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<executions>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>maven-dependency-plugin</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>org.apache.maven.plugins</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</includes>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</include>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>
\$
{project.artifactId}</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>
\$
{project.groupId}</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<include>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<includes>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<layout>ZIP</layout>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>spring-boot-maven-plugin</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>org.springframework.boot</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<plugin>"
pom.xml
tke/nodejs/pomEdit.sh
deleted
100644 → 0
View file @
a5b3cb0a
#!/bin/bash
#修改 spring-boot-maven-plugin 配置
#增加 maven-dependency-plugin 配置
numStart
=
`
grep
-n
-B4
'spring-boot-maven-plugin'
pom.xml |
grep
'<plugin>'
|
awk
-F-
'{print $1}'
`
numEnd
=
`
grep
-n
-A4
'spring-boot-maven-plugin'
pom.xml |
grep
'</plugin>'
|
awk
-F-
'{print $1}'
`
sed
-i
"
${
numStart
}
,
${
numEnd
}
d"
pom.xml
sed
-i
"
${
numStart
}
i
\
</plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</executions>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</execution>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<outputDirectory>
\$
{project.build.directory}/libs</outputDirectory>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<includeScope>runtime</includeScope>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<type>jar</type>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</goals>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<goal>copy-dependencies</goal>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<goals>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<phase>package</phase>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<id>copy</id>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<execution>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<executions>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>maven-dependency-plugin</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>org.apache.maven.plugins</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</plugin>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</includes>"
pom.xml
sed
-i
"
${
numStart
}
i
\
</include>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>
\$
{project.artifactId}</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>
\$
{project.groupId}</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<include>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<includes>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<layout>ZIP</layout>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<configuration>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<artifactId>spring-boot-maven-plugin</artifactId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<groupId>org.springframework.boot</groupId>"
pom.xml
sed
-i
"
${
numStart
}
i
\
<plugin>"
pom.xml
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment