maven - m2e or eclipse ignoring given timestamped snapshot version number of dependencies -


before this: yes, know shouldn't using snapshot dependencies in production code , yes, know shouldn't referencing specific timestamped snapshot versions.

that said, need to. we're using framework still in development , needed use snapshot version our product working. however, working on framework in active development , changing daily. given need snapshot version @ time period not want of new changes, we've specified specific timestamped snapshot in our pom dependencies. works fine when execute maven console:

  1. delete maven repository (~/.m2/repository)
  2. execute maven clean install via command line
  3. observe proper timestamp versions being dowloaded maven repository

however, when open eclipse, during project update, decides ignore version number , go ahead , download latest snapshot version. causing many problems , wondering how can eclipse (m2e) honer timestamped version number have provided.

thank you.

edit: forgot mention have searched internet answer not finding viable answers.

edit: in addition, want avoid hacks. want m2e honor timestamp version numbers. download specific version number jar myself , install on our nexus repository different artifact , reference via that, feel kludge , m2e should honor specific version numbers.

edit: here snippet of pom file requested. cannot show whole thing.

...snip... <!-- spring - locked --> <spring-framework-data.spring-data-rest-webmvc.version>2.0.0.build-20140120.130629-28</spring-framework-data.spring-data-rest-webmvc.version> <spring-framework-hateoas.spring-hateoas.version>0.9.0.build-20140122.165601-20</spring-framework-hateoas.spring-hateoas.version> <spring-framework-data.spring-data-rest-core.version>2.0.0.build-20140120.130629-28</spring-framework-data.spring-data-rest-core.version> <spring-framework-data.spring-data-commons.version>1.7.0.build-20140122.170219-75</spring-framework-data.spring-data-commons.version> ...snip... <dependency>     <groupid>org.springframework.data</groupid>     <artifactid>spring-data-rest-webmvc</artifactid>     <version>${spring-framework-data.spring-data-rest-webmvc.version}</version>     <exclusions>         <exclusion>             <groupid>org.springframework.data</groupid>             <artifactid>spring-data-rest-core</artifactid>         </exclusion>     </exclusions> </dependency> <dependency>     <groupid>org.springframework.data</groupid>     <artifactid>spring-data-rest-core</artifactid>     <version>${spring-framework-data.spring-data-rest-core.version}</version>     <exclusions>         <exclusion>             <groupid>org.springframework.data</groupid>             <artifactid>spring-data-commons</artifactid>         </exclusion>         <exclusion>             <groupid>org.springframework.hateoas</groupid>             <artifactid>spring-hateoas</artifactid>         </exclusion>     </exclusions> </dependency> <dependency>     <groupid>org.springframework.hateoas</groupid>     <artifactid>spring-hateoas</artifactid>     <version>${spring-framework-hateoas.spring-hateoas.version}</version> </dependency> <dependency>     <groupid>org.springframework.data</groupid>     <artifactid>spring-data-commons</artifactid>     <version>${spring-framework-data.spring-data-commons.version}</version> </dependency> ...snip... 


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -