Tomas,

Sorry about that, but for reason sonatype purged all our snapshots. I
missed a few files when I deployed a few days ago, so I just redeployed all
the code again to make sure the entire 1.2.4-SNAPSHOT codebase is in the
snapshot repo. I double-checked and built this on a virgin system and
everything, including the eclipse dependencies are downloading and building
correctly.

Give it a shot and tell me if this works.

If you have any problems, here is the sample project that I used:
Two files:
pom.xml
src/main/config/person.xsd

The files look like this:
-------------------- pom.xml:
<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>

   <artifactId>org.jibx.schema.person</artifactId>
    <groupId>org.jibx.test.basebinding</groupId>
    <version>1.2.3</version>
  <packaging>jar</packaging>

  <name>schema-person</name>

  <build>
    <plugins>
      <plugin>
        <groupId>org.jibx</groupId>
        <artifactId>jibx-maven-plugin</artifactId>
<version>1.2.4-SNAPSHOT</version>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>generate-java-code-from-schema</id>
            <goals>
              <goal>schema-codegen</goal>
            </goals>
          </execution>
          <execution>
              <id>compile-binding</id>
              <goals>
                  <goal>bind</goal>
              </goals>
              <configuration>
                 <directory>target/generated-sources</directory>
                 <includes>
                   <include>binding.xml</include>
                 </includes>
              </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <dependencies>
    <dependency>
        <groupId>org.jibx</groupId>
        <artifactId>jibx-run</artifactId>
<version>1.2.4-SNAPSHOT</version>
    </dependency>
  </dependencies>

<pluginRepositories>
  <pluginRepository>
    <id>sonatype-nexus-snapshots</id>
    <name>Sonatype Nexus Snapshots</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </pluginRepository>
</pluginRepositories>

<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

</project>

----------------person.xsd:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
        targetNamespace="http://www.jibx.org/sampleschema/person";
        xmlns:tns="http://www.jibx.org/sampleschema/person";>

<xs:element name="person">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="firstName" type="xs:string"/>
      <xs:element name="lastName" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>
</xs:schema>

Then, build the project by typing:

mvn -U clean install

in the project root.

Tell me if this works.

Cheers!

Don

Message: 3
> Date: Sun, 12 Feb 2012 17:27:10 +0100
> From: TomazM <tomaz.majerh...@arnes.si>
> Subject: [jibx-users] maven-jibx-plugin 1.2.3
> To: JIBX <jibx-users@lists.sourceforge.net>
> Message-ID: <4f37e85e.3010...@arnes.si>
> Content-Type: text/plain; charset="iso-8859-1"
>
> There is still going bad with this plugin, so bad, in JIRA JIBX-416 said
> that Fix Version/s: JiBX 1.2.3
> but there are some mayor fails(probably design of plugin), it wont to
> download eclipse staff??????
>
>
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to