This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package bitacora; | |
| import bitacora.subnivel.Control; | |
| import bitacora.subnivel.Utilidades; | |
| import bitacora.subnivel.under.InternalSys; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.io.StringWriter; | |
| import java.util.logging.ConsoleHandler; | |
| import java.util.logging.FileHandler; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package ejemploexcel; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import org.apache.poi.hssf.usermodel.HSSFCellStyle; | |
| import org.apache.poi.hssf.usermodel.HSSFSheet; | |
| import org.apache.poi.hssf.usermodel.HSSFWorkbook; | |
| import org.apache.poi.ss.usermodel.Cell; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package bitacora.subnivel; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| public class Control { | |
| private final static Logger LOGGER = Logger.getLogger("bitacora.subnivel.Control"); | |
| public void controlar(){ | |
| LOGGER.log(Level.INFO, "Proceso exitoso"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package bitacora.subnivel; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| public class Utilidades { | |
| private final static Logger LOGGER = Logger.getLogger("bitacora.subnivel.Utilidades"); | |
| public void funcionDudosa(){ | |
| LOGGER.log(Level.SEVERE, "ERROR MASIVO"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package bitacora.subnivel.under; | |
| import java.util.logging.Level; | |
| import java.util.logging.Logger; | |
| public class InternalSys { | |
| private final static Logger LOGGER = Logger.getLogger("bitacora.subnivel.under.InternalSys"); | |
| public void llamadaSistema(){ | |
| LOGGER.log(Level.WARNING, "Ocurrio un error de acceso en 0xFF"); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Three ways to create an executable and fat JAR with Maven : | |
| maven-jar-plugin (it doesn't add dependencies inside the final JAR, they have to be in the classpath) | |
| Don't forget it goes between the build and plugins tags. | |
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | mvn archetype:generate -DgroupId=mx.hashCode.test -DartifactId=MavenCommand -DinteractiveMode=false | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <dependencies> | |
| <dependency> | |
| <groupId>idGrupo</groupId> | |
| <artifactId>IdArtefacto</artifactId> | |
| <version>verLibreria</version> | |
| </dependency> | |
| </dependencies> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <plugins> | |
| <plugin> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>3.0.0</version> | |
| <configuration> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| <archive> | |
| <manifest> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>mx.hashSoft</groupId> | |
| <artifactId>iText7</artifactId> | |
| <version>1.0</version> | |
| <packaging>jar</packaging> | |
| <dependencies> | |
| <dependency> | |
| <groupId>com.itextpdf</groupId> | 
OlderNewer