Hope someone will be able to help me:

I'm using Appfuse 2 with modular archetype.
I don't want the project-core.jar included into the project-web.war 
So I've used : 
             <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <dependentWarExcludes>
                       
**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
                    </dependentWarExcludes>
                    
<warSourceExcludes>WEB-INF/lib/*core*.jar</warSourceExcludes> 
                </configuration>
            </plugin>

It works perfectly well, mvn package also works well.
Jetty was missing the core classes (that's normal) so I added the
project-core dependency :
                <dependencies>
                    <dependency>
                        <groupId>${pom.parent.groupId}</groupId>
                        <artifactId>project-core</artifactId>
                        <version>${pom.parent.version}</version>
                    </dependency>
                </dependencies>

Jetty works perfectly well now.

Last thing is cargo and there I cannot make it work !!!
"mvn install" logs:
...
[INFO] [cargo:start {execution: start-container}]
[INFO] [stalledLocalDeployer] Deploying [...
project-webapp-1.0-SNAPSHOT.war] to ...
[INFO] [talledLocalContainer] Tomcat 5.x starting...
[INFO] [talledLocalContainer] 18 janv. 2008 10:15:24
org.apache.coyote.http11.Http11Protocol init
...
[INFO] [talledLocalContainer] java.lang.NoClassDefFoundError:
org/springframework/core/io/support/ResourcePatternResolver
[INFO] [talledLocalContainer]   at java.lang.ClassLoader.defineClass1(Native
Method)
[INFO] [talledLocalContainer]   at
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
...

Cannot find Spring classes so I think it's still in the project-core.jar
archive.
So I tried the same thing as for jetty (dependencies) but it didn't work, am
I missing something, any idea ?
-- 
View this message in context: 
http://www.nabble.com/cargo-missing-project-core-dependency-tp14948027s2369p14948027.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to