Ejemplo de Formato Aprendizaje

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

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();

You might also like