Hi,

I never actually figured this out and worked around it but now it is time to
resolve this issue.

the web module pom.xml has a dependency on the core-1.0-SNAPSHOT.jar. When
you run Tomcat from within Eclipse for debugging purposes (I use sysdeo), it
tries to resolve the dependency and fails. 

I'm wondering if I did the right thing?

What I did to solve the issue is this:
root pom.xml
       <!-- ================= Production Settings Profile =================
-->
        <!-- Use "-P prod" when you want to use the settings in this profile
-->
        <!-- ===============================================================
-->
        <profile>
            <id>env-prod</id>
            <build>
                <plugins>
                    <!-- Override location of data file for DbUnit to load
(doesn't have negative keys) -->
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>dbunit-maven-plugin</artifactId>
                        <configuration>
                            <src>src/main/resources/default-data.xml</src>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
                        <properties>
                                
<jdbc.url><![CDATA[jdbc:mysql://xyz]]></jdbc.url>
                                [...]
                        </properties>
        </profile>
                <profile>
            <id>env-test</id>
                        <activation>
                                <activeByDefault>true</activeByDefault>
                                <property>
                                        <name>env-test</name>
                                </property>
                        </activation>
                        <properties>
                                
<jdbc.url><![CDATA[jdbc:mysql://xyz]]></jdbc.url>
                                [...]
                        </properties>
        </profile>

web/pom.xml
    <profiles>
        <profile>
                <id>env-prod</id>
                        <dependencies>
                                <dependency>
                            <groupId>${pom.parent.groupId}</groupId>
                            <artifactId>project-core</artifactId>
                            <version>${pom.parent.version}</version>
                        </dependency>
                        </dependencies> 
        </profile>
[...]

Cheers,

Marc

-- 
View this message in context: 
http://n4.nabble.com/Eclipse-running-Tomcat-Missing-core-1-0-SNAPSHOT-jar-tp1461106p1461106.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to