Hi Gary,
> 1. Is com.sun.xml.bind:jaxb what I want for an archetype?
I cannot comment on whether a good archetype for JAXB exists, since I
personally have not used it. But perhaps this plugin is all you need:
http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.2/index.html
I also found this nice blog post which might be close to what you want:
http://memoverkill.com/2013/09/02/jaxb-maven-xml/
> 2. What's wrong with the above mvn command to generate the project?
The artifact com.sun.xml.bind:jaxb is not a Maven archetype—just a regular
dependency of type JAR.
> 3. Pointers to how to convert a custom ant task into a maven goal?
You can use the maven-antrun-plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/
Regards,
Curtis
--
Curtis Rueden
LOCI software architect - http://loci.wisc.edu/software
ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
On Mon, Jan 16, 2017 at 6:02 PM, Gary Aitken <[email protected]> wrote:
> Trying to convert an old project from using ant to maven; having
> issues getting off the ground. I've gone through the sonatype
> maven-by-example but am pretty confused.
>
> Starting with just a piece which will be its own project.
> I want to generate a project which uses jaxb during the compile/build
> phase; in ant I had to make my own ant task for one step.
>
> Searching the central repository to find a jaxb archetype, I am
> guessing com.sun.xml.bind:jaxb should work.
>
> I tried to get a simple jaxb project laid out using
>
> mvn archetype:generate -DarchetypeGroupId=com.sun.xml.bind
> -DarchetypeArtifactId=jaxb
>
> The generator came back with the full list of 1750 archetypes,
> so I filtered using com.sun:
> and got a short list with no com.sun.xml archetypes.
> Obviously I'm doing something wrong here?
>
> Questions:
>
> 1. Is com.sun.xml.bind:jaxb what I want for an archetype?
> 2. What's wrong with the above mvn command to generate the project?
> 3. Pointers to how to convert a custom ant task into a maven goal?
>
> Thanks for any and all clues,
>
> Gary
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>