Polish maven samples to xml language
Set the language attribute on the maven <programlisting> elements in the reference documentation to xml.
This commit is contained in:
@@ -574,7 +574,7 @@ TR: OK. Added to diagram.--></para>
|
||||
configure an application, your Maven dependencies will look like
|
||||
this:</para>
|
||||
|
||||
<para><programlisting><dependencies>
|
||||
<para><programlisting language="xml"><dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
@@ -593,7 +593,7 @@ TR: OK. Added to diagram.--></para>
|
||||
developer snapshots), you need to specify the repository location in
|
||||
your Maven configuration. For full releases:</para>
|
||||
|
||||
<programlisting><repositories>
|
||||
<programlisting language="xml"><repositories>
|
||||
<repository>
|
||||
<id>com.springsource.repository.maven.release</id>
|
||||
<url>http://repo.springsource.org/release/</url>
|
||||
@@ -603,7 +603,7 @@ TR: OK. Added to diagram.--></para>
|
||||
|
||||
<para>For milestones:</para>
|
||||
|
||||
<programlisting><repositories>
|
||||
<programlisting language="xml"><repositories>
|
||||
<repository>
|
||||
<id>com.springsource.repository.maven.milestone</id>
|
||||
<url>http://repo.springsource.org/milestone/</url>
|
||||
@@ -613,7 +613,7 @@ TR: OK. Added to diagram.--></para>
|
||||
|
||||
<para>And for snapshots:</para>
|
||||
|
||||
<programlisting><repositories>
|
||||
<programlisting language="xml"><repositories>
|
||||
<repository>
|
||||
<id>com.springsource.repository.maven.snapshot</id>
|
||||
<url>http://repo.springsource.org/snapshot/</url>
|
||||
@@ -625,7 +625,7 @@ TR: OK. Added to diagram.--></para>
|
||||
naming convention for the dependencies. The names are usually easy to
|
||||
guess, e.g. in this case it is:</para>
|
||||
|
||||
<programlisting><dependencies>
|
||||
<programlisting language="xml"><dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>org.springframework.context</artifactId>
|
||||
@@ -637,7 +637,7 @@ TR: OK. Added to diagram.--></para>
|
||||
<para>You also need to declare the location of the repository
|
||||
explicitly (only the URL is important):</para>
|
||||
|
||||
<programlisting><repositories>
|
||||
<programlisting language="xml"><repositories>
|
||||
<repository>
|
||||
<id>com.springsource.repository.bundles.release</id>
|
||||
<url>http://repository.springsource.com/maven/bundles/release/</url>
|
||||
@@ -664,7 +664,7 @@ TR: OK. Added to diagram.--></para>
|
||||
following resolvers to your
|
||||
<filename>ivysettings.xml</filename>:</para>
|
||||
|
||||
<programlisting><resolvers>
|
||||
<programlisting language="xml"><resolvers>
|
||||
|
||||
<url name="com.springsource.repository.bundles.release">
|
||||
|
||||
@@ -696,7 +696,7 @@ TR: OK. Added to diagram.--></para>
|
||||
include in your dependencies section. For example (in
|
||||
<filename>ivy.xml</filename>): </para>
|
||||
|
||||
<programlisting><dependency org="org.springframework"
|
||||
<programlisting language="xml"><dependency org="org.springframework"
|
||||
name="org.springframework.core" rev="3.0.0.RELEASE" conf="compile->runtime"/></programlisting>
|
||||
</section>
|
||||
</section>
|
||||
@@ -755,7 +755,7 @@ TR: OK. Added to diagram.--></para>
|
||||
the dependency, and because of the way that the Spring dependencies
|
||||
are declared, you only have to do that once.</para>
|
||||
|
||||
<programlisting><dependencies>
|
||||
<programlisting language="xml"><dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
@@ -803,7 +803,7 @@ TR: OK. Added to diagram.--></para>
|
||||
the bridge, the SLF4J API, the binding to Log4J, and the Log4J
|
||||
implementation itself. In Maven you would do that like this</para>
|
||||
|
||||
<programlisting><dependencies>
|
||||
<programlisting language="xml"><dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
@@ -877,7 +877,7 @@ TR: OK. Added to diagram.--></para>
|
||||
of the classpath). So for Maven users this is your dependency
|
||||
declaration:</para>
|
||||
|
||||
<programlisting><dependencies>
|
||||
<programlisting language="xml"><dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user