Skip to content

Commit

Permalink
[UPDATE] 更新项目结构
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Yeh <[email protected]>
  • Loading branch information
alan-yeh committed Oct 12, 2024
1 parent d0b9d8a commit 2416a9a
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 133 deletions.
4 changes: 2 additions & 2 deletions central-dashboard/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions central-identity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions central-logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions central-multicast/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions central-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions central-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@

<!-- 测试依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
7 changes: 3 additions & 4 deletions central-studio-library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.central-x.framework</groupId>
<artifactId>central-parent</artifactId>
<groupId>com.central-x.studio</groupId>
<artifactId>central-studio-parent</artifactId>
<version>1.0.x-SNAPSHOT</version>
<relativePath/>
<relativePath>../central-studio-parent</relativePath>
</parent>

<groupId>com.central-x.studio</groupId>
<artifactId>central-studio-library</artifactId>
<version>1.0.x-SNAPSHOT</version>
<description>Central Studio Library</description>
Expand Down
86 changes: 72 additions & 14 deletions central-studio-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,78 @@
</dependencies>
</dependencyManagement>

<!-- 所有子项目都必须添加的依赖 -->
<dependencies>
<!-- Central Studio Library -->
<dependency>
<groupId>com.central-x.studio</groupId>
<artifactId>central-studio-library</artifactId>
</dependency>
<profiles>
<profile>
<id>centralx</id>
<!-- 发布仓库 -->
<distributionManagement>
<repository>
<id>centralx</id>
<name>CentralX Release Repository</name>
<url>https://mirror.central-x.com/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>centralx</id>
<name>CentralX Snapshot Repository</name>
<url>https://mirror.central-x.com/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</profile>

<!-- 单元测试 -->
<dependency>
<groupId>com.central-x.framework</groupId>
<artifactId>central-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profile>
<id>sonatype</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<!-- Sonatype Maven Central -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.6.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>sonatype</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
<!-- 发布仓库 -->
<distributionManagement>
<repository>
<id>sonatype</id>
<name>Sonatype Release Repository</name>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
</profile>

<profile>
<id>github</id>
<!-- 发布仓库 -->
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Repository</name>
<url>https://maven.pkg.github.com/central-x/central-studio</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>
34 changes: 16 additions & 18 deletions central-studio-views/central-dashboard-view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.central-x.framework</groupId>
<artifactId>central-parent</artifactId>
<groupId>com.central-x.studio</groupId>
<artifactId>central-studio-parent</artifactId>
<version>1.0.x-SNAPSHOT</version>
<relativePath/>
<relativePath>../../central-studio-parent</relativePath>
</parent>

<groupId>com.central-x.studio</groupId>
<artifactId>central-dashboard-view</artifactId>
<version>1.0.x-SNAPSHOT</version>
<packaging>jar</packaging>
Expand All @@ -32,20 +31,19 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<!-- <execution>-->
<!-- <id>npm-install</id>-->
<!-- <phase>generate-sources</phase>-->
<!-- <configuration>-->
<!-- <workingDirectory>${project.basedir}/src/main/node</workingDirectory>-->
<!-- <executable>npm</executable>-->
<!-- <arguments>-->
<!-- <argument>install</argument>-->
<!-- </arguments>-->
<!-- </configuration>-->
<!-- <goals>-->
<!-- <goal>exec</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<execution>
<id>npm-install</id>
<configuration>
<workingDirectory>${project.basedir}/src/main/node</workingDirectory>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>npm-run-build</id>
<phase>generate-sources</phase>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 16 additions & 18 deletions central-studio-views/central-identity-view/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.central-x.framework</groupId>
<artifactId>central-parent</artifactId>
<groupId>com.central-x.studio</groupId>
<artifactId>central-studio-parent</artifactId>
<version>1.0.x-SNAPSHOT</version>
<relativePath/>
<relativePath>../../central-studio-parent</relativePath>
</parent>

<groupId>com.central-x.studio</groupId>
<artifactId>central-identity-view</artifactId>
<version>1.0.x-SNAPSHOT</version>
<packaging>jar</packaging>
Expand All @@ -32,20 +31,19 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<!-- <execution>-->
<!-- <id>npm-install</id>-->
<!-- <phase>generate-sources</phase>-->
<!-- <configuration>-->
<!-- <workingDirectory>${project.basedir}/src/main/node</workingDirectory>-->
<!-- <executable>npm</executable>-->
<!-- <arguments>-->
<!-- <argument>install</argument>-->
<!-- </arguments>-->
<!-- </configuration>-->
<!-- <goals>-->
<!-- <goal>exec</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<execution>
<id>npm-install</id>
<configuration>
<workingDirectory>${project.basedir}/src/main/node</workingDirectory>
<executable>npm</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
<goals>
<goal>exec</goal>
</goals>
</execution>
<execution>
<id>npm-run-build</id>
<phase>generate-sources</phase>
Expand Down
66 changes: 0 additions & 66 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,72 +38,6 @@
<skip>true</skip>
</configuration>
</plugin>
<!-- 不需要编译成 Docker -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>1.4.13</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>

<!-- 镜像仓库 -->
<repositories>
<repository>
<id>centralx</id>
<name>CentralX Repository</name>
<url>https://mirror.central-x.com/repository/maven-public/</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub Repository</name>
<url>https://maven.pkg.github.com/central-x/*</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>central</id>
<name>Maven Central Repository</name>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>

<!-- 插件仓库 -->
<pluginRepositories>
<pluginRepository>
<id>centralx</id>
<name>CentralX Repository</name>
<url>https://mirror.central-x.com/repository/maven-public/</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>github</id>
<name>GitHub Repository</name>
<url>https://maven.pkg.github.com/central-x/*</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>central</id>
<name>Maven Central Repository</name>
<url>https://repo1.maven.org/maven2/</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>

0 comments on commit 2416a9a

Please sign in to comment.