users@jaxb.java.net

Re: Maven2 versus JAXB

From: Franz Fehringer <feh_at_isogmbh.de>
Date: Thu, 18 May 2006 08:34:32 +0200

Hello Jonathan,

Would id be possible to make the repository also accessible via http (in
addition to https)?
I sit behind a proxy and have difficulties accessing https sites with
Maven2 (http works perfect).
Also, why not reorganize the repository making <legacy> obsolete?

Best regards

Franz

Jonathan Johnson schrieb:
> Franz,
>
> Thank you for finding the dependency version and location problems in the
> recent JAXB Maven 2 plugin. The versions have all been updated and an
> updated plugin has been posted.
>
> The instructions for using the JAXB Maven 2 plugin are here
> http://jaxb.dev.java.net/jaxb-maven2-plugin/
>
> - Jonathan
>
> -----Original Message-----
> From: Franz Fehringer [mailto:feh_at_isogmbh.de]
> Sent: Wednesday, May 17, 2006 11:22 AM
> To: Maven Users List
> Cc: users_at_jaxb.dev.java.net
> Subject: Re: Maven2 versus JAXB
>
> Thanks.
> The 1.1 option has the slight problem that the referenced poms also
> still reference the 1.0.2 version, for example
> https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb-
> impl-2.0.pom
> has
> <dependency> <groupId>javax.xml.bind</groupId>
> <artifactId>activation</artifactId> <version>1.0.2</version> </dependency>
> But for the moment i am stuck with nonworking https proxy support (only
> http works for me; i wrote another mail about this).
>
> Greetings
>
> Franz
>
> Alexandre Poitras schrieb:
>
>> On 5/17/06, Franz Fehringer <feh_at_isogmbh.de> wrote:
>>
>>> Thanks,
>>>
>>> Now i get (legacy reenabled)
>>>
>>> D:\projekte\Maven2\iso-app>mvn -U install
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> -------------------------------------------------------------------------
>>>
> ---
>
>>> [INFO] Building Maven Quick Start Archetype
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> -------------------------------------------------------------------------
>>>
> ---
>
>>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
>>> checking for updates from central
>>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
>>> for updates from central
>>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking
>>> for updates from central
>>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for
>>> updates from central
>>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking
>>> for updates from central
>>> [INFO] artifact com.sun.tools.xjc.maven2:maven-jaxb-plugin: checking for
>>> updates from central
>>> Downloading:
>>>
>>>
> https://maven-repository.dev.java.net/nonav/repository/jaxb/poms/activation-
> 1.0.2.pom
>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Error building POM (may not be this project's POM).
>>> Same with mvn -U compile.
>>> There is no
>>>
>>>
> https://maven-repository.dev.java.net/nonav/repository/jaxb/poms/activation-
> 1.0.2.pom
>
>>> but
>>>
>>>
> https://maven-repository.dev.java.net/repository/javax.activation/poms/activ
> ation-1.1.pom
>
>>> So it seems the downloadable plugin does not match the directory
>>> structure anymore?!
>>>
>> Your problem is that before activation 1.1, the license forbidded to
>> deploy it in a global repository. See
>> http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
>> for more info.
>>
>> So basically, you have two choices, either change the plugin .pom file
>> to depend on the 1.1 release or install the 1.0.2 release manually in
>> your local repository. It should do the trick.
>>
>>
>>
>>
>>> Btw. i do not understand "run 'mvn install' on the plugin pom".
>>> The plugin contains no pom.xml and without it i cannot run mvn?
>>>
>>>
>> Ah forget it, I thought the plugin was coming with the source.
>>
>>
>>> Greetings
>>>
>>> Franz
>>>
>>> Alexandre Poitras schrieb:
>>>
>>>> Your answer is in the download section of your link :
>>>>
>>>> Download
>>>>
>>>> This plugin will be added to the Maven 2 ibiblio repository and also
>>>> to the java.net repository but we would like your feedback first. If
>>>> you have praises or problems with this plugin please post your email
>>>> by joining the mailing list for users_at_jaxb.dev.java.net by registering
>>>> here https://jaxb.dev.java.net/servlets/ProjectMailingListList.
>>>>
>>>> In the meantime you can download the lastest plugin version from this
>>>> link and expand the .zip contents into your local
>>>> %HOMEPATH%/.m2/repository directory.
>>>>
>>>> So download it and run 'mvn install' on the plugin pom. Should work
>>>> afterward.
>>>>
>>>> On 5/17/06, Franz Fehringer <feh_at_isogmbh.de> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I followed the instructions on
>>>>> https://jaxb.dev.java.net/jaxb-maven2-plugin/ without success.
>>>>> On mvn -U compile i get
>>>>> ERROR] BUILD ERROR
>>>>> INFO]
>>>>>
>>>>>
>>> ------------------------------------------------------------------------
>>>
>>>>> INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb-plugin' does
>>>>>
>>> not
>>>
>>>>> exist or no valid version could be found
>>>>> This is with Maven 2.0.4.
>>>>> There is neither com.sun.tools.xjc.maven2 nor maven-jaxb-plugin on
>>>>> https://maven-repository.dev.java.net/repository,
>>>>> but there are javax.xml.bind and maven-javanet-plugin.
>>>>> Could i use these in an appropriate way (how?)?
>>>>> My pom.xml is
>>>>>
>>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>>>> http://maven.apache.org/maven-v4_0_0.xsd">
>>>>> <modelVersion>4.0.0</modelVersion>
>>>>> <groupId>de.isogmbh.aoo</groupId>
>>>>> <artifactId>iso-app</artifactId>
>>>>> <packaging>jar</packaging>
>>>>> <version>1.0-SNAPSHOT</version>
>>>>> <name>Maven Quick Start Archetype</name>
>>>>> <url>http://maven.apache.org</url>
>>>>> <repositories>
>>>>> <repository>
>>>>> <id>java.net</id>
>>>>> <name>java.net Maven Repository</name>
>>>>> <url>https://maven-repository.dev.java.net/repository</url>
>>>>> <!-- layout>legacy</layout -->
>>>>> </repository>
>>>>> </repositories>
>>>>> <dependencies>
>>>>> <dependency>
>>>>> <groupId>jaxb</groupId>
>>>>> <artifactId>jaxb-api</artifactId>
>>>>> <version>2.0</version>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>jaxb</groupId>
>>>>> <artifactId>jaxb-impl</artifactId>
>>>>> <version>2.0</version>
>>>>> </dependency>
>>>>> <dependency>
>>>>> <groupId>junit</groupId>
>>>>> <artifactId>junit</artifactId>
>>>>> <version>3.8.1</version>
>>>>> <scope>test</scope>
>>>>> </dependency>
>>>>> </dependencies>
>>>>> <build>
>>>>> <plugins>
>>>>> <plugin>
>>>>> <groupId>com.sun.tools.xjc.maven2</groupId>
>>>>> <artifactId>maven-jaxb-plugin</artifactId>
>>>>> <executions>
>>>>> <execution>
>>>>> <goals>
>>>>> <goal>generate</goal>
>>>>> </goals>
>>>>> </execution>
>>>>> </executions>
>>>>> </plugin>
>>>>> <plugin>
>>>>> <groupId>org.apache.maven.plugins</groupId>
>>>>> <artifactId>maven-compiler-plugin</artifactId>
>>>>> <configuration>
>>>>> <source>1.5</source>
>>>>> <target>1.5</target>
>>>>> </configuration>
>>>>> </plugin>
>>>>> </plugins>
>>>>> </build>
>>>>> </project>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_maven.apache.org
>>>>> For additional commands, e-mail: users-help_at_maven.apache.org
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_maven.apache.org
>>>> For additional commands, e-mail: users-help_at_maven.apache.org
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_maven.apache.org
>>> For additional commands, e-mail: users-help_at_maven.apache.org
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_maven.apache.org
>> For additional commands, e-mail: users-help_at_maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>