Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 35209 invoked from network); 12 Jun 2009 08:15:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Jun 2009 08:15:04 -0000 Received: (qmail 10134 invoked by uid 500); 12 Jun 2009 08:15:13 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 10020 invoked by uid 500); 12 Jun 2009 08:15:13 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 96267 invoked by uid 99); 12 Jun 2009 08:03:36 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <627B2648-2315-4C2A-A3E4-C7C36657C40A@dream-in-color.net> References: <61B6DB55-1813-4A9D-A436-02D7DB06AFFF@dream-in-color.net> <56b1dfc30906111055oefe9b45off04e678926d5b64@mail.gmail.com> <627B2648-2315-4C2A-A3E4-C7C36657C40A@dream-in-color.net> Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Samuli Ulmanen Subject: Re: Maven & JAXB Date: Fri, 12 Jun 2009 11:03:03 +0300 To: Maven Users List X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org In addition, specify the exact version of the plugin you want to use. =20= Also, the repositories in your pom seem not to include the plugin =20 identified by the artifactId. I use the maven exec plugin to run xjc. Works like a charm. The =20 downside is that it makes your build dependent on xjc location, if it =20= is not on the PATH. On Jun 11, 2009, at 9:12 PM, Don Hosek wrote: > I'm getting: > > [INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb2-plugin' =20 > does not exist or > > And yes, I looked at the page (I've spent a bunch of time =20 > fruitlessly going through the google results of "maven jaxb"). > > -dh > > On 11 Jun 2009, at 10.55, Mick Knutson wrote: > >> What error do you get? >> >> --- >> Thank You=85 >> >> Mick Knutson, President >> >> BASE Logic, Inc. >> Enterprise Architecture, Design, Mentoring & Agile Consulting >> p. (866) BLiNC-411: (254-6241-1) >> f. (415) 685-4233 >> >> Website: http://baselogic.com >> Linked IN: http://linkedin.com/in/mickknutson >> Vacation Rental: http://tahoe.baselogic.com >> --- >> >> >> >> On Thu, Jun 11, 2009 at 1:46 PM, Don Hosek > color.net> wrote: >> >>> OK, I've been totally flummoxed by this. Does anyone have a =20 >>> working pom to >>> generate class files from a schema? This is what I'm using, but =20 >>> not having >>> any luck getting it to work. I suspect that I have an issue with my >>> repository declaration or somesuch. Any help would be greatly =20 >>> appreciated. >>> >>> -dh >>> >>> >> http://www.w3.org/2001/XMLSchema-instance" >>> xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 >>> http://maven.apache.org/maven-v4_0_0.xsd"> >>> 4.0.0 >>> TrueCar >>> curvedata >>> jar >>> 0.0.1-SNAPSHOT >>> curvedata >>> http://maven.apache.org >>> >>> >>> maven2-repository.dev.java.net >>> Java.net Maven 2 Repository >>> http://download.java.net/maven/2 >>> >>> >>> maven-repository.dev.java.net >>> Java.net Maven 1 Repository (legacy)>> name> >>> http://download.java.net/maven/1 >>> legacy >>> >>> >>> >>> >>> maven-repository.dev.java.net >>> Java.net Maven 2 Repository >>> http://download.java.net/maven/2 >>> >>> >>> >>> >>> >>> junit >>> junit >>> 3.8.1 >>> test >>> >>> >>> >>> >>> >>> jaxb >>> maven-jaxb2-plugin>> artifactId> >>> >>> >>> src/main/resources/schema >>> >>> *.xsd>> include> >>> >>> >>> com.truecar.curvedata.jaxb >>> >>> true >>> >>> >>> >>> >>> >>> generate >>> >>> >>> >>> >>> >>> true >>> org.apache.maven.plugins>> groupId> >>> >>> maven-compiler-plugin >>> >>> 1.6 >>> 1.6 >>> >>> >>> >>> >>> >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org