Browse Source

Changes to applications poms:

* Suport maven-exec-plugin in the same way as the shade plugin, so
        $ mvn exec:java
    is all you need to do to run an app
* Update README
* Fix dependencies to nail Spring version
pull/1/head
Dave Syer 13 years ago
parent
commit
380b1748c9
  1. 5
      pom.xml
  2. 27
      spring-bootstrap-applications/pom.xml
  3. 21
      spring-bootstrap-applications/spring-bootstrap-application/pom.xml
  4. 2
      spring-bootstrap-service/README.md

5
pom.xml

@ -320,6 +320,11 @@ @@ -320,6 +320,11 @@
<artifactId>spring-aop</artifactId>
<version>${dependency.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${dependency.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>

27
spring-bootstrap-applications/pom.xml

@ -37,9 +37,29 @@ @@ -37,9 +37,29 @@
<artifactId>spring-bootstrap-web-application</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-jpa-application</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-batch-application</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.bootstrap</groupId>
<artifactId>spring-bootstrap-integration-application</artifactId>
<version>${spring.bootstrap.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@ -59,6 +79,13 @@ @@ -59,6 +79,13 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>${start-class}</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>

21
spring-bootstrap-applications/spring-bootstrap-application/pom.xml

@ -19,6 +19,27 @@ @@ -19,6 +19,27 @@
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>

2
spring-bootstrap-service/README.md

@ -159,7 +159,7 @@ which are more convenient at development time. Here are a few: @@ -159,7 +159,7 @@ which are more convenient at development time. Here are a few:
1. Use the Maven exec plugin, e.g.
$ mvn exec:java -Dexec.mainClass=com.mycompany.sample.SampleController
$ mvn exec:java
2. Run directly in your IDE, e.g. Eclipse or IDEA let you right click
on a class and run it.

Loading…
Cancel
Save