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

Upload snapshots to public repo. #58

Closed
petromir opened this issue Nov 8, 2016 · 6 comments
Closed

Upload snapshots to public repo. #58

petromir opened this issue Nov 8, 2016 · 6 comments

Comments

@petromir
Copy link

petromir commented Nov 8, 2016

I would like to use the latest shapshots of JMapper in our projects, so I don't have to wait for full completion of some milestone (1.6.1.CR2) in order to use alredy fixed issues like #56.
I'm aware that snapshot is not a stable version, but at least I will have an option to use what has been done so far immediately.
You can take Spring approach as an example.

@avurro
Copy link
Member

avurro commented Nov 8, 2016

ok @petromir, tonight i will release the snapshot that you need 👍
In the meantime you are using the jar with the change, as i have advised you?

@petromir
Copy link
Author

petromir commented Nov 8, 2016

Local jar has some drawbacks when you work in a team of several developers or using a CI tool.
I don't mind to wait for a shapshot repository that you will provide. Thanks!

@avurro
Copy link
Member

avurro commented Nov 8, 2016

1.6.2-SNAPSHOT released!

<dependency>
  <groupId>com.googlecode.jmapper-framework</groupId>
  <artifactId>jmapper-core</artifactId>
  <version>1.6.2-SNAPSHOT</version>
</dependency>

good work! 👍

@petromir
Copy link
Author

petromir commented Nov 9, 2016

Great! Unfortunately I still don't see it in Maven Central.

@avurro
Copy link
Member

avurro commented Nov 9, 2016

you must add the repository in settings.xml:

<profiles>
  <profile>
     <id>allow-snapshots</id>
        <activation><activeByDefault>true</activeByDefault></activation>
     <repositories>
       <repository>
         <id>snapshots-repo</id>
         <url>https://oss.sonatype.org/content/repositories/snapshots</url>
         <releases><enabled>false</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
       </repository>
     </repositories>
   </profile>
</profiles>

@petromir
Copy link
Author

petromir commented Nov 10, 2016

Thanks! I'm using Gradle (unfortunately) and I had to do the following:

repositories {
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots"
    }
}

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

No branches or pull requests

2 participants