Maven – Elegir tipo de empaquetado
Si se quiere generar un war se añade en el pom.xml:
<packaging>war</packaging>
Si se quiere generar un war se añade en el pom.xml:
<packaging>war</packaging>
Al copiar un texto que contenga varias líneas con tabuladores en vi, se descuadrarán. Para evitarlo, antes de pegar ejecutar :set paste Y después ejecutar :set nopaste
find . -name "*.jar" |xargs grep -il NombreClase
Se hace desde Window -> Preferences
Para arrancar automáticamente un contenedor cuando se inicie Docker (cuando se encienda el sistema): docker update –restart=always <contenedor>
find -type f -exec grep -l "texto_busqueda" {} + y si queremos que la búsqueda sea exacta (por palabras) find -type f -exec grep -lw "texto_busqueda" {} +
Usar una estructura de proyecto estándar src ├── main │ ├── java Application/Library sources │ ├── resources Application/Library resources │ ├── filters Resource filter files │ └── webapp Web application sources │ └── test ├── java Test sources ├── resources Test resources └── filters …