Bruce,
thank you for the reply.
Unfortunately this doesn't helped. I tried all except the system
scope, but it
only would make sense with compile or runtime in my opinion. None of
the
tested scopes worked.
Find below the output of Maven when I try to build the BC without
any scope tag.
You can see that he Maven downloads the ipp library but later in the
include messages it
is not listed at all. All other dependencies are fine btw.
I am really confused about this problem :)
Thanks in advance,
Lars
mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building CP :: Port Binding :: Port Binding Component
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/net/compart/ipp/1.0/ipp-1.0.pom
Downloading:
http://repo1.maven.org/maven2/net/compart/ipp/1.0/ipp-1.0.pom
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://svn.apache.org/repos/asf/servicemix/m2-repo/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
[INFO] [xbean:mapping {execution: default}]
log4j:WARN No appenders could be found for logger
(org.apache.xbean.spring.generator.QdoxMappingLoader).
log4j:WARN Please initialize the log4j system properly.
[INFO] Generating META-INF properties file:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/META-INF/services/org/apache/xbean/spring/http/www.compart.net/ns/jbi/1.0
for namespace: http://www.compart.net/ns/jbi/1.0
[INFO] Generating Spring 2.0 handler mapping:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/META-INF/spring.handlers
for namespace: http://www.compart.net/ns/jbi/1.0
[INFO] Generating Spring 2.0 schema mapping:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/META-INF/spring.schemas
for namespace: http://www.compart.net/ns/jbi/1.0
[INFO] Generating HTML documentation file:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/cp-portlistener-bc.xsd.html
for namespace: http://www.compart.net/ns/jbi/1.0
[INFO] Generating XSD file:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/cp-portlistener-bc.xsd
for namespace: http://www.compart.net/ns/jbi/1.0
[INFO] Generating WIKI documentation file:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/cp-portlistener-bc.xsd.wiki
for namespace: http://www.compart.net/ns/jbi/1.0
Warning, could not load class:
net.compart.jbi.portlistener.PLConsumerEndpoint:
java.lang.ClassNotFoundException:
net.compart.jbi.portlistener.PLConsumerEndpoint
[INFO] ...done.
[INFO] [jbi:generate-jbi-component-descriptor]
[INFO] Generating jbi.xml
[WARNING] Attempting to build MavenProject instance for Artifact
(org.apache.ws.commons:XmlSchema:1.1) of type: jar; constructing POM
artifact instead.
[WARNING] Resolved artifact
commons-logging:commons-logging:jar:1.1:compile has a different
version from that in dependency management
commons-logging:commons-logging:jar:1.0.4:provided, overriding
dependency management
[WARNING] Resolved artifact xml-apis:xml-apis:jar:1.0.b2:compile has
a different version from that in dependency management
xml-apis:xml-apis:jar:1.3.04:compile, overriding dependency management
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 11 source files to
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/cp-portlistener-bc-1.0-SNAPSHOT.jar
[INFO] [jbi:jbi-component]
[WARNING] Attempting to build MavenProject instance for Artifact
(org.apache.ws.commons:XmlSchema:1.1) of type: jar; constructing POM
artifact instead.
[WARNING] Resolved artifact
commons-logging:commons-logging:jar:1.1:compile has a different
version from that in dependency management
commons-logging:commons-logging:jar:1.0.4:provided, overriding
dependency management
[WARNING] Resolved artifact xml-apis:xml-apis:jar:1.0.b2:compile has
a different version from that in dependency management
xml-apis:xml-apis:jar:1.3.04:compile, overriding dependency management
[INFO] Including: org.xsocket:xSocket:jar:1.0-beta-4:compile
[INFO] Including: commons-logging:commons-logging:jar:1.1:compile
[INFO] Including: xerces:xercesImpl:jar:2.8.1:compile
[INFO] Including: log4j:log4j:jar:1.2.12:compile
[INFO] Including: jetty:org.mortbay.jetty:jar:5.1.9:compile
[INFO] Including: xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] Including: commons-io:commons-io:jar:1.2:compile
[INFO] Including: stax:stax-api:jar:1.0.1:compile
[INFO] Generating installer
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/cp-portlistener-bc-1.0-SNAPSHOT-installer.zip
[INFO] Building jar:
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/cp-portlistener-bc-1.0-SNAPSHOT-installer.zip
[INFO] [install:install]
[INFO] Installing
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/cp-portlistener-bc-1.0-SNAPSHOT.jar
to
/home/lhe/.m2/repository/net/compart/jbi/cp-portlistener-bc/1.0-SNAPSHOT/cp-portlistener-bc-1.0-SNAPSHOT.jar
[INFO] Installing
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/cp-portlistener-bc.xsd
to
/home/lhe/.m2/repository/net/compart/jbi/cp-portlistener-bc/1.0-SNAPSHOT/cp-portlistener-bc-1.0-SNAPSHOT.xsd
[INFO] Installing
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/xbean/cp-portlistener-bc.xsd.html
to
/home/lhe/.m2/repository/net/compart/jbi/cp-portlistener-bc/1.0-SNAPSHOT/cp-portlistener-bc-1.0-SNAPSHOT-schema.html
[INFO] Installing
/home/lhe/workspace/smix/cp-esb/cp-portlistener/cp-portlistener-bc/target/cp-portlistener-bc-1.0-SNAPSHOT-installer.zip
to
/home/lhe/.m2/repository/net/compart/jbi/cp-portlistener-bc/1.0-SNAPSHOT/cp-portlistener-bc-1.0-SNAPSHOT-installer.zip
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Thu Feb 14 08:15:06 CET 2008
[INFO] Final Memory: 19M/99M
[INFO]
------------------------------------------------------------------------
Bruce Snyder schrieb:
On Feb 13, 2008 12:28 AM, lhe77 <[EMAIL PROTECTED]> wrote:
Hi,
I actually reworked one of my BC's to use now an external library.
This lib is declared as a dependency inside the pom.xml of the bc.
When I first time tried to build it, it failed because of the missing
library...that is clear to me because the lib is not in the
official online
repositories. So I installed it with the given comand by maven
into my local
repository /home/<user>/.m2/repository. I checked it, it is there.
When I now build the BC, the library ipp of net.compart is not put
into the
BC installer. When trying to deploy a SA using this BC, then it
throws a
ClassNotFound Exception telling me, that one of the classes of the
lib was
missing.
The question is now, why is the library not put into the BC? When
I add the
dependency to the SA, then it is put into the SA installer, but
this doesn't
help me.
Any ideas?
<dependency>
<groupId>net.compart</groupId>
<artifactId>ipp</artifactId>
<version>1.0</version>
</dependency>
Have you tried adding a <scope> to the dependency?
Bruce