The document summarizes steps taken to generate a war file:
1. The Angular compilation was copied to the webapp folder.
2. The application.yml was modified to active: prod.
3. Maven Build was run on the autorizacion-investigacion-web project but it failed because a dependency could not be resolved from the Maven repository.
The document also includes code to upload a file to a SMB share using Java.
The document summarizes steps taken to generate a war file:
1. The Angular compilation was copied to the webapp folder.
2. The application.yml was modified to active: prod.
3. Maven Build was run on the autorizacion-investigacion-web project but it failed because a dependency could not be resolved from the Maven repository.
The document also includes code to upload a file to a SMB share using Java.
The document summarizes steps taken to generate a war file:
1. The Angular compilation was copied to the webapp folder.
2. The application.yml was modified to active: prod.
3. Maven Build was run on the autorizacion-investigacion-web project but it failed because a dependency could not be resolved from the Maven repository.
The document also includes code to upload a file to a SMB share using Java.
The document summarizes steps taken to generate a war file:
1. The Angular compilation was copied to the webapp folder.
2. The application.yml was modified to active: prod.
3. Maven Build was run on the autorizacion-investigacion-web project but it failed because a dependency could not be resolved from the Maven repository.
The document also includes code to upload a file to a SMB share using Java.
Buenas tardes, estabamos tratando con Micky de generar un war.
Los paso que seguímos son los siguientes:
1.- copiamos el compilado angular en la carpeta webapp
2.- modificaciomos el application.yml a active: prod 3.- Run Ass a la autorizacion-investigacion-web / Maven Build
Failed to execute goal on project autorizacion-investigacion-web: Could not resolve
dependencies for project pe.gob.serfor.dgspf.autorizacion.investigacion:autorizacion-investigacion- web:war:1.0.0: pe.gob.serfor.dgspf.autorizacion.investigacion:autorizacion-investigacion- service:jar:1.0.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced
final FileInputStream fileInputStream = new FileInputStream(new
File("C://investigacion-upload-temp/ejemplo_esp.pdf")); final NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("","10.6.0.212\\oti41", "M1g.c@B2021"); final SmbFile sFile = new SmbFile("smb://10.6.0.212//Data_SAFIFF//ejemplo_esp.pdf", auth); final SmbFileOutputStream smbFileOutputStream = new SmbFileOutputStream(sFile);
final byte[] buf = new byte[16 * 1024 * 1024];
int len; while ((len = fileInputStream.read(buf)) > 0) { smbFileOutputStream.write(buf, 0, len); } fileInputStream.close(); smbFileOutputStream.close();