Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put version number on index.xml #4

Closed
wants to merge 1 commit into from
Closed

Conversation

hazendaz
Copy link
Member

While not the best solution in the world, used maven antrun to replace
version number token on index.xml therefore having site generate with
current version number for dependency.

Also, fixed redirect for maven pom xsd.

Site page index.html will then show this...

... org.mybatis.caches mybatis-ehcache 1.0.4-SNAPSHOT ...

While not the best solution in the world, used maven antrun to replace
version number token on index.xml therefore having site generate with
current version number for dependency.
@emacarron emacarron closed this in 63753bc Mar 28, 2014
@emacarron
Copy link
Member

Hi Jeremy. Thanks for the contribution.

Note that is a simpler way to put variables in the xml file. Just rename it to index.xml.vm and add will make the site plugin to run velocity to generate the final xml.

<source><![CDATA[<dependencies>
  ...
  <dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>${project.artifactId}</artifactId>
    <version>${project.version}</version>
  </dependency>
  ...
</dependencies>]]></source>

@hazendaz
Copy link
Member Author

Awesome! I was looking at that but wasn't completely sure how to pull it off. This will be useful for my day job. Thanks for your input.

--- Original Message ---

From: "Eduardo Macarron" notifications@github.com
Sent: March 28, 2014 1:14 PM
To: "mybatis/ehcache-cache" ehcache-cache@noreply.github.com
Cc: "Jeremy Landis" jeremylandis@hotmail.com
Subject: Re: [ehcache-cache] Put version number on index.xml (#4)

Hi Jeremy. Thanks for the contribution.

Note that is a simpler way to put variables in the xml file. Just rename it to index.xml.vm and add will make the site plugin to run velocity to generate the final xml.

<source><![CDATA[<dependencies>
  ...
  <dependency>
    <groupId>${project.groupId}</groupId>
    <artifactId>${project.artifactId}</artifactId>
    <version>${project.version}</version>
  </dependency>
  ...
</dependencies>]]></source>

Reply to this email directly or view it on GitHub:
#4 (comment)

hazendaz referenced this pull request in hazendaz/ehcache-cache Mar 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants