That's a good point regarding publishLocal to test schemas with a snapshot. There are ways to get sbt to look at ~/.m2/ but it easier to just publishLocal rather than remembering the the sbt magic.
Regarding the "standard schema project layout", a description of that is found here: https://daffodil.apache.org/dfdl-layout/ You can also run the following: sbt new stevedlawrence/dfdl-project-layout.g8 That will prompt for a few questions about your data format and use a template on github to create a skeleton of the the standard layout so you can use "sbt test" for testing schemas and "sbt package" to generate a jar containing your schemas. - Steve On 08/09/2018 11:21 AM, Mike Beckerle wrote: > You may also want to issue the > > > sbt publishLocal > > > command, which populates the ~/.ivy2 cache (used by sbt itself) with a local > copy of the snapshot. > > > If you use the standard schema project layout, then this lets you type > > > sbt test > > > in your schema directory and it will run any test defined in that schema's > src/test/scala or src/test/java directory. > > > Do demonstrate this, I have pushed a branch named for-daffodil-2.2.0 to the > DFDLSchemas repository on github. So if you clone the CSV schemas with git: > > > cd schemas # to where you keep your schema projects > > git clone [email protected]:DFDLSchemas/CSV.git > > cd CSV > > git checkout for-daffodil-2.2.0 # branch has build.sbt setup for daffodil > 2.2.0-SNAPSHOT > > sbt test > > > That will run the CSV tests against the snapshot you have locally. A good > check > that everything is working as expected. > > > There may be some sbt magic to tell sbt to look in the m2 cache maven uses as > well as the ivy cache. That would eliminate the sbt publishLocal step, but > I'm > not sure the magic incantation. > > > -mike beckerle > > Tresys > > > > -------------------------------------------------------------------------------- > *From:* Jim Welch <[email protected]> > *Sent:* Thursday, August 9, 2018 9:18:37 AM > *To:* [email protected] > *Subject:* Re: 2.2.0-snapshot > > Thanks, I am also considering updating flowervase to the current Daffodil, >
