1.项目骨架相关
2.maven项目1.1 在骨架pom中,可通过${package}引用生成的项目的指定的包名,对指定项目相关的信息,比如main类位置等比较有效1.2 根据项目生成骨架 mvn archetype:create-from-project1.3 在target下运行命令mvn clean package deploy,产生项目骨架1.4 在target下的pom配置<distributionManagement>上传到私服,如:<distributionManagement> <repository> <id>releases</id> <name>Local Nexus Repository</name> <url> http://maven.xxxx.com:8081/nexus/content/repositories/releases/ </url> </repository> <snapshotRepository> <id>snapshots</id> <name>Local Nexus Repository</name> <url> http://maven.xxxx.com:8081/nexus/content/repositories/snapshots/ </url> </snapshotRepository> </distributionManagement>
2.1 SNAPSHOT版可以多次上传到私服,release上传前如果版本号相同,需要先在私服上删除2.2 上传私服时,需要在本地maven下的settings.xml添加私服配置<servers> <server> <id>releases</id> <username>用户名</username> <password>密码</password> </server> </servers>