-
1. Re: How to features:addUrl from maven repository ?
iocanel May 21, 2012 7:34 AM (in response to simplex-software)Hi Nicolas.
The way the feature repo is added depends on the way the feature repo was installed in the maven repo.
The common practice is to install feature repositories as a separate artifact using artifact type=xml and artifact classifier=features.
Then you can use the following command:
features:addurl mvn:/xml/features
From what I understand what you are trying to do is to wrap the feature inside a jar and then install it from the jar. I am not sure if this is even possible. So I would suggest you to install the features repo as a separate artifact.
Here is a pointer on how you could achieve that using the build-helper-maven-plugin https://github.com/fusesource/fuse/blob/master/esb/fuse-esb/pom.xml line 335.
-
2. Re: How to features:addUrl from maven repository ?
simplex-software May 21, 2012 10:52 AM (in response to iocanel)Hi,
Many thanks for your reply. The features repo is a separate artifact and, as such, it's build with maven having a packaging type of jar. I'm not sure what the plugin you mentioned does but my understanding is that, as far as you have your features repo in the maven repository, it may only be as a jar. Is that correct ?
Kind regards,
Nicolas
-
3. Re: How to features:addUrl from maven repository ?
iocanel May 21, 2012 11:14 AM (in response to simplex-software)Hi Nicolas,
maven allows to use any type you wish and not only jars.
For example using mvn deploy:deploy-file you can deploy anything (xml, zips, tar.gz or any other extension).
Of course when the artifact installation process is part of your maven build (e.g. using mvn install), maven will install the generated artifact which is usually a jar.
The plugin I proposed allows the user to install additional files and not just the generated jar. All you need to do is to use the plugin, point it to the filtered features.xml file under your target folder and specify the type and classifier.
-
4. Re: How to features:addUrl from maven repository ?
simplex-software May 21, 2012 12:39 PM (in response to iocanel)Hi,
My POM reads now as follows:
.............................
..............................
Executing it creates the following files in the maven repository: maven.repositories, mavenmetadata_local.xml, my-features.jar, my-features.pom.
Now how do I add my-features.xml file which is in my-features.jar ?
Kind regards,
Nicolas
-
5. Re: How to features:addUrl from maven repository ?
iocanel May 21, 2012 3:15 PM (in response to simplex-software)I think that in general its not a really good idea to attach the artifact directly of the source tree. It's better to pick it up from the target folder, so that you can make use of maven filtering etc (lot easier to maintain).
So if your descriptor is under src/main/resources/features.xml, you can pick it up from
target/classes/features.xml (I would also advice to keep your filenames under the source tree free of versions etc).
You might also need to specify the resources folder in your pom.
*/</include>
</includes>
</resource>
</resources>
-
6. Re: How to features:addUrl from maven repository ?
simplex-software May 22, 2012 6:11 AM (in response to iocanel)Many thanks again for your time but I'm confused as I'm reading what you're saying and I don't find in your comments any element of response to my question. Maybe I need to come back to my questions which are:
1. Since you said that packaging the feature file in a jar cannot work, what is the correct packaging for a feature repo file and how to do it ?
2. Once the feature repo packaged, what is the correct Karaf command to add its url to the list of the server's feature repositories ? Given that, besides my feature file packaged in a jar sevral XML files are created, like _maven.repository, mavel-metadata-local, etc. which
Kind regards,
Nicolas
-
7. Re: How to features:addUrl from maven repository ?
iocanel May 22, 2012 7:03 AM (in response to simplex-software)Hi Nicolas,
Please find my answers below.
1. Since you said that packaging the feature file in a jar cannot work, what is the correct packaging for a feature repo file and how to do it ?
I initially mentioned that you cannot use the features:addurl command to refer to a features repo file that is inside a jar.
I then pointed you to the most common practice, which is to install the features repo file inside your maven repository as a separate maven artifact (not just wrapped inside a jar).
Please note, that this doesn't mean that you need to change the packaging of your maven project from jar to something else, but that you need to configure additional plugins for that purpose.
So let's get to detailed instructions:
1. You need a maven project with jar packaging.
2. You need to have the feature repo file under your src/main/resources (e.g. src/main/resources/features.xml).
3. You need to configure the builder helper maven plugin to install the feature repo file to the maven repository as an extra artifact (both the jar and the features xml will be installed)
4. Optionally if you need to make use of filtering in your descriptor, you can also configure your resources to be filterred.
A complete project could look like this:
2. Once the feature repo packaged, what is the correct Karaf command to add its url to the list of the server's feature repositories ?
After building the project as described in step 1, you'll be able to see inside your maven repository a new file: /xml/features.
and for the exact example:
features:addurl mvn:org.fusesource.example/custom-feature/1.0/xml/features
I hope this makes things more clear for you.
-
8. Re: How to features:addUrl from maven repository ?
simplex-software May 22, 2012 8:37 AM (in response to iocanel)Hi,
Many thanks for these details. I don't know if you tested this but, in my case, it doesn't work at all. Once again, here is the POM:
*//xml/features simply because the maven plugin doesn't create, in my case, any xml/feature directory.
What am I missing here ?
Kind regards,
Nicolas
-
9. Re: How to features:addUrl from maven repository ?
iocanel May 22, 2012 8:52 AM (in response to simplex-software)Yes I have tested it and posted the complete content of my pom.xml.
The behavior you describe usually means is that maven can't find the file:
To be able to help you further, I would need the complete output of your maven build, to see what is going wrong, in your case.
-
10. Re: How to features:addUrl from maven repository ?
simplex-software May 22, 2012 10:52 AM (in response to iocanel)Hi,
Many thanks for this update. In order to avoid naming problems and typs I did what I should have done from the beggining, ie naming the features file simply features.xml.
Here is the maven build complete output:
UNIC Product :: ActiveMQ Bundle
UNIC Product :: Camel Queue Service Bundle
UNIC Product :: Persistance Bundle
UNIC Product :: Service Bundle
UNIC Product :: Web Service Bundle
UNIC Product :: Routing Bundle
Building test.master 0.0.1-SNAPSHOT
--- maven-install-plugin:2.3.1:install (default-install) @ test.master ---
Installing D:\projects\workspace\fuse-esb\test.master\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.master\0.0.1-SNAPSHOT\test.master-0.0.1-SNAPSHOT.pom
Building UNIC Product :: ActiveMQ Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.activemq ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.activemq ---
Nothing to compile - all classes are up to date
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.activemq ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.activemq\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.activemq ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.activemq ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.activemq\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.activemq ---
Include-Resource: overriding log4j.properties=src/main/resources/log4j.properties,META-INF/spring/activemq-broker.xml=src/main/resources/META-INF/spring/activemq-broker.xml with src/main/resources (add {maven-resources} if you want to include the maven resources)
Warning building bundle com.unic.delimij.integration:test.activemq:bundle:0.0.1-SNAPSHOT : Neither Export-Package, Private-Package, -testpackages is set, therefore no packages will be included
Warning building bundle com.unic.delimij.integration:test.activemq:bundle:0.0.1-SNAPSHOT : Did not find matching referal for *
--- maven-install-plugin:2.3.1:install (default-install) @ test.activemq ---
Installing D:\projects\workspace\fuse-esb\test.activemq\target\test.activemq-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.activemq\0.0.1-SNAPSHOT\test.activemq-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.activemq\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.activemq\0.0.1-SNAPSHOT\test.activemq-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.activemq ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.activemq/0.0.1-SNAPSHOT/test.activemq-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Camel Queue Service Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.camelqueueservice ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.camelqueueservice ---
Nothing to compile - all classes are up to date
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.camelqueueservice ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.camelqueueservice\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.camelqueueservice ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.camelqueueservice ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.camelqueueservice\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.camelqueueservice ---
Include-Resource: overriding log4j.properties=src/main/resources/log4j.properties,META-INF/spring/osgi-queuingservice.xml=src/main/resources/META-INF/spring/osgi-queuingservice.xml with src/main/resources (add {maven-resources} if you want to include the maven resources)
Warning building bundle com.unic.delimij.integration:test.camelqueueservice:bundle:0.0.1-SNAPSHOT : Neither Export-Package, Private-Package, -testpackages is set, therefore no packages will be included
Warning building bundle com.unic.delimij.integration:test.camelqueueservice:bundle:0.0.1-SNAPSHOT : Did not find matching referal for *
--- maven-install-plugin:2.3.1:install (default-install) @ test.camelqueueservice ---
Installing D:\projects\workspace\fuse-esb\test.camelqueueservice\target\test.camelqueueservice-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.camelqueueservice\0.0.1-SNAPSHOT\test.camelqueueservice-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.camelqueueservice\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.camelqueueservice\0.0.1-SNAPSHOT\test.camelqueueservice-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.camelqueueservice ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.camelqueueservice/0.0.1-SNAPSHOT/test.camelqueueservice-0.0.1-SNAPSHOT.jar
Building UNIC Product : Features 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.features ---
File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.features ---
Nothing to compile - all classes are up to date
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.features ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.features ---
Nothing to compile - all classes are up to date
--- maven-surefire-plugin:2.10:test (default-test) @ test.features ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.features\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-jar-plugin:2.3.2:jar (default-jar) @ test.features ---
Building jar: D:\projects\workspace\fuse-esb\test.features\target\test.features-0.0.1-SNAPSHOT.jar
--- build-helper-maven-plugin:1.0:attach-artifact (attach-artifacts) @ test.features ---
--- maven-install-plugin:2.3.1:install (default-install) @ test.features ---
Installing D:\projects\workspace\fuse-esb\test.features\target\test.features-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.features\0.0.1-SNAPSHOT\test.features-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.features\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.features\0.0.1-SNAPSHOT\test.features-0.0.1-SNAPSHOT.pom
Installing D:\projects\workspace\fuse-esb\test.features\features.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.features\0.0.1-SNAPSHOT\test.features-0.0.1-SNAPSHOT-features.xml
Building UNIC Product :: Model Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.model ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.model ---
Compiling 1 source file to D:\projects\workspace\fuse-esb\test.model\target\classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.model ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.model\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.model ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.model ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.model\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.model ---
Warning building bundle com.unic.delimij.integration:test.model:bundle:0.0.1-SNAPSHOT : Instructions in Export-Package that are never used: =META-INF\.org\.apache\.camel\.example\.reportincident\.model, org\.apache\.camel\.example\.reportincident\.model
Warning building bundle com.unic.delimij.integration:test.model:bundle:0.0.1-SNAPSHOT : Superfluous export-package instructions:
Warning building bundle com.unic.delimij.integration:test.model:bundle:0.0.1-SNAPSHOT : Exporting packages that are not on the Bundle-Classpath[Jar:dot]:
--- maven-install-plugin:2.3.1:install (default-install) @ test.model ---
Installing D:\projects\workspace\fuse-esb\test.model\target\test.model-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.model\0.0.1-SNAPSHOT\test.model-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.model\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.model\0.0.1-SNAPSHOT\test.model-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.model ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.model/0.0.1-SNAPSHOT/test.model-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Persistance Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.persistence ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.persistence ---
Compiling 2 source files to D:\projects\workspace\fuse-esb\test.persistence\target\classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.persistence ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.persistence\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.persistence ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.persistence ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.persistence\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.persistence ---
--- maven-install-plugin:2.3.1:install (default-install) @ test.persistence ---
Installing D:\projects\workspace\fuse-esb\test.persistence\target\test.persistence-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.persistence\0.0.1-SNAPSHOT\test.persistence-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.persistence\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.persistence\0.0.1-SNAPSHOT\test.persistence-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.persistence ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.persistence/0.0.1-SNAPSHOT/test.persistence-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Service Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.service ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.service ---
Compiling 2 source files to D:\projects\workspace\fuse-esb\test.service\target\classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.service ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.service\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.service ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.service ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.service\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.service ---
Warning building bundle com.unic.delimij.integration:test.service:bundle:0.0.1-SNAPSHOT : Instructions in Private-Package, or -testpackages that are never used: com\.unic\.delimij\.integration\.service\.service\.impl
Warning building bundle com.unic.delimij.integration:test.service:bundle:0.0.1-SNAPSHOT : Instructions in Export-Package that are never used: =META-INF\.wsdl
Warning building bundle com.unic.delimij.integration:test.service:bundle:0.0.1-SNAPSHOT : Exporting packages that are not on the Bundle-Classpath[Jar:dot]:
--- maven-install-plugin:2.3.1:install (default-install) @ test.service ---
Installing D:\projects\workspace\fuse-esb\test.service\target\test.service-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.service\0.0.1-SNAPSHOT\test.service-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.service\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.service\0.0.1-SNAPSHOT\test.service-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.service ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.service/0.0.1-SNAPSHOT/test.service-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Web Service Bundle 0.0.1-SNAPSHOT
--- cxf-codegen-plugin:2.5.0.fuse-7-061:wsdl2java (generate-sources) @ test.webservice ---
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default frontend jaxws21
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding source
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding domsource
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding staxsource
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding saxsource
22 mai 2012 16:42:36 org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin
INFO: Replaced default databinding jaxb
--- maven-resources-plugin:2.5:resources (default-resources) @ test.webservice ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.webservice ---
Compiling 6 source files to D:\projects\workspace\fuse-esb\test.webservice\target\classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.webservice ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
skip non existing resourceDirectory D:\projects\workspace\fuse-esb\test.webservice\src\test\resources
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.webservice ---
--- maven-surefire-plugin:2.12:test (default-test) @ test.webservice ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.webservice\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.webservice ---
Warning building bundle com.unic.delimij.integration:test.webservice:bundle:0.0.1-SNAPSHOT : Instructions in Export-Package that are never used: =META-INF\.wsdl
Warning building bundle com.unic.delimij.integration:test.webservice:bundle:0.0.1-SNAPSHOT : Exporting packages that are not on the Bundle-Classpath[Jar:dot]:
--- maven-install-plugin:2.3.1:install (default-install) @ test.webservice ---
Installing D:\projects\workspace\fuse-esb\test.webservice\target\test.webservice-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.webservice\0.0.1-SNAPSHOT\test.webservice-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.webservice\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.webservice\0.0.1-SNAPSHOT\test.webservice-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.webservice ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.webservice/0.0.1-SNAPSHOT/test.webservice-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Routing Bundle 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.routing ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.routing ---
Compiling 3 source files to D:\projects\workspace\fuse-esb\test.routing\target\classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.routing ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.routing ---
Nothing to compile - all classes are up to date
--- maven-surefire-plugin:2.3:test (default-test) @ test.routing ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.routing\target\surefire-reports
--- maven-bundle-plugin:2.0.1:bundle (default-bundle) @ test.routing ---
Warning building bundle com.unic.delimij.integration:test.routing:bundle:0.0.1-SNAPSHOT : Instructions in Private-Package, or -testpackages that are never used: org\.apache\.camel\.example\.reportincident\.internal
--- maven-install-plugin:2.3.1:install (default-install) @ test.routing ---
Installing D:\projects\workspace\fuse-esb\test.routing\target\test.routing-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.routing\0.0.1-SNAPSHOT\test.routing-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.routing\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.routing\0.0.1-SNAPSHOT\test.routing-0.0.1-SNAPSHOT.pom
--- maven-bundle-plugin:2.0.1:install (default-install) @ test.routing ---
Parsing file:/C:/Users/nicolas/.m2/repository/repository.xml
Installing com/unic/delimij/integration/test.routing/0.0.1-SNAPSHOT/test.routing-0.0.1-SNAPSHOT.jar
Building UNIC Product :: Web layer 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.web ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.web ---
Compiling 2 source files to D:\projects\workspace\fuse-esb\test.web\target\classes
--- maven-bundle-plugin:2.0.1:manifest (bundle-manifest) @ test.web ---
Warning in manifest for com.unic.delimij.integration:test.web:war:0.0.1-SNAPSHOT : No sub JAR or directory WEB-INF/classes
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.web ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.web ---
Nothing to compile - all classes are up to date
--- maven-surefire-plugin:2.10:test (default-test) @ test.web ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.web\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-war-plugin:2.1-alpha-2:war (default-war) @ test.web ---
Assembling webapp[test.web] in
Copying webapp resources[D:\projects\workspace\fuse-esb\test.web\src\main\webapp]
Webapp assembled in[265 msecs]
Building war: D:\projects\workspace\fuse-esb\test.web\target\test.web-0.0.1-SNAPSHOT.war
--- maven-install-plugin:2.3.1:install (default-install) @ test.web ---
Installing D:\projects\workspace\fuse-esb\test.web\target\test.web-0.0.1-SNAPSHOT.war to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.web\0.0.1-SNAPSHOT\test.web-0.0.1-SNAPSHOT.war
Installing D:\projects\workspace\fuse-esb\test.web\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.web\0.0.1-SNAPSHOT\test.web-0.0.1-SNAPSHOT.pom
Building UNIC Product :: DB Utility 0.0.1-SNAPSHOT
--- maven-resources-plugin:2.5:resources (default-resources) @ test.db ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:compile (default-compile) @ test.db ---
Nothing to compile - all classes are up to date
>>> hibernate3-maven-plugin:2.2:hbm2ddl (default) @ test.db >>>
--- maven-resources-plugin:2.5:resources (default-resources) @ test.db ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
<<< hibernate3-maven-plugin:2.2:hbm2ddl (default) @ test.db <<<
--- hibernate3-maven-plugin:2.2:hbm2ddl (default) @ test.db ---
Configuration XML file loaded: file:/D:/projects/workspace/fuse-esb/test.db/src/config/hibernate.cfg.xml
16:42:43,684 INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
16:42:43,694 INFO org.hibernate.cfg.Environment - Hibernate 3.3.1.GA
16:42:43,698 INFO org.hibernate.cfg.Environment - hibernate.properties not found
16:42:43,701 INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
16:42:43,704 INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
16:42:43,747 INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
Configuration XML file loaded: file:/D:/projects/workspace/fuse-esb/test.db/src/config/hibernate.cfg.xml
16:42:43,750 INFO org.hibernate.cfg.Configuration - configuring from url: file:/D:/projects/workspace/fuse-esb/test.db/src/config/hibernate.cfg.xml
16:42:44,132 INFO org.hibernate.cfg.Configuration - Reading mappings from resource : META-INF/com/unic/delimij/integration/model/Product.hbm.xml
No hibernate properties file loaded.
16:42:44,256 INFO org.hibernate.cfg.Configuration - Configured SessionFactory: product
16:42:44,301 INFO org.hibernate.cfg.HbmBinder - Mapping class: com.unic.delimij.integration.model.Product -> PRODUCT
16:42:44,315 INFO org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
16:42:44,327 INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQL5Dialect
16:42:44,432 INFO org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export
16:42:44,433 INFO org.hibernate.tool.hbm2ddl.SchemaExport - writing generated schema to file: D:\projects\workspace\fuse-esb\test.db\target\hibernate3\sql\create_product.sql
16:42:44,433 INFO org.hibernate.tool.hbm2ddl.SchemaExport - exporting generated schema to database
16:42:44,435 INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
16:42:44,435 INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
16:42:44,436 INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
16:42:44,441 INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql:///test
16:42:44,442 INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=****}
drop table if exists TEST.PRODUCT;
create table TEST.PRODUCT (
PRODUCT_ID bigint not null auto_increment,
PRODUCT_CODE varchar(80),
PRODUCT_NAME varchar(80),
DETAILS varchar(200),
CREATION_DATE datetime,
primary key (PRODUCT_ID)
);
16:42:45,324 INFO org.hibernate.tool.hbm2ddl.SchemaExport - schema export complete
16:42:45,325 INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql:///test
--- maven-resources-plugin:2.5:testResources (default-testResources) @ test.db ---
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
--- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ test.db ---
Nothing to compile - all classes are up to date
--- maven-surefire-plugin:2.10:test (default-test) @ test.db ---
Surefire report directory: D:\projects\workspace\fuse-esb\test.db\target\surefire-reports
-
T E S T S
-
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
--- maven-jar-plugin:2.3.2:jar (default-jar) @ test.db ---
Building jar: D:\projects\workspace\fuse-esb\test.db\target\test.db-0.0.1-SNAPSHOT.jar
--- maven-install-plugin:2.3.1:install (default-install) @ test.db ---
Installing D:\projects\workspace\fuse-esb\test.db\target\test.db-0.0.1-SNAPSHOT.jar to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.db\0.0.1-SNAPSHOT\test.db-0.0.1-SNAPSHOT.jar
Installing D:\projects\workspace\fuse-esb\test.db\pom.xml to C:\Users\nicolas\.m2\repository\com\unic\delimij\integration\test.db\0.0.1-SNAPSHOT\test.db-0.0.1-SNAPSHOT.pom
test.master ....................................... SUCCESS
UNIC Product :: ActiveMQ Bundle ................... SUCCESS
UNIC Product :: Camel Queue Service Bundle ........ SUCCESS
UNIC Product : Features ........................... SUCCESS
UNIC Product :: Model Bundle ...................... SUCCESS
UNIC Product :: Persistance Bundle ................ SUCCESS
UNIC Product :: Service Bundle .................... SUCCESS
UNIC Product :: Web Service Bundle ................ SUCCESS
UNIC Product :: Routing Bundle .................... SUCCESS
UNIC Product :: Web layer ......................... SUCCESS
UNIC Product :: DB Utility ........................ SUCCESS
Finished at: Tue May 22 16:42:45 CEST 2012
16:42:45,888 INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:mysql:///test
Many thanks again for you help.
Kind regards,
Nicolas
-
11. Re: How to features:addUrl from maven repository ?
iocanel May 22, 2012 11:02 AM (in response to simplex-software)From the output, I see that the features.xml is being installed in your repo now. Do you still have issues?
-
12. Re: How to features:addUrl from maven repository ?
simplex-software May 24, 2012 10:52 AM (in response to iocanel)The features.xml is not installed in my repo. And yes, I have issues, this is the issue I have: I don't know what to do in order to add a features repo URL to the server.
-
13. Re: How to features:addUrl from maven repository ?
simplex-software May 24, 2012 11:11 AM (in response to simplex-software)Please don't notice the previous remark, by keeping modifying the POM file I made a typo and the features file wasn't found without even if the plugin was saying it has deployed it. I came this way at my initial version, which works now, and I won't ever know why it didn't work, probably a typo as well.
Many thanks for your help.
Kind regards,
Nicolas
-
14. Re: How to features:addUrl from maven repository ?
iocanel May 24, 2012 11:17 AM (in response to simplex-software)I am glad that its now fixed