On 6/14/06, Aleksei Valikov <valikov_at_gmx.net> wrote:
> Hi.
>
> > I'm using maven 2, and i have contributed the jaxb1 plugin for maven2,
> > submitted as a jira issue in mojo.codehaus.org.
>
> Where could I find it?
You can find my 'jaxb1-maven-plugin' here:
http://jira.codehaus.org/browse/MOJO-374
>
> > Im' planning to use hyperjaxb2 (a java.net project), and i want to
> > create a maven2 plugin for it (it would be probably an extension of
> > jaxb1 plugin) that when used in combination of hibernate2 maven
> > plugin, to get the equivalent of using the ant hyperjaxb2 tasks.
>
> I'm working on the same task right now.
Great!
I'll be glad to help as much as i can.
>
> > I know that what i have said so far does not seem very coherent but
> > here is the problem i'm facing:
> >
> > In order to make a maven2 plugin, their dependencies have to exist in
> > some repositories (preferably in www.ibiblio.org).
> >
> > For the JAXB1 plugin, i didn't upload the dependencies into ibiblio
> > for it was too vague what should the groupIds/artifactIds be (i
> > suggested to anyone interested, to setup its own repository and upload
> > there the dependencies). That is the reason why the jaxb1 maven2
> > plugin is not yet accepted by the mojo.codehaus.org.
>
> These dependencies exist in the dev.java.net maven repository:
>
> <repositories>
> <repository>
> <id>maven-repository.dev.java.net</id>
> <url>https://maven-repository.dev.java.net/nonav/repository/</url>
> <layout>legacy</layout>
> </repository>
> </repositories>
>
> I guess you better leave them there.
> The only missing resource right now is xsdlib. For now, you'll have to install
> it manually (I think Kohsuke will post it soon).
> Dependencies are:
>
> <dependency>
> <groupId>javax.xml.bind</groupId>
> <artifactId>jaxb-api</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-impl</artifactId>
> <version>1.0.6</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-libs</artifactId>
> <version>1.0.6</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml.bind</groupId>
> <artifactId>jaxb-xjc</artifactId>
> <version>1.0.6</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml</groupId>
> <artifactId>relaxngDatatype</artifactId>
> <version>1.0</version>
> </dependency>
> <dependency>
> <groupId>com.sun.xml</groupId>
> <artifactId>xsdlib</artifactId>
> <version>20050614</version>
> </dependency>
>
For not having to go through the JIRA issue i mentioned above
(although you should do it for learning my history :-)), here are the
dependencies of my jaxb1 plugin:
=============================================
<dependencies>
−
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
<version>2.0</version>
</dependency>
−
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
−
<dependency>
<groupId>geronimo-spec</groupId>
<artifactId>geronimo-spec-activation</artifactId>
<version>1.0.2-rc4</version>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-api</artifactId>
<version>\1.0.6</version>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-libs</artifactId>
<version>1.0.6</version>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-impl</artifactId>
<version>1.0.6</version>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-xjc</artifactId>
<version>1.0.6</version>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>relaxngDatatype</artifactId>
<version>1.0</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxp-api</artifactId>
<version>1.2.5</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>xsdlib</artifactId>
<version>1.2.2</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>namespace</artifactId>
<version>1.0.1</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jax-qname</artifactId>
<version>1.1</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>org.w3c</groupId>
<artifactId>dom</artifactId>
<version>2.3.0</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>sax</groupId>
<artifactId>sax</artifactId>
<version>2.3.0</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.6.0</version>
<scope>runtime</scope>
</dependency>
−
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.3</version>
<scope>runtime</scope>
</dependency>
</dependencies>
=============================================
> > I would have the same problem when making the Hyperjaxb2 plugin.
>
> I'm currently busy moving jaxbcommons and hyperjaxb2 onto maven.
>
> I would suggest making a new jaxb1 maven2 plugin project on dev.java.net.
The first thing to do is to decide a proper name. I had decided to
use exactly like the one you used (jaxb1-maven2-plugin) but
mojo.housemates persuade me to drop the '2' from the 'maven2' part.
Anyway, considering the existent confusion regarding maven1/2, and
that it is a different project, i believe that the
'jaxb1-maven2-plugin' is the right name to use.
I will update my JIRA issue pointing to your plugin. Also, notice that
my code had undergone some changes, by Anders Kr. Andersen who wished
to generate sources outside the 'target' dir, and eventually ended up
re-inventing the...clean-plugin. Although he has a point, i'm not so
much of including this functionality in the plugin... (i'm sorry
Anders, can't you use the ant-run plugin instead ?).
>
> I hope you have seen:
> https://maven-repository.dev.java.net/
> And:
> https://maven-repository.dev.java.net/repository/
Of course. I posted my emails under their mailing-list
'users_at_maven-repository.dev.java.net' too.
I have also posted them in the 'dev_at_hyperjaxb2.dev.java.net'.
I think you should make an announcement about the new
jaxb1-maven2-plugin project
under at least those lists.
>
> > What should i do?
> > --------------------------
> >
> > And by that question, i mean:
> >
> > 1). Should i pursue to embed these maven plugins into java.net
> > (since the underlying libs already belong to this site) ?
> >
> > 2.a) If the answer to (1) is yes, is there some kind of a maven2
> > framework that has to be setup first?
> >
> > 2.b) If the answer to (1) is no, that means that i should go on
> > with uploading all required libs/plugins to ibiblio. In that case, am
> > i expecting some help or cooperation from java.net? Should other
> > projects be notified to re-use the uploaded to ibiblio libs ?
> >
> > 3) For now, the possibility to upload the JAXB1 libs into the
> > java.net maven repository whould be great (but this brings up the
> > issue of java.net supporting maven2 repositories).
> > Is this possible/desirable ?
> >
> > 4) To whom or what other mailing lists should i ALSO address my
> > questions.
>
> I guess that's all is answered above.
>
> My suggestion:
>
> 1. Create a new jaxb1-maven2-plugin project on dev.java.net.
> 2. Use dev.java.net repository and dependencies I posted above.
> 3. Wait for Kohsuke to post the xsdlib, manually add the jar to the local repo
> for the moment.
>
> I've just created jaxb1-maven2-plugin project. Please apply for the developer
> role and post your code there:
> https://jaxb1-maven2-plugin.dev.java.net/
What about the hyperjaxb2 plugin ???
>
> Later on we'll be able to use dev.java.net maven automatismus to post the plugin
> into the repo automatically.
If i'm not mistaken, this automatism is for maven1, right ?
We probably need to make a new one for maven2, see this:
https://maven-repository.dev.java.net/servlets/ReadMsg?list=users&msgNo=2
>
> Bye.
> /lexi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: dev-help_at_jaxb.dev.java.net
>
>
Greetings from Greece,
looking forward to work together Aleksei,
Kostis