GeezerVison is showing github.com — plugin cleaning · danwslightinc/java-angular-basic@609393a
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: backend/pom.xml +2-27Lines changed: 2 additions & 27 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
14 | 14 | <properties> |
15 | 15 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
16 | 16 | <project.build.outputEncoding>UTF-8</project.build.outputEncoding> |
17 | | - <failOnMissingWebXml>false</failOnMissingWebXml> |
18 | 17 | </properties> |
19 | 18 |
|
20 | 19 | <artifactId>backend</artifactId> |
|
52 | 51 | <version>3.1.2</version> |
53 | 52 | <executions> |
54 | 53 | <execution> |
55 | | - <id>unpackng</id> |
| 54 | + <id>merge</id> |
56 | 55 | <phase>initialize</phase> |
57 | 56 | <goals> |
58 | 57 | <goal>unpack</goal> |
|
64 | 63 | <artifactId>frontend</artifactId> |
65 | 64 | <type>jar</type> |
66 | 65 | <overWrite>true</overWrite> |
67 | | - <outputDirectory>${project.build.directory}/angular</outputDirectory> |
| 66 | + <outputDirectory>${project.build.directory}/classes/static</outputDirectory> |
68 | 67 | </artifactItem> |
69 | 68 | </artifactItems> |
70 | 69 | </configuration> |
71 | 70 | </execution> |
72 | 71 | </executions> |
73 | 72 | </plugin> |
74 | | - |
75 | | - <plugin> |
76 | | - <groupId>org.apache.maven.plugins</groupId> |
77 | | - <artifactId>maven-antrun-plugin</artifactId> |
78 | | - <version>1.8</version> |
79 | | - <executions> |
80 | | - <execution> |
81 | | - <id>move</id> |
82 | | - <phase>generate-sources</phase> |
83 | | - <goals> |
84 | | - <goal>run</goal> |
85 | | - </goals> |
86 | | - <configuration> |
87 | | - <target> |
88 | | - <copy todir="${project.build.directory}/classes/static" flatten="false"> |
89 | | - <fileset dir="${project.build.directory}/angular/frontend"> |
90 | | - <include name="**/*.*"/> |
91 | | - </fileset> |
92 | | - </copy> |
93 | | - </target> |
94 | | - </configuration> |
95 | | - </execution> |
96 | | - </executions> |
97 | | - </plugin> |
98 | 73 | </plugins> |
99 | 74 | </build> |
100 | 75 | </project> |
Collapse file
Copy file name to clipboardExpand all lines: frontend/pom.xml +10-8Lines changed: 10 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
51 | 51 | </goals> |
52 | 52 | </execution> |
53 | 53 |
|
54 | | - <!-- build app --> |
| 54 | + <!-- code validation --> |
55 | 55 | <execution> |
56 | | - <id>npm run build</id> |
| 56 | + <id>npm run lint</id> |
57 | 57 | <goals> |
58 | 58 | <goal>npm</goal> |
59 | 59 | </goals> |
| 60 | + <phase>test</phase> |
60 | 61 | <configuration> |
61 | | - <arguments>run build --prod</arguments> |
| 62 | + <arguments>run lint</arguments> |
62 | 63 | </configuration> |
63 | 64 | </execution> |
64 | 65 |
|
65 | | - <!-- code validation --> |
| 66 | + <!-- build app --> |
66 | 67 | <execution> |
67 | | - <id>npm run lint</id> |
| 68 | + <id>npm run build</id> |
68 | 69 | <goals> |
69 | 70 | <goal>npm</goal> |
70 | 71 | </goals> |
71 | | - <phase>test</phase> |
72 | 72 | <configuration> |
73 | | - <arguments>run lint</arguments> |
| 73 | + <arguments>run build --prod</arguments> |
74 | 74 | </configuration> |
75 | 75 | </execution> |
| 76 | + |
76 | 77 | </executions> |
77 | 78 | </plugin> |
| 79 | + |
78 | 80 | </plugins> |
79 | 81 |
|
80 | 82 | <resources> |
81 | 83 | <resource> |
82 | | - <directory>dist</directory> |
| 84 | + <directory>dist/frontend</directory> |
83 | 85 | </resource> |
84 | 86 | </resources> |
85 | 87 | </build> |
|