This is the right way and I think it would make a good addition to the wiki if you are interested in adding it. Perhaps it would be a nice enhancement if the web plugin supported something like:
publishArtifact in packageWar := true
-Mark
> Thanks!
> dave
> <><
>
This is very likely not under sbt's control. I believe Artifactory will take an artifact published as 0.0.1-SNAPSHOT and produce artifacts with the standard Maven snapshot behavior like you see. The final -N is determined from existing artifacts. In this case, I would guess that you had a -1.war but not a -1.pom. If you clean your snapshots (starting from scratch), I think you will get consistent numbers.
-Mark
> dave
> <><
>
> On Aug 11, 5:53 am, Mark Harrah <dmhar...@gmail.com> wrote:
> > On Wed, 10 Aug 2011 07:13:45 -0700 (PDT)
> > dave <leedm...@yahoo.com> wrote:
> > > Thanks. I've updated the wiki. But I'm having a problem publishing
> > > snapshots to a Maven-style Artifactory repository. I'm not sure if
> > > it's a bug with SBT or Artifactory, though.
> >
> > > I have the Artifactory repo configured to use time-based version
> > > numbers for the name of SNAPSHOTs (Maven Snapshot Version Behavior ==
> > > Unique).
> >
> > > In my build.sbt file, I have publishMavenStyle := true.
> >
> > > When the artifacts are deployed, the .pom, -javadoc.jar and -
> > > sources.jar are all deployed properly (with a name something like
> > > artifactId-0.0.1-20110810.135923-2.pom ). But the .war is deployed
> > > with a different version number (in this case, it was
> > > artifactId-0.0.1-20110810.135923-3.war).
> >
> > > Any thoughts on what the problem could be?
> >
> > This is very likely not under sbt's control. I believe Artifactory will take an artifact published as 0.0.1-SNAPSHOT and produce artifacts with the standard Maven snapshot behavior like you see. The final -N is determined from existing artifacts. In this case, I would guess that you had a -1.war but not a -1.pom. If you clean your snapshots (starting from scratch), I think you will get consistent numbers.
>
> Cleaning snapshots didn't help :-(
To clarify, I meant cleaning them on the repository, not locally.
Assuming that is what you did, this means that you have a -2.pom and a -3.war, but no -2.war?
-Mark
Call the settings method to convert a SettingsDefinition to a
Seq[Setting[_]]. I've updated the Artifacts page with this
information:
https://github.com/harrah/xsbt/wiki/Artifacts/
-Mark
> --
> You received this message because you are subscribed to the Google Groups
> "simple-build-tool" group.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-build-t...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-build-tool?hl=en.
>
>