17
Práctica 1

Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Práctica 1

Page 2: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 3: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Aplicación creada con arquetipo

Page 4: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Configuración:The m2eclipse plugin doesn't use Eclipse defaults, the m2eclipse pluginderives the settings from the POM. So if you want a Maven project to be configured to use Java 1.6 settingswhen imported under Eclipse, configure the maven-compiler-plugin appropriately, as I alreadysuggested:

<plugin><groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version><configuration> <source>1.6</source><target>1.6</target> </configuration></plugin>

Page 5: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 6: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Alt+F5

Page 7: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Index.jsp

Page 8: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

web.xml

Page 9: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Ejecutar aplicación en el servidor

Alt+Shift+X,R

Page 10: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Agregar Spring

Page 11: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Group Id Artifact Id Version Scope

junit junit 4.12 test

org.springframework spring-core ${org.springframework.version} compile

org.springframework spring-webmvc

${org.springframework.version} compile

javax.servlet servlet-api 2.5 provided

Page 12: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 13: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 14: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 15: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal
Page 16: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Tests

Page 17: Práctica 1 · 1.1 I .0-aIpha-4 Configure... Add Archetype... Cancel An archetype which contains a sample Maven Webapp project. [Z] Show the last version of Archetype only ... Pivotal

Crear la vista