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

if modules not extends parent module can't update version #200

Closed
RouGang opened this issue Aug 23, 2017 · 6 comments
Closed

if modules not extends parent module can't update version #200

RouGang opened this issue Aug 23, 2017 · 6 comments
Labels

Comments

@RouGang
Copy link

RouGang commented Aug 23, 2017

parent pom.xml

<parent>
    <groupId>com.huinong.truffle</groupId>
    <artifactId>hn-framework-parent</artifactId>
    <version>2.3.1-SNAPSHOT</version>
    <relativePath>../hn-framework-parent</relativePath>
  </parent>
  <artifactId>hn-framework-starters</artifactId>

  <name>hn-framework-starters</name>
  <description>hn-framework-starters</description>
  <packaging>pom</packaging>

  <properties>
    <main.basedir>${basedir}/..</main.basedir>
  </properties>

<modelVersion>4.0.0</modelVersion>
  <groupId>com.huinong.truffle</groupId>
  <artifactId>hn-framework-build</artifactId>
  <packaging>pom</packaging>
  <version>2.3.1-SNAPSHOT</version>
  <name>hn-framework-build</name>
  <description>hn-framework-build</description>
  <url>http://maven.apache.org</url>

  <properties>
    <main.basedir>${basedir}</main.basedir>
    <nexus.url>http://10.10.1.42:8081</nexus.url>
  </properties>
  <profiles>
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <modules>
        <module>hn-framework-autoconfigure</module>
        <module>hn-framework-dependencies</module>
        <module>hn-framework-starters</module>
        <module>hn-framework-parent</module>
      </modules>
    </profile>

hn-framework-dependencies pom.xml

 <modelVersion>4.0.0</modelVersion>
  <artifactId>hn-framework-dependencies</artifactId>
  <groupId>com.huinong.truffle</groupId>
  <packaging>pom</packaging>
  <version>2.3.1-SNAPSHOT</version>
  <name>hn-framework-dependencies</name>
  <url>http://maven.apache.org</url>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <spring.boot.version>1.5.6.RELEASE</spring.boot.version>
    <spring.cloud.version>Dalston.SR2</spring.cloud.version>
  </properties>
@dmitrytokarev
Copy link

Could be related to #201 ?

@khmarbaise
Copy link
Member

khmarbaise commented Aug 26, 2017

First never use a profile to add/remove modules....apart from that do you have this project somewhere online (github?) or can you make a full working example of that? This looks like more like #198

@olamy
Copy link
Member

olamy commented Aug 28, 2017

@dmitrytokarev can you try current 2.5-SNAPSHOT?

@olamy
Copy link
Member

olamy commented Aug 28, 2017

@khmarbaise why not using profiles to add/remove modules? a lot of projects use that :-) or you mean having as default activated?

@dmitrytokarev
Copy link

@olamy seems that version is not available for automatic download from central

@khmarbaise
Copy link
Member

Hi,
it's now available from here: https://oss.sonatype.org/content/repositories/snapshots/org/codehaus/mojo/versions-maven-plugin/
BTW: Central will only have releases no SNAPSHOT's.
Kind regards
Karl Heinz Marbaise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants