рдкрд╣рд▓рд╛ рднрд╛рдЧ рдмрддрд╛рддрд╛ рд╣реИ рдХрд┐
рдпрд╣рд╛рдБ рдпрд╣ рд╕рдм рдХреНрдпреЛрдВ рдЖрд╡рд╢реНрдпрдХ
рд╣реИ ред
рд╕рд╛рдордЧреНрд░реА
- рдЯреНрд░реЗрдирд┐рдВрдЧ
- Maven
- рдЬрдбрд╝
- рдкреНрд░реЛрдлрд╛рдЗрд▓ рдмрдирд╛рдПрдВ
- рдкреНрд▓рдЧрдЗрдиреНрд╕
- рдРрдк
- рд╕рдВрд╕рд╛рдзрди рдлрд╝рд┐рд▓реНрдЯрд░рд┐рдВрдЧ
- рд▓рд┐рдм
- рдХрд╕реМрдЯреА
- рдирд┐рд╖реНрдХрд░реНрд╖
- рд╕рдВрджрд░реНрдн
рдпрд╣ рдкреЛрд╕реНрдЯ рдкрд╛рдардХреЛрдВ рдХреЗ рд▓рд┐рдП рдкрд╣рд▓реЗ рд╕реЗ рд╣реА рдорд╛рд╡реЗрди рдХреА рдореВрд▓ рдмрд╛рддреЗрдВ рд╕реЗ рдкрд░рд┐рдЪрд┐рдд рд╣реИ, рдФрд░ рд▓реЗрдЦ рдХреЗ рджреМрд░рд╛рди рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП рдХреБрдЫ рд╡рд┐рд╢рд┐рд╖реНрдЯ рдмрд┐рдВрджреБрдУрдВ рдкрд░ рдЬреЛрд░ рджрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛, рди рдХрд┐ рдорд╛рд╡реЗрди рдХреЗ рд╕рд╛рдорд╛рдиреНрдп рдореБрджреНрджреЛрдВ рдкрд░ред рдпрджрд┐ рдЖрдкрдиреЗ рдкрд╣рд▓реЗ рдХрднреА рдорд╛рд╡реЗрди рдХреЗ рд╕рд╛рде рдХрд╛рдо рдирд╣реАрдВ рдХрд┐рдпрд╛ рд╣реИ, рддреЛ рд╢реБрд░реБрдЖрдд рдХреЗ рд▓рд┐рдП рдЖрдк
рдпрд╣рд╛рдВ рдФрд░
рдпрд╣рд╛рдВ рдкрдврд╝ рд╕рдХрддреЗ рд╣реИрдВред
рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдореИрдВ рдЯреВрд▓реНрд╕ рдХреА рд╕реНрдерд╛рдкрдирд╛ рдФрд░ рдмреБрдирд┐рдпрд╛рджреА рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдкрд░ рд╡рд┐рдЪрд╛рд░ рдирд╣реАрдВ рдХрд░реВрдВрдЧрд╛ -
JDK, Android SDK, Maven
рдФрд░
IntelliJ IDEA
рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдФрд░ рдХрд╛рдо рдХрд░рдирд╛ рдЪрд╛рд╣рд┐рдПред рдЖрдкрдХреЗ рдкрд╛рд╕
JAVA_HOME, M2, M2_HOME
рдФрд░
ANDROID_HOME
рд╡рд╛рддрд╛рд╡рд░рдг рдЪрд░ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рд╣реЛрдиреЗ рдЪрд╛рд╣рд┐рдПред рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рд╕реБрд╡рд┐рдзрд╛ рдХреЗ рд▓рд┐рдП, рдореИрдВ
Path
рдкрд░
%ANDROID_HOME%/tools
рдФрд░
%ANDROID_HOME%/platform-tools
рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛рдУрдВ рдХреЛ рдЬреЛрдбрд╝рдиреЗ рдХреА рд╕рд▓рд╛рд╣ рджреЗрддрд╛ рд╣реВрдВред
рдпрд╣ рдореЗрд░реЗ рд▓рд┐рдП рд╣рдореЗрд╢рд╛ рдЕрдзрд┐рдХ рд╕реБрд╡рд┐рдзрд╛рдЬрдирдХ рд╣реИ рдХрд┐ рдкрд╣рд▓реЗ рдкреВрд░реА рддрд╕реНрд╡реАрд░ рджреЗрдЦреЗрдВ, рдФрд░ рдлрд┐рд░ рдЗрд╕рдХреЗ рд╡реНрдпрдХреНрддрд┐рдЧрдд рд╡рд┐рд╡рд░рдг рдХреЛ рд╕рдордЭреЗрдВред рдЗрд╕рд▓рд┐рдП, рдореЗрд░рд╛ рд╕реБрдЭрд╛рд╡ рд╣реИ рдХрд┐ рдЖрдк рдЬреАрдердм рд╕реЗ
рдкреНрд░реЛрдЬреЗрдХреНрдЯ рдЯреЗрдореНрдкрд▓реЗрдЯ рдЪреБрдиреЗрдВред рдЙрд╕рдХреЗ рдЙрджрд╛рд╣рд░рдг рдкрд░ рдЖрдЧреЗ рдХрд╛ рд╕рд╛рд░рд╛ рдХрдерди рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред
рдЯреНрд░реЗрдирд┐рдВрдЧ
POM рдлрд╝рд╛рдЗрд▓реЛрдВ рдкрд░ рд╡рд┐рдЪрд╛рд░ рдХрд░рдирд╛ рд╢реБрд░реВ рдХрд░рдиреЗ рд╕реЗ рдкрд╣рд▓реЗ, рдкрд╣рд▓реЗ рд╣рдо рдкреНрд░реЛрдЬреЗрдХреНрдЯ рд╕рдВрд░рдЪрдирд╛ рдХреЛ рд╡реНрдпрд╡рд╕реНрдерд┐рдд рдХрд░рддреЗ рд╣реИрдВ рдФрд░ рдЗрд╕реЗ IntelliJ IDEA рдореЗрдВ рдХрд╛рдо рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рддреЗ рд╣реИрдВред рдпрд╣ рд╣рдореЗрдВ рд▓реЙрдиреНрдЪ рдХрд░рдиреЗ рдФрд░ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЛ рдбреАрдмрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдорд╛рдирдХ IDE рдЯреВрд▓ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдФрд░ рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рдЗрд╕рдХреЗ рд╕рднреА рд▓рд╛рднреЛрдВ рдХрд╛ рдкреВрд░реА рддрд░рд╣ рд╕реЗ рдЖрдирдВрдж рд▓реЗрдиреЗ рдХрд╛ рдЕрд╡рд╕рд░ рджреЗрдЧрд╛ред рдмреЙрдХреНрд╕ рд╕реЗ рдмрд╛рд╣рд░, IDEA рдореЗрдВ рдорд╛рд╡реЗрди рдФрд░ рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рдкреНрд▓рдЧрдЗрдиреНрд╕ рд╣реИрдВ, рдФрд░ рд╕реЗрдЯрдЕрдк рд▓рдЧрднрдЧ рдХрд┐рд╕реА рднреА рд╕рдорд╕реНрдпрд╛ рдХрд╛ рдХрд╛рд░рдг рдирд╣реАрдВ рд╣реИред рдмрд╕ рдкреНрд▓рдЧрдЗрди рдХреЗ рдорд╛рд╡реЗрди рдкреИрдирд▓ рдХреЛ рдЦреЛрд▓реЗрдВ рдФрд░ рд╕рдВрдмрдВрдзрд┐рдд рд░реВрдЯ рдкреЛрдо рдлрд╛рдЗрд▓ рдХреЛ рдЪреБрдиреЗрдВред рдЗрд╕рд╕реЗ рдкреНрд░рд╛рдкреНрдд рдЖрдВрдХрдбрд╝реЛрдВ рдХреЗ рдЖрдзрд╛рд░ рдкрд░, IDEA рдкреНрд░реЛрдЬреЗрдХреНрдЯ рдлрд╛рдЗрд▓реЗрдВ рдмрдирд╛рдПрдЧрд╛ рдЬрд┐рдиреНрд╣реЗрдВ рдореИрдиреНрдпреБрдЕрд▓ рд░реВрдк рд╕реЗ рдереЛрдбрд╝рд╛ рд╕рдорд╛рдпреЛрдЬрд┐рдд рдХрд░рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛ рд╕рдХрддреА рд╣реИред

рдкрд░рд┐рдпреЛрдЬрдирд╛ рдореЗрдВ рдЪрд╛рд░ рдореЙрдбреНрдпреВрд▓ рд╢рд╛рдорд┐рд▓ рд╣реИрдВ:
рдЬрдбрд╝
| ---- рдРрдк
| | ---- src
| | ---- рдкрд░реАрдХреНрд╖рдг
| | ---- рдЬреБрдиреАрдд |
| | ---- рд░реЛрдмреЛрд╕реНрдЯрд┐рдХ
|
| ---- рд▓рд┐рдм
| | ---- src
| | ---- рдкрд░реАрдХреНрд╖рдг
| | ---- рдЬреБрдиреАрдд |
| | ---- рд░реЛрдмреЛрд╕реНрдЯрд┐рдХ
|
| ---- рдЯреЗрд╕реНрдЯ
| ---- src
| ---- рдЗрдВрд╕реНрдЯреНрд░реВрдореЗрдВрдЯреЗрд╢рди
| ---- рд░реЛрдмреЛрдЯрд┐рдпрдо
рдкрд░реАрдХреНрд╖рдгреЛрдВ рдХреЗ рд╕рд╛рде рдПрдХ рдЕрд▓рдЧ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдкрд░рд┐рдпреЛрдЬрдирд╛ рдХреЗ рдкреНрд░рддреНрдпреЗрдХ рдореЙрдбреНрдпреВрд▓ рдореЗрдВ рдПрдХ
test
рдлрд╝реЛрд▓реНрдбрд░ рд╣реЛрддрд╛ рд╣реИ рдЬрд┐рд╕рдореЗрдВ рдЗрдХрд╛рдИ рдкрд░реАрдХреНрд╖рдг (JUnit рдпрд╛
Robolectric )
рд╕рдВрдЧреНрд░рд╣реАрдд рд╣реЛрддреЗ рд╣реИрдВред
Maven
рдореЗрд░реЗ рд▓рд┐рдП, рдорд╛рд╡реЗрди рдХреА рдХреЛрд╢рд┐рд╢ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдкреНрд░реЛрддреНрд╕рд╛рд╣рди рдореЗрдВ рд╕реЗ рдПрдХ рдЪреАрдВрдЯреА рдХреА рддреБрд▓рдирд╛ рдореЗрдВ рдЫреЛрдЯрд╛ XML рдЖрдХрд╛рд░ рдерд╛, рдФрд░ рдкрд░рд┐рдгрд╛рдорд╕реНрд╡рд░реВрдк, рдЕрдзрд┐рдХ рдкрдардиреАрдпрддрд╛ рдФрд░ рд╕рдорд░реНрдердиред рд╣рд╛рд▓рд╛рдВрдХрд┐, рдЬреИрд╕рд╛ рдХрд┐ рдЖрдорддреМрд░ рдкрд░ рд╣реЛрддрд╛ рд╣реИ, рдЯреНрдпреВрдЯреЛрд░рд┐рдпрд▓ рдореЗрдВ рдЬреЛ рджрд┐рдЦрддрд╛ рд╣реИ рд╡рд╣ рд╡реНрдпрд╛рд╡рд╣рд╛рд░рд┐рдХ рд░реВрдк рд╕реЗ рдкрд╣рдЪрд╛рдирдиреЗ рдпреЛрдЧреНрдп рдЖрдХрд╛рд░ рдореЗрдВ рдмрдврд╝рддрд╛ рд╣реИред рдЗрд╕рд▓рд┐рдП рдЗрд╕ рдмрд╛рд░, рд╕реНрдХреНрд░рд┐рдкреНрдЯ рд╕рднреА рд╡рд┐рд╢рд▓рд┐рд╕реНрдЯ рдХреЗ рд╕рд╛рде рдЖрдЧреЗ рдмрдврд╝реА рдФрд░ рдПрдВрдЯреЛрд╡ рд╕реЗ рдХрдо рдирд╣реАрдВ рд░рд╣реАред рд▓реЗрдХрд┐рди рдЗрд╕рдХреЗ рдмрд╛рд╡рдЬреВрдж, рдореЗрд░реЗ рд╡реНрдпрдХреНрддрд┐рдкрд░рдХ рд░рд╛рдп рдореЗрдВ, рдЙрдиреНрд╣реЗрдВ рдкрдврд╝рдирд╛ рдЪреАрдВрдЯреА рдХреА рддреБрд▓рдирд╛ рдореЗрдВ рдмрд╣реБрдд рдЖрд╕рд╛рди рд╣реИред рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдорд╛рд╡реЗрди, рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреА рддрд░рд╣ рдЪреАрдВрдЯреА рдХреЗ рд╡рд┐рдкрд░реАрдд, рдПрдХ рдШреЛрд╖рдгрд╛рддреНрдордХ рдкреНрд░рддрд┐рдорд╛рди рдкреНрд░рджрд╛рди рдХрд░рддрд╛ рд╣реИред рдпрд╛рдиреА рд╣рдо рд╡рд░реНрдгрди рдХрд░рддреЗ рд╣реИрдВ рдХрд┐ "рдХреИрд╕реЗ" рдмрд┐рд▓реНрдХреБрд▓ рдирд╣реАрдВ, рд╣рдо рдХреБрдЫ рдкреНрд░рд╛рдкреНрдд рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рд╣реИрдВ, рд▓реЗрдХрд┐рди "рдХреНрдпрд╛" рдмрд┐рд▓реНрдХреБрд▓, рдФрд░ рдпрд╣ рдХреИрд╕реЗ рдкреНрд░рд╛рдкреНрдд рд╣реЛрдЧрд╛, рд╣рдо рдЕрдм рдкрд░рд╡рд╛рд╣ рдирд╣реАрдВ рдХрд░рддреЗ рд╣реИрдВред
рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛ рд╡реНрдпрд╡рд╣рд╛рд░ рдореЗрдВ, рдирд┐рд░реНрднрд░рддрд╛ рдкреНрд░рдмрдВрдзрди рд╡рд┐рдХрд▓реНрдк рдПрдХ рдореВрд░реНрдд рдкреНрд▓рд╕ рдХреЗ рд░реВрдк рдореЗрдВ рдирд┐рдХрд▓рд╛, рд╣рд╛рд▓рд╛рдВрдХрд┐ рдЪреАрдВрдЯреА рдореЗрдВ, рд╕рд┐рджреНрдзрд╛рдВрдд рд░реВрдк рдореЗрдВ, рдЖрдЗрд╡реА рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рднреА рд╣рд▓ рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред рдареАрдХ рд╣реИ, рдФрд░ рдЪреАрдВрдЯреА рдХреА рдУрд░ рдПрдХ рдФрд░ рдкреНрд░рд╣рд╛рд░, рдЬреИрд╕рд╛ рдХрд┐ рдкреНрд░рд╕рд┐рджреНрдз рд▓реЛрдЧреЛрдВ рдореЗрдВ рд╕реЗ рдПрдХ рдиреЗ рдХрд╣рд╛: "рдПрдХреНрд╕рдПрдордПрд▓ рдХреЗ рд╕рд╛рде рдкреНрд░реЛрдЧреНрд░рд╛рдорд┐рдВрдЧ рд╕рд╛рдорд╛рдиреНрдп рд░реВрдк рд╕реЗ рдПрдХ рдЕрдЬреАрдм рд╡рд┐рдЪрд╛рд░ рд╣реИ" =)
рдЖрдЗрдП рд╣рдорд╛рд░реЗ рдореЙрдбреНрдпреВрд▓ рдХреЗ POM рдлрд╝рд╛рдЗрд▓реЛрдВ рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдЪрд▓рддреЗ рд╣реИрдВ
рдЬрдбрд╝
рдкрд░рд┐рдпреЛрдЬрдирд╛ рдХрд╛ рдореВрд▓ рдореЙрдбреНрдпреВрд▓ред рд╕рднреА рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдЕрдиреНрдп рд╕рднреА рдореЙрдбреНрдпреВрд▓ рдФрд░ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдЯреБрдХрдбрд╝реЗ рдЖрдо рд╣реИрдВред рдРрд╕реЗ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдбрд┐рдлрд╝реЙрд▓реНрдЯ рдкреИрдХреЗрдЬрд┐рдВрдЧ рдкреНрд░рдХрд╛рд░
<packaging>pom</packaging>
рдЗрд╕рдХреЗ рдЕрд▓рд╛рд╡рд╛, рд╡рд┐рднрд┐рдиреНрди рдЯреНрд░реИрдлрд▓реНрд╕ рдХреА рдШреЛрд╖рдгрд╛ рдХреА рдЬрд╛рддреА рд╣реИ, рдЬреИрд╕реЗ рдмрдЧ рдЯреНрд░реИрдХрд░ рдХрд╛ рдкрддрд╛, рд░рд┐рдкреЙрдЬрд┐рдЯрд░реА рдХрд╛ рдкрддрд╛, рдкреНрд░реЛрдЬреЗрдХреНрдЯ рдХрд╛ рд╡рд┐рд╡рд░рдг рдЖрджрд┐ред
рдЗрд╕рдХреЗ рдмрд╛рдж рдЧреБрдгреЛрдВ рдХрд╛ рдмреНрд▓реЙрдХ рдЖрддрд╛ рд╣реИ:
<properties> <project.version.name.number>1.0.0</project.version.name.number> <project.version.code>1</project.version.code> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.emulator.name></project.emulator.name> <project.version.name>${project.version.name.number}-${project.version.name.qualifier}</project.version.name> <project.verbosity>true</project.verbosity> </properties>
- рд╕рдВрд╕реНрдХрд░рдг рдФрд░
versionCode
рдлрд╝рд╛рдЗрд▓ versionCode
- рд╕реНрд░реЛрдд рдПрдиреНрдХреЛрдбрд┐рдВрдЧ
- рдПрдореБрд▓реЗрдЯрд░ рдХрд╛ рдирд╛рдо рдЬрд┐рд╕ рдкрд░ рдкрд░реАрдХреНрд╖рдг рдЪрд▓рд╛рдП рдЬрд╛рдПрдВрдЧреЗ рдФрд░ рдЬрд╣рд╛рдВ рд╕рдорд╛рдкреНрдд рдЖрд╡реЗрджрди рддреИрдирд╛рдд рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред рдорд╛рди рдХрд╛ рдЙрдкрдпреЛрдЧ рдмрд╛рдж рдореЗрдВ
android-maven-plugin
рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдореЗрдВ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред рдпрджрд┐ рдЖрдк рдПрдХ рд╡рд┐рд╢рд┐рд╖реНрдЯ рдореВрд▓реНрдп рдирд┐рд░реНрджрд┐рд╖реНрдЯ рдирд╣реАрдВ рдХрд░рддреЗ рд╣реИрдВ, рддреЛ рдбрд┐рдлрд╝реЙрд▓реНрдЯ рд░реВрдк рд╕реЗ рдЗрд╕ рд╕рдордп рдЙрдкрд▓рдмреНрдз рд╕рднреА рдПрдореБрд▓реЗрдЯрд░ / рдбрд┐рд╡рд╛рдЗрд╕ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред рдЙрдкрдХрд░рдг рдХреЗ рдирд╛рдо рдХреЗ рдЕрд▓рд╛рд╡рд╛, usb
рдФрд░ emulator
рд╕реНрдерд┐рд░рд╛рдВрдХ рднреА рдорд╛рдиреНрдп рдорд╛рди рд╣реИрдВред - рдкрд░рд┐рдпреЛрдЬрдирд╛ рдХрд╛ рдирд╛рдоред рд╡рд░реНрдЬрди + рдХреНрд╡рд╛рд▓реАрдлрд╛рдпрд░, рдЬрд┐рд╕рдХрд╛ рдореВрд▓реНрдп рднреА рдкреНрд░рддреНрдпреЗрдХ рд╡рд┐рд╢рд┐рд╖реНрдЯ рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдХреЗ рд▓рд┐рдП рд╡рд┐рд╢рд┐рд╖реНрдЯ рд╕рдВрдкрддреНрддрд┐ рд╕реЗ рд▓рд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ (рдкреНрд░реЛрдлрд╛рдЗрд▓ рдХреЗ рдмрд╛рд░реЗ рдореЗрдВ рдЕрдзрд┐рдХ рдЬрд╛рдирдХрд╛рд░реА рдиреАрдЪреЗ рджреА рдЬрд╛рдПрдЧреА)
- -v рдзреНрд╡рдЬ, рдЬрд┐рд╕реЗ рдПрдВрдбреНрд░реЙрдЗрдб рдПрд╕рдбреАрдХреЗ рд╕реЗ рдХрдИ рдЙрдкрдпреЛрдЧрд┐рддрд╛рдУрдВ рдХреЛ рдкрд╛рд░рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рд╡рд┐рднрд┐рдиреНрди рдЕрддрд┐рд░рд┐рдХреНрдд рдЬрд╛рдирдХрд╛рд░реА рдХреЗ рдЖрдЙрдЯрдкреБрдЯ рдХреЛ рдЙрддреНрддреЗрдЬрд┐рдд рдХрд░рддрд╛ рд╣реИред
рдлрд┐рд░ рдЖрд╢реНрд░рд┐рдд рдореЙрдбреНрдпреВрд▓ рдХреА рдШреЛрд╖рдгрд╛ рдХрд░рдиреЗ рд╡рд╛рд▓рд╛ рдПрдХ рдмреНрд▓реЙрдХ: рдРрдк, рдЯреЗрд╕реНрдЯ рдФрд░ рд▓реАрдмред рдФрд░ рдлрд┐рд░ рдкреНрд░реЛрдлрд╛рдЗрд▓ рдШреЛрд╖рдгрд╛ рдЕрдиреБрднрд╛рдЧред
рдкреНрд░реЛрдлрд╛рдЗрд▓ рдмрдирд╛рдПрдВ
рдЬреИрд╕рд╛ рдХрд┐ рдкрд┐рдЫрд▓реЗ рднрд╛рдЧ рдореЗрдВ рдиреЛрдЯ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЛ рдХрдИ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рдиреЛрдВ рдореЗрдВ рдмрдирд╛рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИ:
production, test
рдФрд░
development
ред рдкреНрд░реЛрдлрд╛рдЗрд▓ рдФрд░ рдЗрд╕ рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХрд╛ рдкреНрд░рдмрдВрдзрдиред рдкреНрд░рддреНрдпреЗрдХ рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдЖрдкрдХреЛ рд╡рд┐рднрд┐рдиреНрди рдЧреБрдгреЛрдВ, рдкреНрд▓рдЧ-рдЗрди рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдФрд░ рдЕрдиреНрдп рдмрд┐рд▓реНрдб рдорд╛рдкрджрдВрдбреЛрдВ рдХреЗ рдореВрд▓реНрдпреЛрдВ рдХреЛ рдУрд╡рд░рд▓реИрдк рдХрд░рдиреЗ рдХреА рдЕрдиреБрдорддрд┐ рджреЗрддрд╛ рд╣реИред рдкреНрд░реЛрдЬреЗрдХреНрдЯ рдХреЛ рд╕рдВрдХрд▓рд┐рдд рдХрд░рддреЗ рд╕рдордп, рд╕рдХреНрд░рд┐рдп рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдХреЗ рдЖрдзрд╛рд░ рдкрд░, рдЙрдкрдпреБрдХреНрдд рд╡рд┐рдзрд╛рдирд╕рднрд╛ рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдХреЛ рд▓рд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ рдФрд░ рдЖрд╡реЗрджрди рдореЗрдВ рдЙрдкрдпреЛрдЧ рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛ред рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рд╕рдВрд╕рд╛рдзрди рдкреНрд░рд╕рдВрд╕реНрдХрд░рдг рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рддреЗ рд╣реБрдП, рдЗрд╕ рддрд░рд╣ рд╕реЗ, рдЖрдк рд╕рд░реНрд╡рд░ рд▓рд┐рдВрдХ рдХреЛ рдмрджрд▓ рд╕рдХрддреЗ рд╣реИрдВ, рдЬреЛ
production
рдФрд░
test
рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдХреЗ рд▓рд┐рдП рднрд┐рдиреНрди рд╣реЛ рд╕рдХрддреЗ рд╣реИрдВ (рдиреАрдЪреЗ рдЗрд╕ рдкрд░ рдЕрдзрд┐рдХ)ред
рдЖрдк рдорд╛рд╡реЗрди рдкреНрд▓рдЧрдЗрди рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдЖрдИрдбреАрдИрдП рдореЗрдВ рдЖрд╡рд╢реНрдпрдХ рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдХреЛ рд╕рдХреНрд░рд┐рдп рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред

рдпрд╛, рдпрджрд┐ POM рдХрдВрд╕реЛрд▓ рдпрд╛ рдмрд┐рд▓реНрдб рд╕рд░реНрд╡рд░ рд╕реЗ рд▓реЙрдиреНрдЪ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рддреЛ рдПрдХ рдЕрддрд┐рд░рд┐рдХреНрдд рдкреИрд░рд╛рдореАрдЯрд░ рдирд┐рд░реНрджрд┐рд╖реНрдЯ рдХрд░рдХреЗ рд╕рдХреНрд░рд┐рдп рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдХрд╛ рдорд╛рди рдкрд╛рд░рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛ рд╕рдХрддрд╛ рд╣реИред рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдЖрдк рдирд┐рдореНрди рдХрдорд╛рдВрдб рдХреЗ рд╕рд╛рде рдХрдорд╛рдВрдб рд▓рд╛рдЗрди рд╕реЗ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЗ
production
рдЕрд╕реЗрдВрдмрд▓реА рдХреЛ рдЗрдХрдЯреНрдард╛ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ:
mvn install -P production
development
рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдбрд┐рдлрд╝реЙрд▓реНрдЯ рд░реВрдк рд╕реЗ рд╕рдХреНрд░рд┐рдп рд╣реИ, рдЗрд╕рд▓рд┐рдП рдпрджрд┐ рдЕрддрд┐рд░рд┐рдХреНрдд рд░реВрдк рд╕реЗ рдХреБрдЫ рднреА рдирд┐рд░реНрджрд┐рд╖реНрдЯ рдирд╣реАрдВ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ, рддреЛ рджреЗрд╡ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░реЗрд╢рди рдмрдирд╛рдпрд╛ рдЬрд╛рдПрдЧрд╛ред
рд╡рд┐рд╢рд┐рд╖реНрдЯ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдХреЗ рдЕрд▓рд╛рд╡рд╛, рдЬреИрд╕реЗ рдХрд┐ рд╕рд░реНрд╡рд░ рдпрд╛ рдбреЗрдЯрд╛рдмреЗрд╕ рд╕реЗ рдХрдиреЗрдХреНрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдкреИрд░рд╛рдореАрдЯрд░, рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдирд┐рд░реНрдзрд╛рд░рд┐рдд рдХрд░рддреА рд╣реИ рдХрд┐ рдХреНрдпрд╛ рдПрдкреАрдХреЗ рдлрд╝рд╛рдЗрд▓ рдХреЛ рдЕрдиреБрдХреВрд▓рд┐рдд рдФрд░ рд╣рд╕реНрддрд╛рдХреНрд╖рд░рд┐рдд рдХрд┐рдпрд╛ рдЬрд╛рдПрдЧрд╛, рдХреНрдпрд╛ рдбрд┐рдмрдЧ рдореЛрдб рд╕рдХреНрд╖рдо рд╣реИ рдФрд░ рдХреМрди рд╕рд╛ рдХреНрд╡рд╛рд▓реАрдлрд╛рдпрд░ рдЕрдВрддрд┐рдо рд╡рд┐рд░реВрдкрдг рд╕рд╛рдХреНрд╖реНрдп рдкреНрд░рд╛рдкреНрдд рдХрд░реЗрдЧрд╛ред
test
рдФрд░
development
рдкреНрд░реЛрдлрд╛рдЗрд▓ рдЖрдХрд╛рд░ рдореЗрдВ рдЫреЛрдЯреЗ рд╣реИрдВ рдФрд░ рдЙрдирдХреА рд╕рд╛рдордЧреНрд░реА рдХреЗрд╡рд▓ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕реЗрдЯрд┐рдВрдЧреНрд╕ (рд╕рд░реНрд╡рд░ рд╕реЗ рдХрдиреЗрдХреНрдЯ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдкреИрд░рд╛рдореАрдЯрд░) рдирд┐рд░реНрджрд┐рд╖реНрдЯ рдХрд░рддреА рд╣реИред рдЖрдХрд╛рд░ рдореЗрдВ рдереЛрдбрд╝рд╛ рдмрдбрд╝рд╛ рд╣реИ рдПрдХ
production
рдкреНрд░реЛрдлрд╝рд╛рдЗрд▓ рдХреА рдкрд░рд┐рднрд╛рд╖рд╛ред рдЗрд╕рдореЗрдВ рдПрдХ рдкреНрд░рдорд╛рдг рдкрддреНрд░ рдХреЗ рд╕рд╛рде рдЖрд╡реЗрджрди
рдкрд░ рд╣рд╕реНрддрд╛рдХреНрд╖рд░ рдХрд░рдиреЗ рдХреА рдкреНрд░рдХреНрд░рд┐рдпрд╛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рд╢рд╛рдорд┐рд▓ рд╣реИред
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jarsigner-plugin</artifactId> <executions> <execution> <id>signing</id> <goals> <goal>sign</goal> <goal>verify</goal> </goals> <phase>package</phase> <inherited>true</inherited> <configuration> <archiveDirectory/> <includes> <include>${project.build.directory}/*.apk</include> </includes> <keystore>${project.basedir}/keystore</keystore> <storepass></storepass> <keypass></keypass> <alias></alias> <removeExistingSignatures>true</removeExistingSignatures> <verbose>true</verbose> </configuration> </execution> </executions> </plugin>
maven-jarsigner-plugin
рд╕реЗрдЯрд┐рдВрдЧ рдЗрдВрдЧрд┐рдд рдХрд░рддреА рд╣реИ рдХрд┐ рдХрд┐рд╕ рдмрд┐рдВрджреБ рдкрд░ рдкреИрдХреЗрдЬ рдкрд░ рд╣рд╕реНрддрд╛рдХреНрд╖рд░ рдХрд┐рдП рдЬрд╛рдПрдВрдЧреЗ, рд╣рдорд╛рд░реЗ рдХрд┐рд╕реНрдЯреЛрд░ рдФрд░ рдЙрд╕рдХреЗ рдорд╛рдкрджрдВрдбреЛрдВ рдХрд╛ рдорд╛рд░реНрдЧред рд╡реИрд╕реЗ, рдХрд┐рд╕реА рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ рдбреАрдмрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЗрд╕реЗ
-X
рд╡рд┐рдХрд▓реНрдк рдХреЗ рд╕рд╛рде рдЪрд▓рд╛рдирд╛ рдмрд╣реБрдд рд╕реБрд╡рд┐рдзрд╛рдЬрдирдХ рд╣реИ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП,
mvn install -X
ред рдЙрд╕реА рд╕рдордп, рдорд╛рд╡реЗрди рдмрдбрд╝реА рдорд╛рддреНрд░рд╛ рдореЗрдВ рдбрд┐рдмрдЧрд┐рдВрдЧ рдЬрд╛рдирдХрд╛рд░реА рджреЗрддрд╛ рд╣реИ, рдЬрд┐рд╕рдХрд╛ рд╡рд┐рд╢реНрд▓реЗрд╖рдг рдХрд░рдХреЗ рдЖрдк рд╕рдорд╕реНрдпрд╛ рд╕реЗ рдирд┐рдкрдЯ рд╕рдХрддреЗ рд╣реИрдВред
рдЕрдЧрд▓рд╛,
android-maven-plugin
'e рдореЗрдВ,
production
рдЕрд╕реЗрдВрдмрд▓реА рдХреЗ рд▓рд┐рдП рдбрд┐рдмрдЧ рдореЛрдб рдЕрдХреНрд╖рдо рд╣реИред рдФрд░ рдЕрдВрддрд┐рдо рд╕реНрдкрд░реНрд╢ -
maven-compiler-plugin
рдореЗрдВ
production
рд╕рдВрд╕реНрдХрд░рдг рдХреЛрдб рдХрд╛ рдЕрдиреБрдХреВрд▓рди рд╢рд╛рдорд┐рд▓ рд╣реИред
POM рдХреЗ рдмрд┐рд▓реНрдб рд╕реЗрдХреНрд╢рди рдореЗрдВ, рдкрд░рд┐рдгрд╛рдорд╕реНрд╡рд░реВрдк рдПрдкреАрдХреЗ рдлрд╝рд╛рдЗрд▓ рдХрд╛ рдирд╛рдо рд╕реЗрдЯ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ рдФрд░ рд╡рд┐рднрд┐рдиреНрди рдкреНрд▓рдЧрдЗрдиреНрд╕ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд┐рдП рдЧрдП рд╣реИрдВред
рдкреНрд▓рдЧрдЗрдиреНрд╕
рдлрд┐рд░ рдкреНрд▓рдЧрдЗрди рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдкрд░ рдЬрд╛рдПрдВред рдПрдХ рд╕рдВрд╕рд╛рдзрди рд╕рдВрд╕рд╛рдзрди рдкреНрд▓рдЧрдЗрди, рдЬрд╛рд╡рд╛ рдХреЗ рд╕рдВрд╕реНрдХрд░рдг 6 рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП
maven-compiler-plugin
,
android-maven-plugin
рд╕реНрдерд╛рдкрд┐рдд рдХрд░ рд░рд╣рд╛
android-maven-plugin
рдФрд░
maven-idea-plugin
рд╕реНрдерд╛рдкрд┐рдд рдХрд░ рд░рд╣рд╛ рд╣реИред
maven-idea-plugin
рдЖрдкрдХреЛ рдкреНрд░реЛрдЬреЗрдХреНрдЯ рдирд┐рд░реНрднрд░рддрд╛ рдХреЗ рдкреНрд░рд▓реЗрдЦрди рдФрд░ рд╕реНрд░реЛрддреЛрдВ рдХреЛ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рдиреЗ рдХреА рдЕрдиреБрдорддрд┐ рджреЗрддрд╛ рд╣реИ, рдЬреЛ рд╣рдореЗрдВ рдХрд┐рд╕реА рдкреНрд▓реЗрдЯрдлрд╝реЙрд░реНрдо рдпрд╛ рд▓рд╛рдЗрдмреНрд░реЗрд░реА рдХреЗ рд╕реНрд░реЛрдд рдХреЛрдб рдХреЛ рджреЗрдЦрдиреЗ рдпрд╛ рдЬрд▓реНрджреА рд╕реЗ javadoc (Ctrl + Q) рд╕реЗ рдкрд░рд┐рдЪрд┐рдд рд╣реЛрдиреЗ рдХрд╛ рдЕрд╡рд╕рд░ рджреЗрддрд╛ рд╣реИред рдПрдХ рддрд┐рдкрд╣рд┐рдпрд╛, рд▓реЗрдХрд┐рди рдЕрдЪреНрдЫрд╛ рд╣реИ! =)
Android рдорд╛рд╡реЗрди рдкреНрд▓рдЧрдЗрдирдЖрдЗрдП рдПрдВрдбреНрд░реЙрдЗрдб рдкреНрд▓рдЧрдЗрди рдХреЛ рдФрд░ рдЕрдзрд┐рдХ рд╡рд┐рд╕реНрддрд╛рд░ рд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдкрд░ рд╡рд┐рдЪрд╛рд░ рдХрд░реЗрдВред рдкреНрд▓рдЧрдЗрди рдЙрд╕реА рддрд░рд╣ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд┐рдпрд╛ рдЧрдпрд╛ рд╣реИ рдЬреИрд╕реЗ рдЕрдиреБрднрд╛рдЧ рдореЗрдВ рдЕрдиреНрдп рд╕рднреА рдорд╛рд╡реЗрди рдкреНрд▓рдЧрдЗрдиреНрд╕
//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .
, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".

//.
API .
<sdk> <platform>14</platform> </sdk>
, , ( ).
<manifest> <versionName>${project.version.name}</versionName> <versionCode>${project.version.code}</versionCode> <debuggable>${project.debug.mode}</debuggable> </manifest>
: , . .. TeamCity "" , -no-window
.
<emulator> <avd>${project.emulator.name}</avd> <wait>300000</wait><!-- 5 min --> <options>-no-window</options> </emulator>
.
<undeployBeforeDeploy>true</undeployBeforeDeploy>
apk- , -signed-aligned
<zipalign> <skip>false</skip> <verbose>${project.verbosity}</verbose> <outputApk>${project.build.directory}/${project.build.finalName}-signed-aligned.apk</outputApk> </zipalign>
.
<executions> <execution> <id>zipalign</id> <phase>package</phase> <goals> <goal>zipalign</goal> </goals> </execution> <execution> <id>update-manifest</id> <goals> <goal>manifest-update</goal> </goals> </execution> </executions>
POM- App, Test Lib , .
App
. - APK
. maven-central, , , .
maven-central Android SDK. , , compatibility package, AdMob SDK .. . Manfried Moser, maven-android-plugin
'a, - Maven Android SDK Deployer , .
. Lib
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-lib</artifactId> <version>1.0.0</version> <type>apklib</type> </dependency>
apklib
- Android , . IntelliJ IDEA apklib IDEA- ~
.
, apklib- . IDEA 2- apklib-. maven- , IDEA apk . JetBrains stackoverflow . workaround' maven .

, maven , , , . JetBrains .
.
<sourceDirectory>src</sourceDirectory> <testSourceDirectory>test</testSourceDirectory>
.
Resource filtering
, ( application.properties
/assets
, XML- /res
java /src
), ${property.name}
, Maven' POM-. , , . , .
. android-maven-plugin
versionName
versionCode
, . , , , AndroidManifest.xml
. resource filtering. .
, Root , APKLIB
. Root App , .
/asstets
.
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
, (. Resource filtering).
, .
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
Lib
APKLIB
. jar
. . java-, jar, (, , ..), .. Android Library Project , APKLIB
.
, .
Test
, . apk
. . , .
<dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>apk</type> </dependency> <dependency> <groupId>com.devoxy.android</groupId> <artifactId>template-project-app</artifactId> <version>${project.version}</version> <scope>provided</scope> <type>jar</type> </dependency>
..
-, , , . Maven . pom- AndroidManifest.xml
. maven-release-plugin
- (ant- ).
, , , - =)
version.properties
. ant-target POM- .
test-scopes . Android Testing Framework @SmallTest
@MediumTest
@LargeTest
, instrumentation- . .. integration-, , , TeamCity , . , development
@SmallTest
', production
. , , maven-android-plugin
scope , .. small
, medium
, large
, small medium. . testSize
obfuscating ProGuard
, , Android Maven'
Maven Tutorial Android-maven-plugin: Getting Started Plugin Doc Maven: The Complete Reference from Sonatype. Android Maven Android Archetypes Android-maven-plugin Samples . , NDK Gaug.es "-", , maven'a GitHub for Android GitHub, maven'
UPDATE
serso " APKLIB ". IDEA Android "Run 'process-resources' Maven task before Make" "Compile resources by IDE".
