Update home authored by Bruno Rosell i Gui's avatar Bruno Rosell i Gui
# WeNet - Common # WeNet - Common
Common components used by the different UDT-IA, IIIA-CSIC components developed Common components used by the different UDT-IA, IIIA-CSIC components developed for the project WeNet.
for the project WeNet.
## Deployment to IIIA gitlab ## Deployment to IIIA gitlab
To deploy on the gitlab follow the next steps: 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 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/) * 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** * Expand the deploy token and create a new one with **read_package_registry** and **write_package_registry**.
and **write_package_registry**. * In your host create the file if not exist **$HOME/.m2/settings.xml**.
* 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.
* And add the next lines to it, replacing **DEPLOY_PASSWORD** by the provided
by the created deploy token. ```xml
<settings>
```xml <servers>
<settings> <server>
<servers> <id>gitlab-wenet-common</id>
<server> <configuration>
<id>gitlab-wenet-common</id> <httpHeaders>
<configuration> <property>
<httpHeaders> <name>Deploy-Token</name>
<property> <value>DEPLOY_PASSWORD</value>
<name>Deploy-Token</name> </property>
<value>DEPLOY_PASSWORD</value> </httpHeaders>
</property> </configuration>
</httpHeaders> </server>
</configuration> </servers>
</server> <profiles>
</servers> <profile>
<profiles> <id>gitlab-wenet-common</id>
<profile> <repositories>
<id>gitlab-wenet-common</id> <repository>
<repositories> <id>gitlab-wenet-common</id>
<repository> <url>https://gitlab.iiia.csic.es/api/v4/groups/internetofus/-/packages/maven</url>
<id>gitlab-maven</id> </repository>
<url>https://gitlab.iiia.csic.es/api/v4/groups/internetofus/-/packages/maven</url> </repositories>
</repository> <properties>
</repositories> <altSnapshotDeploymentRepository>gitlab-wenet-common::default::https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven</altSnapshotDeploymentRepository>
<properties> <altReleaseDeploymentRepository>gitlab-wenet-common::default::https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven</altReleaseDeploymentRepository>
<altSnapshotDeploymentRepository> </properties>
snapshots::default::https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven
</altSnapshotDeploymentRepository>
<altReleaseDeploymentRepository>
releases::default::https://gitlab.iiia.csic.es/api/v4/projects/443/packages/maven
</altReleaseDeploymentRepository>
</properties>
</profile> </profile>
</profiles> </profiles>
</settings> </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). 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).
\ No newline at end of file