|
|
# WeNet - Common
|
|
|
|
|
|
Common components used by the different UDT-IA, IIIA-CSIC components developed
|
|
|
for the project WeNet.
|
|
|
|
|
|
## Deployment to IIIA gitlab
|
|
|
|
|
|
To deploy on the gitlab follow the next steps:
|
|
|
|
|
|
* Go to gitlab inside the [Wenet Group](https://gitlab.iiia.csic.es/groups/internetofus/)
|
|
|
* Go to [Settings->Repository setting](https://gitlab.iiia.csic.es/groups/internetofus/-/settings/repository/)
|
|
|
* Expand the deploy token and create a new one with **read_package_registry**
|
|
|
and **write_package_registry**.
|
|
|
* In your host create the file if not exist **$HOME/.m2/settings.xml**.
|
|
|
* And add the next lines to it, replacing **DEPLOY_PASSWORD** by the provided
|
|
|
by the created deploy token.
|
|
|
|
|
|
```xml
|
|
|
<settings>
|
|
|
<servers>
|
|
|
<server>
|
|
|
<id>gitlab-wenet-common</id>
|
|
|
<configuration>
|
|
|
<httpHeaders>
|
|
|
<property>
|
|
|
<name>Deploy-Token</name>
|
|
|
<value>DEPLOY_PASSWORD</value>
|
|
|
</property>
|
|
|
</httpHeaders>
|
|
|
</configuration>
|
|
|
</server>
|
|
|
</servers>
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<id>gitlab-wenet-common</id>
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>gitlab-maven</id>
|
|
|
<url>https://gitlab.iiia.csic.es/api/v4/groups/internetofus/-/packages/maven</url>
|
|
|
</repository>
|
|
|
</repositories>
|
|
|
<distributionManagement>
|
|
|
<repository>
|
|
|
<id>gitlab-maven</id>
|
|
|
<url>https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven</url>
|
|
|
</repository>
|
|
|
<snapshotRepository>
|
|
|
<id>gitlab-maven-snapshots</id>
|
|
|
<url>https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven</url>
|
|
|
</snapshotRepository>
|
|
|
</distributionManagement>
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
</settings>
|
|
|
```
|
|
|
|
|
|
You can read more of how to do it at the [gitlab documentation](https://docs.gitlab.com/ee/user/packages/maven_repository/#authenticate-to-the-package-registry-with-maven). |