1) From settings.xml I remove repositoty jibx
2) I change plugin 
<artifactId>jibx-maven-plugin</artifactId><version>1.2.3</version>
3) I run and I still get error:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.jibx:jibx-maven-plugin:1.2.3:bind (default-cli) on project
ozwizard_lu_dev: Execution default-cli of goal 
org.jibx:jibx-maven-plugin:1.2.3:bind failed: Plugin 
org.jibx:jibx-maven-plugin:1.2.3 or one of its
dependencies could not be resolved: The following artifacts could not be 
resolved: org.eclipse.core:resources:jar:3.3.0-v20070604,
org.eclipse.core:runtime:jar:3.3.100-v20070530, 
org.eclipse.core:filesystem:jar:1.1.0-v20070606, 
org.eclipse:text:jar:3.3.0-v20070606-0010: Could not
find artifact org.eclipse.core:resources:jar:3.3.0-v20070604


here is my pom

<profile>
 <id>server</id>
 <build>
 <!-- Generete java -->
 <plugins>
  <plugin>
   <groupId>org.apache.axis2</groupId>
   <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
   <version>1.5.4</version>
   <executions>
    <execution>
     <goals>
      <goal>wsdl2code</goal>
     </goals>
     <configuration>
      <packageName>si.arnes.ozwizardlu.soap</packageName>
      <wsdlFile>src/main/resources/wsdl/OZWIZARD_LU.wsdl</wsdlFile>
      <generateServerSide>true</generateServerSide>
      <generateServicesXml>true</generateServicesXml>
      <generateServerSideInterface>true</generateServerSideInterface>
      <unwrap>true</unwrap>
      <serviceName>ozwizardlu</serviceName>
      <databindingName>jibx</databindingName>
      <overWrite>true</overWrite>
      <outputDirectory>target/serverSide</outputDirectory>
      <options>
       <property>
        <name>bindingfile</name>
        <value>src/main/resources/jibx/binding.xml</value>
       </property>
      </options>
    </configuration>
  </execution>
 </executions>
</plugin>

<!-- Compile java -->
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-compiler-plugin</artifactId>
 <version>2.3.2</version>
 <configuration>
  <source>1.6</source>
  <target>1.6</target>
 </configuration>
</plugin>

<!-- JIBX bind -->
<plugin>
 <groupId>org.jibx</groupId>
 <artifactId>jibx-maven-plugin</artifactId>
 <version>1.2.3</version>
 <configuration>
  <directory>src/main/resources/jibx/</directory>
   <includes>
    <include>binding.xml</include>
   </includes>
  <verbose>true</verbose>
  <load>false</load>
  <targetDirectory>target/serverSide</targetDirectory>
 </configuration>
</plugin>
</plugins>
</build>
</profile>

I'm new to maven, I use to do it with ant, now I'm trying with maven, but have 
a lot of problems:

1) From wsdl generate java class's
2) Compile it
3) Genereted binding class's (Like this JiBX_bindingCactiGraph_access1.class, 
JiBX_bindingCactiGraph_access.class), but this plugin is not generating
this

in ant I use:

<target name="binding-jibx" depends="prepare-axis2,compile">
 <!-- JiBX binding compiler task definition -->
 <taskdef name="jibx-bind" classname="org.jibx.binding.ant.CompileTask">
   <classpath refid="jibx.lib.dir"/>
 </taskdef>
 <jibx-bind verbose="true" load="false">
  <bindingfileset dir="${basedir}/jibx">
    <include name="binding*.xml"/>
  </bindingfileset>
  <classpathset dir="${build.dir}/classes"/>
 </jibx-bind>
</target>

Is this posible with this plugin?

4) Generate jar(with this class's) for client to use jibx



Regards, Tomaz
S, Don Corley piše:
> Tomas,
> 
> You need to remove the line in your pom.xml file that reads:
> 
>    <phase>generate-sources</phase>
> 
> The JiBX binding tool must run AFTER the compile phase, not before. Removing 
> this line will run bind during the process-classes phase. If you copied
> this from one of our examples, please send me the url, so I can fix it.
> 
> Also, please remove all the jibx.org <http://jibx.org> repository entries 
> from your settings.xml file. Our primary repository is now maven central.
> While you're at it, change maven-jibx-plugin to the new jibx-maven-plugin
> 
> I could not reproduce the errors that you listed. I noticed that the maven 
> repository has been down several times in the last 18 hours.
> 
> Tell me if this works for you!
> 
> Don
> 
> On Wed, Mar 9, 2011 at 5:03 AM, TomazM <tomaz.majerh...@arnes.si 
> <mailto:tomaz.majerh...@arnes.si>> wrote:
> 
>     I have the dependency problem:
> 
> 
>     my pom:
> 
>     ...
>     <plugin>
>      <groupId>org.jibx</groupId>
>      <artifactId>maven-jibx-plugin</artifactId>
>      <version>1.2.3</version>
>      <configuration>
>      <directory>src/main/resources/jibx/</directory>
>       <includes>
>        <include>binding.xml</include>
>       </includes>
>       <verbose>true</verbose>
>       <load>false</load>
>       <targetDirectory>target/serverSide</targetDirectory>
>      </configuration>
>      <executions>
>       <execution>
>        <phase>generate-sources</phase>
>         <goals>
>          <goal>bind</goal>
>         </goals>
>       </execution>
>      </executions>
>     </plugin>
>     ...
> 
>     my settings.xml:
> 
>     ...
>     <repository>
>      <id>jibx.sf.net <http://jibx.sf.net></id>
>      <name>JiBX repository</name>
>      <url>http://jibx.sf.net/maven2</url>
>      <releases>
>      <updatePolicy>never</updatePolicy>
>      </releases>
>      <snapshots>
>      <enabled>false</enabled>
>      </snapshots>
>     </repository>
>     ...
> 
>     Error:
>     org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.jibx:maven-jibx-plugin:1.2.3:bind (default) on project
>     ozwizard_lu_dev: Execution default of goal 
> org.jibx:maven-jibx-plugin:1.2.3:bind failed: Plugin 
> org.jibx:maven-jibx-plugin:1.2.3 or one of its
>     dependencies could not be resolved: The following artifacts could not be 
> resolved: org.eclipse.core:resources:jar:3.3.0-v20070604,
>     org.eclipse.core:runtime:jar:3.3.100-v20070530, 
> org.eclipse.core:filesystem:jar:1.1.0-v20070606, 
> org.eclipse:text:jar:3.3.0-v20070606-0010: Could not
>     find artifact org.eclipse.core:resources:jar:3.3.0-v20070604
> 
>     Is there any solution for this problem?
> 
>     Regards, Tomaz
> 
>     S, Don Corley piše:
>     > jibx-maven-plugin version 1.2.3 has now been released as a replacement 
> for the maven-jibx-plugin plugin.
>     >
>     > Besides the name change to conform to the maven plugin naming 
> convention, there are several changes.
>     >
>     > The main goal of this project was to simplify the plugin's usage while 
> maintaining compatibility with the old plugin.
>     >
>     > You should be able to replace the plugin name in your projects without 
> changing any configuration. You will notice that many of the parameter names
>     > have been deprecated and replaced with more descriptive names. The main 
> reason for this change was that the code-gen and the bind functions were
>     using
>     > the same parameter names for different functions.
>     >
>     > The new documentation is available at http://jibx.org/jibx-maven-plugin.
>     >
>     > For example, for a web-based schema the new plugin configuration can be 
> simplified to:
>     >
>     >             <plugin>
>     >                 <groupId>org.jibx</groupId>
>     >                 <artifactId>maven-jibx-plugin</artifactId>
>     >                 <version>1.2.3</version>
>     >
>     >                 <executions>
>     >                     <execution>
>     >                         <goals>
>     >                             <goal>schema-codegen</goal>
>     >                         </goals>
>     >                     </execution>
>     >                     <execution>
>     >                         <goals>
>     >                             <goal>bind</goal>
>     >                         </goals>
>     >                     </execution>
>     >                 </executions>
>     >                 <configuration>
>     >                     
> <schemaLocation>http://www.jibx.org/sampleschema/</schemaLocation>
>     >                     <includeSchemas>
>     >                         <includeSchema>person.xsd</includeSchema>
>     >                     </includeSchemas>
>     >                 </configuration>
>     >             </plugin>
>     >
>     > Give it a try!
>     >
>     >
>     >
>     > 
> ------------------------------------------------------------------------------
>     > What You Don't Know About Data Connectivity CAN Hurt You
>     > This paper provides an overview of data connectivity, details
>     > its effect on application quality, and explores various alternative
>     > solutions. http://p.sf.net/sfu/progress-d2d
>     >
>     >
>     >
>     > _______________________________________________
>     > jibx-devs mailing list
>     > jibx-d...@lists.sourceforge.net <mailto:jibx-d...@lists.sourceforge.net>
>     > https://lists.sourceforge.net/lists/listinfo/jibx-devs
> 
> 

<<attachment: tomaz_majerhold.vcf>>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to