Why did you add granite dependencies to your pom?
VELO

On Tue, Jun 16, 2009 at 11:48 AM, Ilya Dyoshin <[email protected]> wrote:

>
> Good day community.
>
> I'm starting a data-driven application using GraniteDS and Flex. Using
> maven - like almost everybody here :).
>
> I've got a problem. When I try to generate code for mine enitities and
> ServiceInterfaces (I'm going to use Spring as the server side
> framework) I'm getting error java.lang.NoClassDefFoundError: org/
> granite/messaging/amf/io/convert/Converters
>
> Mine POM looks like:
>
> ----------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>
>    Copyright 2008 Marvin Herman Froeder
>    Licensed 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";>
>  <modelVersion>4.0.0</modelVersion>
>
>  <parent>
>    <groupId>com.company</groupId>
>    <artifactId>lexmojo</artifactId>
>    <version>1.0-SNAPSHOT</version>
>  </parent>
>
>  <groupId>com.company</groupId>
>  <artifactId>swc-swc</artifactId>
>  <version>1.0-SNAPSHOT</version>
>  <packaging>swc</packaging>
>
>  <name>LEXMojo swc Library</name>
>
>  <build>
>    <!-- this is a workaround due to archetype plugin problems.  Can
> be removed! -->
>    <sourceDirectory>src/main/flex</sourceDirectory>
>    <testSourceDirectory>src/test/flex</testSourceDirectory>
>
>        <plugins>
>            <plugin>
>                <groupId>org.sonatype.flexmojos</groupId>
>                <artifactId>flexmojos-maven-plugin</artifactId>
>                <version>3.3-SNAPSHOT</version>
>                <extensions>true</extensions>
>                <executions>
>                  <execution>
>                    <goals>
>                      <goal>generate</goal>
>                    </goals>
>                  </execution>
>                </executions>
>
>
>            </plugin>
>        </plugins>
>
>  </build>
>
>  <dependencies>
>
>        <dependency>
>          <groupId>org.graniteds</groupId>
>          <artifactId>granite-generator</artifactId>
>          <version>2.0.0.RC1</version>
>        </dependency>
>
>        <dependency>
>          <groupId>org.graniteds</groupId>
>          <artifactId>granite-generator-share</artifactId>
>          <version>2.0.0.RC1</version>
>        </dependency>
>
>        <dependency>
>          <groupId>org.graniteds</groupId>
>          <artifactId>granite-swc</artifactId>
>          <version>2.0.0.RC1</version>
>          <type>swc</type>
>        </dependency>
>
>        <dependency>
>          <groupId>org.graniteds</groupId>
>          <artifactId>granite-essentials-swc</artifactId>
>          <version>2.0.0.RC1</version>
>          <type>swc</type>
>        </dependency>
>
>       <dependency>
>           <groupId>org.graniteds</groupId>
>           <artifactId>granite-datanucleus</artifactId>
>           <version>2.0.0.RC1</version>
>       </dependency>
>
>      <dependency>
>          <groupId>org.sonatype.flexmojos</groupId>
>          <artifactId>flexmojos-unittest-support</artifactId>
>          <version>3.2.0</version>
>          <type>swc</type>
>          <scope>test</scope>
>      </dependency>
>
>   <!-- mine database and service interfaces -->
>      <dependency>
>          <groupId>com.company</groupId>
>          <artifactId>db</artifactId>
>          <version>1.0-SNAPSHOT</version>
>          <scope>provided</scope>
>      </dependency>
>
>      <dependency>
>          <groupId>com.company</groupId>
>          <artifactId>services</artifactId>
>          <version>1.0-SNAPSHOT</version>
>          <scope>provided</scope>
>      </dependency>
>
>  </dependencies>
>
> </project>
>
> ----------------------------
>
>
> Any help would be great.
>
>
> Thanks.
>
> Best regards,
> Ilya Dyoshin
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to