Hi,

try changing this customized Maven2 build file (see attach).

Cheers, Jonas.

--- On Mon, 6/28/10, Nodir Egamberdiev <[email protected]> wrote:

> From: Nodir Egamberdiev <[email protected]>
> Subject: Re: Kandula Building problem
> To: "Dasarath Weeratunge" <[email protected]>
> Cc: [email protected]
> Date: Monday, June 28, 2010, 1:13 PM
> Thank you for quick reply. So, i
> should change project.xml file and
> re-build with maven.
> 
> On Mon, Jun 28, 2010 at 7:21 PM, Dasarath Weeratunge
> <[email protected]>
> wrote:
> > Quoting Nodir Egamberdiev <[email protected]>:
> >
> > Most likely the jar files have been moved to a
> different repository.
> > I haven't had a look at the source in while but please
> see if you can
> > find the jar files (Google) and change the list of
> repositories that maven
> > looks for them.
> >
> > Thanks,
> > -- dasarath
> >
> >
> >> Hi!
> >> I'm new to Kandula.
> >> Error occurring while building Kandula using Maven
> as follows:
> >>
> >> ...
> >>
> ------------------------------------------------------------------------
> >> >>The build can't continue because of the
> following unsatisfied
> >> dependencies:
> >> - junit:junit:3.8.1:jar (try downloading from http://ws.apache.org/axis/)
> >> - axis:axis:1.4:jar (try downloading from http://ws.apache.org/axis/)
> >> ...
> >> - geronimo-spec:geronimo-spec-j2ee-1.4:rc4:jar
> >>
> ----------------------------------------------------------------------
> >> BUILD FAILED
> >>
> >> Could anyone help/explain me what to do?
> >>
> >> --
> >> Nodir Egamberdiev
> >> Distributed and Collaborative Systems Lab.,
> >> Graduate School of Information Science and
> Engineering,
> >> Ritsumeikan University, Japan
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> >
> >
> 
> 
> 
> -- 
> Nodir
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>


      
<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements. See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership. The ASF licenses this file
  ~ to you under the Apache License, Version 2.0 (the
  ~ "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->

<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";>

    <parent>
        <groupId>org.apache.ws</groupId>
        <artifactId>dependencies</artifactId>
        <version>SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    
    <groupId>org.apache.kandula</groupId>
    <!-- a unique name for this project -->
    <artifactId>kandula2</artifactId>
    <version>${kandula2.version}</version>
    <packaging>jar</packaging>
    
    <!-- a short but descriptive name for the project -->
    <name>Apache Kandula2</name>
    <!-- the project home page -->
    <url>http://ws.apache.org/kandula/</url>

    <!-- the year the project started -->
    <inceptionYear>2005</inceptionYear>
    <description>
            Kandula will provide an open-source implementation of
            WS-Coordination, WS-AtomicTransaction and WS-BusinessActivity
            based on Axis. The initial implementation will be in Java using
            Axis/Java. In addition to providing an implementation, a major
            focus of this project would be to ensure interoperability with
            other implementations of above specifications.
    </description>

    <!-- details about the organization that 'owns' the project -->
    <organization>
        <name>Apache Web Services</name>
        <url>http://ws.apache.org/</url>
    </organization>

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    
    <issueManagement>
        <system>JIRA</system>
        <url>//issues.apache.org/jira/browse/KAND</url>
    </issueManagement>

    <!-- who the developers are for the project -->
    <developers>
        <developer>
            <name>Davanum Srinivas</name>
            <id>dims</id>
            <email>dims AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Sanjiva Weerawarana</name>
            <id>sanjiva</id>
            <email>sanjiva AT wso2.com</email>
            <organization>WSO2</organization>
        </developer>
        <developer>
            <name>Dasarath Weerathunga</name>
            <id>dasarath</id>
            <email>dasarath AT opensource.lk</email>
            <organization>Purdue University, USA</organization>
        </developer>
        <developer>
            <name>Thilina Gunarathne</name>
            <id>thilina</id>
            <email>thilina AT wso2.com</email>
            <organization>WSO2</organization>
            <url>www.apache.org/~thilina</url>
        </developer>
    </developers>

    <!-- any mailing lists for the project -->
    <mailingLists>
        <mailingList>
            <name>Kandula Developer List</name>
            <subscribe>[email protected]</subscribe>
            <unsubscribe>
                [email protected]
            </unsubscribe>
            <archive>
                http://nagoya.apache.org/eyebrowse/SummarizeList?listId=221
            </archive>
        </mailingList>
    </mailingLists>

    <scm>
        <connection>
            scm:svn:http://svn.apache.org:repos/asf/webservices:kandula/trunk/java
        </connection>
        <developerConnection>
            scm:svn:http://svn.apache.org:repos/asf/webservices:kandula/trunk/java
        </developerConnection>
        <url>
            http://svn.apache.org/viewcvs.cgi/webservices/kandula/trunk/java?root=Apache-SVN
        </url>
    </scm>

    <!-- ============ -->
    <!-- Dependencies -->
    <!-- ============ -->
    <dependencies>
        <!-- Axis2 components -->
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-codegen</artifactId>
            <version>${axis2.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-java2wsdl</artifactId>
            <version>${axis2.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb-codegen</artifactId>
            <version>${axis2.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-adb</artifactId>
            <version>${axis2.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-kernel</artifactId>
            <version>${axis2.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-transport-http</artifactId>
            <version>${transports.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.axis2</groupId>
            <artifactId>axis2-addressing</artifactId>
            <version>${axis2.version}</version>
            <type>mar</type>
            <scope>test</scope>
        </dependency>

        <!-- ws commons -->
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-api</artifactId>
            <version>${axiom.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>xml-apis</groupId>
                    <artifactId>xml-apis</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>xerces</groupId>
                    <artifactId>xercesImpl</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-impl</artifactId>
            <version>${axiom.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.axiom</groupId>
            <artifactId>axiom-dom</artifactId>
            <version>${axiom.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.neethi</groupId>
            <artifactId>neethi</artifactId>
            <version>${neethi.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ws.commons.schema</groupId>
            <artifactId>XmlSchema</artifactId>
            <version>${xmlschema.version}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
    </dependencies>

    <build>
        <sourceDirectory>src</sourceDirectory>
        <resources>
            <resource>
                <directory>conf</directory>
                <includes>
                    <include>**/*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>src</directory>
                <includes>
                    <include>**/*.conf</include>
                </includes>
            </resource>
            <resource>
                <directory>.</directory>
                <includes>
                    <include>LICENSE.txt</include>
                </includes>
            </resource>
        </resources>

        <testSourceDirectory>test</testSourceDirectory>
        <testResources>
            <testResource>
                <directory>test-resources</directory>
            </testResource>
            <testResource>
                <directory>conf</directory>
                <includes>
                    <include>**/*-axis2.xml</include>
                </includes>
            </testResource>
            <testResource>
                <directory>src</directory>
                <includes>
                    <include>**/*.conf</include>
                </includes>
            </testResource>
        </testResources>

        <plugins>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <failOnError>false</failOnError>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <tasks>
                                <!-- Code generating for the WS-Coordination WSDL -->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wscoor -g  -ss -sd -sn RegistrationService -uri schema/wscoor.wsdl" />
                                </java>
                                <delete file="target/src/org/apache/kandula/wscoor/RegistrationServiceSkeleton.java" />

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wscoor -g  -ss -sd -sn ActivationService -uri schema/wscoor.wsdl" />
                                </java>
                                <delete file="target/src/org/apache/kandula/wscoor/ActivationServiceSkeleton.java" />

                                <!-- Code generating for the WS-AT WSDL -->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsat.twopc -g -ss -sd -sn Participant2PCService -uri schema/wsat.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsat.twopc -g -ss -sd -sn Coordinator2PCService -uri schema/wsat.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsat.completion -g -ss -sd -sn CompletionInitiator -uri schema/wsat.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsat.completion -g -ss -sd -sn CompletionCoordinator -uri schema/wsat.wsdl" />
                                </java>

                                <!-- Code generating for the WS-BA WSDL -->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsba -g -ss -a -sd -sn BAParticipantCompletionParticipantService -uri schema/wsba.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsba -g -ss -a -sd -sn BACoordinatorCompletionCoordinatorService -uri schema/wsba.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsba -g -ss -a -sd -sn BACoordinatorCompletionParticipantService -uri schema/wsba.wsdl" />
                                </java>

                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.wsba -g -ss -a -sd -sn BAParticipantCompletionCoordinatorService -uri schema/wsba.wsdl" />
                                </java>

                                <delete>
                                        <fileset dir="target/src/org/apache/kandula/wsba">
                                                <include name="*Skeleton.java" />
                                        </fileset>
                                </delete>

                                <!-- Code generating for the Testing Service -->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                        <classpath refid="maven.runtime.classpath" />
                                        <arg line=" -o target -p org.apache.kandula.integration -g -ss -sd -uri test-resources/KandulaDemoService.wsdl" />
                                </java>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.3</version>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>${basedir}/target/src</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-services</id>
                        <phase>generate-test-resources</phase>
                        <configuration>
                            <tasks>
                                <!-- Core Kandula WS-TX/WS-C services -->
                                <echo message="----------------Creating ActivationCoordinator.aar----------------" />
                                <jar destfile="target/ActivationCoordinator.aar">
                                    <fileset dir="conf/ActivationCoordinator" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating AtomicTransactionCoordinator.aar----------------" />
                                <jar destfile="target/AtomicTransactionCoordinator.aar">
                                    <fileset dir="conf/AtomicTransactionCoordinator" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating AtomicTransactionParticipant.aar----------------" />
                                <jar destfile="target/AtomicTransactionParticipant.aar">
                                    <fileset dir="conf/AtomicTransactionParticipant" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating CompletionCoordinator.aar----------------" />
                                <jar destfile="target/CompletionCoordinator.aar">
                                    <fileset dir="conf/CompletionCoordinator" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating RegistrationCoordinator.aar----------------" />
                                <jar destfile="target/RegistrationCoordinator.aar">
                                    <fileset dir="conf/RegistrationCoordinator" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating BACoordinator.aar----------------" />
                                <jar destfile="target/BACoordinator.aar">
                                    <fileset dir="conf/BACoordinator" includes="**/services.xml"/>
                                </jar>

                                <echo message="----------------Creating BACoordinatorCompletionParticipant.aar----------------" />
                                <jar destfile="target/BACoordinatorCompletionParticipant.aar">
                                    <fileset dir="conf/BACoordinatorCompletionParticipant" includes="**/services.xml"/>
                                </jar>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>generate-modules</id>
                        <phase>generate-test-resources</phase>
                        <configuration>
                            <tasks>
                                <echo message="----------------Creating Kandula-inflow.mar----------------" />
                                <mkdir dir="target/modules/kandula-inflow/META-INF" />
                                <copy file="conf/inflow-module.xml" tofile="target/modules/kandula-inflow/META-INF/module.xml" />
                                <jar destfile="target/kandula-inflow-${project.version}.mar" basedir="target/modules/kandula-inflow">
                                    <include name="**/module.xml"/>
                                </jar>
                                <delete dir="target/modules/kandula-inflow"/>

                                <echo message="----------------Creating Kandula-outflow.mar----------------" />
                                <mkdir dir="target/modules/kandula-outflow/META-INF" />
                                <copy file="conf/outflow-module.xml" tofile="target/modules/kandula-outflow/META-INF/module.xml" />
                                <jar destfile="target/kandula-outflow-${project.version}.mar" basedir="target/modules/kandula-outflow">
                                    <include name="**/module.xml"/>
                                </jar>
                                <delete dir="target/modules/kandula-outflow"/>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>setup-test-repo</id>
                        <phase>process-test-resources</phase>
                        <configuration>
                            <tasks>
                                <property name="build.compiler" value="extJavac"/>
                                <javac srcdir="test" destdir="target/test-classes" debug="on">
                                    <classpath refid="maven.runtime.classpath" />
                                    <include name="**/KandulaDemoService.java"/>
                                    <include name="**/testService.java"/>
                                </javac>

                                <!-- Packaging demo services -->
                                <echo message="----------------Creating KandulaDemoService.aar----------------" />
                                <jar jarfile="target/KandulaDemoService.aar">
                                    <fileset dir="test-resources/KandulaDemoService" includes="**/services.xml"/>
                                    <fileset dir="target/test-classes" includes="**/KandulaDemoService*.class"/>
                                </jar>
                                <echo message="----------------Creating KandulaBADemoService.aar----------------" />
                                <jar jarfile="target/KandulaBADemoService.aar">
                                    <fileset dir="test-resources/KandulaBADemoService" includes="**/services.xml"/>
                                    <fileset dir="target/test-classes" includes="**/KandulaDemoService*.class"/>
                                </jar>
                                <echo message="----------------Creating TestService.aar----------------" />
                                <jar jarfile="target/TestService.aar">
                                    <fileset dir="test-resources/TestService" includes="**/services.xml"/>
                                    <fileset dir="target/test-classes" includes="**/testService*.class"/>
                                </jar>
                                <delete dir="target/test-classes"/>

                                <!-- Set up Axis2 repository for testing -->
                                <echo message="-----------Creating Coordinator+participant test repository----------" />
                                <mkdir dir="target/testing-repository" />
                                <copy file="target/ActivationCoordinator.aar" tofile="target/testing-repository/services/ActivationCoordinator.aar" />
                                <copy file="target/AtomicTransactionCoordinator.aar" tofile="target/testing-repository/services/AtomicTransactionCoordinator.aar" />
                                <copy file="target/AtomicTransactionParticipant.aar" tofile="target/testing-repository/services/AtomicTransactionParticipant.aar" />
                                <copy file="target/CompletionCoordinator.aar" tofile="target/testing-repository/services/CompletionCoordinator.aar" />
                                <copy file="target/RegistrationCoordinator.aar" tofile="target/testing-repository/services/RegistrationCoordinator.aar" />
                                <copy file="target/BACoordinator.aar" tofile="target/testing-repository/services/BACoordinator.aar" />
                                <copy file="target/BACoordinatorCompletionParticipant.aar" tofile="target/testing-repository/services/BACoordinatorCompletionParticipant.aar" />
                                <mkdir dir="target/testing-repository/modules" />
                                <copy file="target/kandula-inflow-${project.version}.mar" tofile="target/testing-repository/modules/kandula-inflow-${project.version}.mar" />
                                <copy file="${settings.localRepository}/org/apache/axis2/axis2-addressing/${axis2.version}/axis2-addressing-${axis2.version}.mar" toDir="target/testing-repository/modules/" />
                                <copy file="conf/coordinator-axis2.xml" tofile="target/testing-repository/axis2.xml" />
                                <copy file="target/KandulaDemoService.aar" tofile="target/testing-repository/services/KandulaDemoService.aar" />
                                <copy file="target/KandulaBADemoService.aar" tofile="target/testing-repository/services/KandulaBADemoService.aar" />
                                <copy file="target/TestService.aar" tofile="target/testing-repository/services/TestService.aar" />
                                <echo message="-----------Creating Initiator test repository----------" />
                                <mkdir dir="target/initiator-repository" />
                                <mkdir dir="target/initiator-repository/modules" />
                                <copy file="target/kandula-outflow-${project.version}.mar" tofile="target/initiator-repository/modules/kandula-outflow-${project.version}.mar" />
                                <copy file="${settings.localRepository}/org/apache/axis2/axis2-addressing/${axis2.version}/axis2-addressing-${axis2.version}.mar" toDir="target/initiator-repository/modules/" />
                                <copy file="conf/initiator-axis2.xml" tofile="target/initiator-repository/axis2.xml" />
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <inherited>true</inherited>
                <configuration>
                    <systemProperties>
                        <property>
                            <name>log4j.configuration</name>
                            <value>file:logging/log4j.properties</value>
                        </property>
                    </systemProperties>
                    <includes>
                        <include>**/CompletionCommitTest.java</include>
                        <include>**/BARegistrationTest.java</include>
                        <include>**/BAParticipantRegistrationTest.java</include>
                        <include>**/CoordinatorImplTest.java</include>
                        <!-- <include>**/InteropTest.java</include> -->
                    </includes>
                </configuration>
            </plugin>
        </plugins>
    </build>
    
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to