Re: How setup java-first webservice client-jar in Maven?
You want to generate the wsdl as part of the maven build, so that you could deploy it to a repo. I have never used the code-first approach with Maven, but I'm thinking that the wsgen mojo [1] should do what you want. Just specify that the wsdl should be generated. /Anders [1] http://jax-ws-commons.java.net/jaxws-maven-plugin/wsgen-mojo.html On Mon, Nov 14, 2011 at 12:21, rop wrote: > Need some advice on how to setup maven-build > of the client-jar for java-first webservices... > > Previously, I have been working with wsdl-first webservices, > where you simply save the wsdl in version-control > and then generate the java client classes from it. > > But now I have switched to another project, > where most webservices are already existing as *java-first*, > and we should now convert the builds from Ant to Maven. > > What is the best way to set this up in maven and version-control > to ensure you get the latest version of the wsdl? > > Obviously you dont want to save the wsdl into version-control, > since it is generated at runtime... > > I guess one way is in your maven-build to start app-server on localhost, > deploy the webservice to it, > then build the client-jar from the localhost-url. > Problem is the build might then fail if some dependencies > (db-connections, other webservice, etc) are not available at build-time. > > So is there some better way to do this? > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/How-setup-java-first-webservice-client-jar-in-Maven-tp4990484p4990484.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Properties in settings.xml does not work for system scoped dependencies
Hi there, I've been a maven user since the early 1.0 days and have contributed patches at various times for the ejb-plugin, ear-plugin and others. I've also had the unfortunate experience of having to use WebLogic 10+ to create useable maven poms for our projects. In fact, when I read the OP I knew he was talking about Weblogic even though he did not mention it. The *only* way I've been able to do this successfully was with a system scoped dependency on the weblogic.jar. This is because weblogic contains a maze of relative manifest class paths that are truly mind boggling. The very first class path entry in weblogic.jar looks like: ../../../modules/features/weblogic.server.modules_10.3.5.0.jar (plus a dozen or more others) That modules directory contains 465 (very OSGI looking) jars and sub directories. Do you really think it's practical to install all of these into a repository manager? How would you generate the dependencies for each pom? This would not be an issue for any "plain old JEE" application. However, if you have any need at all for weblogic specific APIs then a system scoped dependency is the only practical way. Even when you do figure out which one of those ~500 jars contains your API, you then need to read it's manifest and pick out its dependencies, and then the dependencies' dependencies, etc. If someone has a simple solution to this then I'd like to hear it too. Otherwise, *please* restore the system scope functionality. Cheers, Steve C On 14/11/2011, at 2:55 AM, Benson Margulies wrote: > No possible licensing restriction can prevent you from having your own > shared repository with nexus or archiva or artifactory and pushing > whatever you want to it. > > For that matter, it's not too hard to write a script that calls > install:install-file on each of a pile of jar files. You can't do this > in the reactor and then use the results (AFAIK), but you can run this > and then run the build. > > In other words, anything you can do with system scope you can do with > less headaches with a repo manager or instal:install-file. > > > On Sat, Nov 12, 2011 at 8:20 AM, Bengt Rodehav wrote: >> Last time I went through this I never came all the way to a complete list >> but I do remember there were lots of jars missing. I guess I'll have to >> reiterate this again since system scope doesn't seem to be supported >> anymore. >> >> /Bengt >> >> 2011/11/12 Wayne Fay >> >>> What else do you need? Why not full client + some reasonable (small) >>> handful of other dependencies? >>> >>> Wayne >>> >>> On Fri, Nov 11, 2011 at 5:00 PM, Bengt Rodehav wrote: It works but the full client is not enough for us to be able to build our application. Den 11 nov 2011 23:11 skrev "Ryan Connolly" : > > Does this no longer work? > http://docs.oracle.com/cd/E12840_01/wls/docs103/client/t3.html > On Nov 11, 2011 3:38 PM, "Bengt Rodehav" wrote: > >> Stephen and Wayne, >> >> I agree that using system scope is undesirable. However, there is a reason >> why maven has had this support - it is needed in real life. In my case, I >> use Weblogic. When first trying to migrate our old ant based build system >> to maven, I started out by trying to put the Weblogic jar:s in the >>> maven >> repo. It just wasn't doable. They have split the big, all >>> encompassing, jar >> file from previous versions into hundreds of individual jar files. I gave >> up after a while. I guess if I could find a tool that could convert >>> all >> these jars into one "super jar" then I could put that jar in the maven >> repo. I'm not sure that Oracle's licensing rules would allow it >>> though. >> >> Dropping support like this because you don't think it's the best way >>> to >> handle things will not give you a loyal user base. We need to solve these >> kind of issues somehow. Before you remove support you must provide an >> alternate solution. Requiring that hundreds of proprietary jars have >>> to be >> put in the maven repo (and updated each time we upgrade Weblogic) is just >> not realistic. I've been searching for a good tool that can traverse >>> the >> manifest classpath's and create a single jar from all individual jars. Do >> you know of any such tool? >> >> The transitive dependency problem is not exactly the way you describe >>> it >> Stephen. I don't need transitive dependencies from a system scoped >> dependency but I want the transitive dependencies to work up to the system >> scoped dependency: >> >> If A depends on B that depends on S (via a system scoped dependency), then >> maven should be able to include S on A's build classpath. >> >> The way maven works right now I tend to agree that system scoped >> dependencies are useless. This is because their location must be hard coded
Re: browsing maven repo
Hi! Yes I understand. So, I would like to get from a repository all the groupId, artifactId, version "3s" and put it into an SQL DB. Then I want to draw a graph using my DB (POM = node, dependency = edge), and finally I want to put in my local POM and see how the dependency tree looklike in the big graph. I need this for my thesis. So I need the information somehow what 3s are on a repository. Thank you! Ogi Ps: Puno ti hvala :). Harom nyelven is mehet a beszelgetes :) 2011/11/14 Tamás Cservenák > Hi, > > well, as I said, on remote reposes Indexer can't do much IF index is > not published. And crawling a repo is considered a bad behavior, so be > polite! :) > > Could you describe a bit more about your use case? > > > Thanks, > ~t~ > > PS: Ma nema problema Ogi, i drugi put! Moze i direktno :D > > > On Mon, Nov 14, 2011 at 6:39 PM, Ognjen Bubalo > wrote: > > Thank you (Koszonom) for your response! > > > > By given repository I mean a remote repository address (http,https..). I > > thought that Nexus Indexer can only manage local repo. Anyway, if I > > understand, indexing a repo is done on the repo side, and I cannot use it > > for sure. > > I need something like: http://search.maven.org/#api, but I have 2 > problem > > with this API: > > 1. I cannot get in an xml or json the whole artifacts information set > > (select *), only if I search for a specific artifact or group. > > 2. This works maybe only on this repo, I need something for my > application > > (an API or another application), to explore any remote repository > > programmatically (using java code). One repository is good for a start > also > > if there is a solution. > > > > I am new in this world, please excuse me. > > > > Thank you very much! > > > > Br, Ogi > > > > 2011/11/14 Tamás Cservenák > > > >> Hm, > >> > >> a typo: > >> > >> Maven3 (nor Maven2) does not... > >> > >> > >> Thanks, > >> ~t~ > >> > >> 2011/11/14 Tamás Cservenák : > >> > Hi Ogi, > >> > > >> > Maven3 (not was Maven2) does not use or consume or need index at > all... > >> > > >> > For indexer API uses you can see some examples here: > >> > https://github.com/cstamas/maven-indexer-examples > >> > > >> > For CLI uses (to create indexes for repositories), unsure is there any > >> > up to date doco, but just gleaning over the CLI source should work: > >> > > >> > https://github.com/apache/maven-indexer/blob/trunk/indexer-core/src/main/java/org/apache/maven/index/cli/NexusIndexerCli.java > >> > > >> > Now the question is: is "given repository" you mention under your > >> > governance or not... since if it's NOT and it does NOT publish indexes > >> > either, Maven Indexer will not help you. > >> > > >> > > >> > Thanks, > >> > ~t~ > >> > > >> > > >> > On Mon, Nov 14, 2011 at 5:57 PM, Ognjen Bubalo > >> wrote: > >> >> Hi! > >> >> > >> >> I would like to get a list of all artifacts placed in a given > >> repository. I > >> >> think I could use Maven Indexer but I am not sure it works with > Maven 3. > >> >> Also I couldn't find any example using Maven Indexer, to know where > to > >> >> start. I would appreciate if somebody put me on right direction, > >> recommend > >> >> something. > >> >> > >> >> Thank you! > >> >> > >> >> Br, Ogi > >> >> > >> > > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: browsing maven repo
Hi, well, as I said, on remote reposes Indexer can't do much IF index is not published. And crawling a repo is considered a bad behavior, so be polite! :) Could you describe a bit more about your use case? Thanks, ~t~ PS: Ma nema problema Ogi, i drugi put! Moze i direktno :D On Mon, Nov 14, 2011 at 6:39 PM, Ognjen Bubalo wrote: > Thank you (Koszonom) for your response! > > By given repository I mean a remote repository address (http,https..). I > thought that Nexus Indexer can only manage local repo. Anyway, if I > understand, indexing a repo is done on the repo side, and I cannot use it > for sure. > I need something like: http://search.maven.org/#api, but I have 2 problem > with this API: > 1. I cannot get in an xml or json the whole artifacts information set > (select *), only if I search for a specific artifact or group. > 2. This works maybe only on this repo, I need something for my application > (an API or another application), to explore any remote repository > programmatically (using java code). One repository is good for a start also > if there is a solution. > > I am new in this world, please excuse me. > > Thank you very much! > > Br, Ogi > > 2011/11/14 Tamás Cservenák > >> Hm, >> >> a typo: >> >> Maven3 (nor Maven2) does not... >> >> >> Thanks, >> ~t~ >> >> 2011/11/14 Tamás Cservenák : >> > Hi Ogi, >> > >> > Maven3 (not was Maven2) does not use or consume or need index at all... >> > >> > For indexer API uses you can see some examples here: >> > https://github.com/cstamas/maven-indexer-examples >> > >> > For CLI uses (to create indexes for repositories), unsure is there any >> > up to date doco, but just gleaning over the CLI source should work: >> > >> https://github.com/apache/maven-indexer/blob/trunk/indexer-core/src/main/java/org/apache/maven/index/cli/NexusIndexerCli.java >> > >> > Now the question is: is "given repository" you mention under your >> > governance or not... since if it's NOT and it does NOT publish indexes >> > either, Maven Indexer will not help you. >> > >> > >> > Thanks, >> > ~t~ >> > >> > >> > On Mon, Nov 14, 2011 at 5:57 PM, Ognjen Bubalo >> wrote: >> >> Hi! >> >> >> >> I would like to get a list of all artifacts placed in a given >> repository. I >> >> think I could use Maven Indexer but I am not sure it works with Maven 3. >> >> Also I couldn't find any example using Maven Indexer, to know where to >> >> start. I would appreciate if somebody put me on right direction, >> recommend >> >> something. >> >> >> >> Thank you! >> >> >> >> Br, Ogi >> >> >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: browsing maven repo
Thank you (Koszonom) for your response! By given repository I mean a remote repository address (http,https..). I thought that Nexus Indexer can only manage local repo. Anyway, if I understand, indexing a repo is done on the repo side, and I cannot use it for sure. I need something like: http://search.maven.org/#api, but I have 2 problem with this API: 1. I cannot get in an xml or json the whole artifacts information set (select *), only if I search for a specific artifact or group. 2. This works maybe only on this repo, I need something for my application (an API or another application), to explore any remote repository programmatically (using java code). One repository is good for a start also if there is a solution. I am new in this world, please excuse me. Thank you very much! Br, Ogi 2011/11/14 Tamás Cservenák > Hm, > > a typo: > > Maven3 (nor Maven2) does not... > > > Thanks, > ~t~ > > 2011/11/14 Tamás Cservenák : > > Hi Ogi, > > > > Maven3 (not was Maven2) does not use or consume or need index at all... > > > > For indexer API uses you can see some examples here: > > https://github.com/cstamas/maven-indexer-examples > > > > For CLI uses (to create indexes for repositories), unsure is there any > > up to date doco, but just gleaning over the CLI source should work: > > > https://github.com/apache/maven-indexer/blob/trunk/indexer-core/src/main/java/org/apache/maven/index/cli/NexusIndexerCli.java > > > > Now the question is: is "given repository" you mention under your > > governance or not... since if it's NOT and it does NOT publish indexes > > either, Maven Indexer will not help you. > > > > > > Thanks, > > ~t~ > > > > > > On Mon, Nov 14, 2011 at 5:57 PM, Ognjen Bubalo > wrote: > >> Hi! > >> > >> I would like to get a list of all artifacts placed in a given > repository. I > >> think I could use Maven Indexer but I am not sure it works with Maven 3. > >> Also I couldn't find any example using Maven Indexer, to know where to > >> start. I would appreciate if somebody put me on right direction, > recommend > >> something. > >> > >> Thank you! > >> > >> Br, Ogi > >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Maven Ant Tasks: Reading from an existing pom
I'm attempting to run a simple ant task that reads an existing pom.xml. However, when the task gets to the pom reading line, it says: [artifact:pom] Unable to create dummy Pom [artifact:pom] Component descriptor cannot be found in the component repository: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutlib. Here's the build.xml: ... Any ideas? Thanks, Mike
Re: browsing maven repo
Hm, a typo: Maven3 (nor Maven2) does not... Thanks, ~t~ 2011/11/14 Tamás Cservenák : > Hi Ogi, > > Maven3 (not was Maven2) does not use or consume or need index at all... > > For indexer API uses you can see some examples here: > https://github.com/cstamas/maven-indexer-examples > > For CLI uses (to create indexes for repositories), unsure is there any > up to date doco, but just gleaning over the CLI source should work: > https://github.com/apache/maven-indexer/blob/trunk/indexer-core/src/main/java/org/apache/maven/index/cli/NexusIndexerCli.java > > Now the question is: is "given repository" you mention under your > governance or not... since if it's NOT and it does NOT publish indexes > either, Maven Indexer will not help you. > > > Thanks, > ~t~ > > > On Mon, Nov 14, 2011 at 5:57 PM, Ognjen Bubalo wrote: >> Hi! >> >> I would like to get a list of all artifacts placed in a given repository. I >> think I could use Maven Indexer but I am not sure it works with Maven 3. >> Also I couldn't find any example using Maven Indexer, to know where to >> start. I would appreciate if somebody put me on right direction, recommend >> something. >> >> Thank you! >> >> Br, Ogi >> > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: browsing maven repo
Hi Ogi, Maven3 (not was Maven2) does not use or consume or need index at all... For indexer API uses you can see some examples here: https://github.com/cstamas/maven-indexer-examples For CLI uses (to create indexes for repositories), unsure is there any up to date doco, but just gleaning over the CLI source should work: https://github.com/apache/maven-indexer/blob/trunk/indexer-core/src/main/java/org/apache/maven/index/cli/NexusIndexerCli.java Now the question is: is "given repository" you mention under your governance or not... since if it's NOT and it does NOT publish indexes either, Maven Indexer will not help you. Thanks, ~t~ On Mon, Nov 14, 2011 at 5:57 PM, Ognjen Bubalo wrote: > Hi! > > I would like to get a list of all artifacts placed in a given repository. I > think I could use Maven Indexer but I am not sure it works with Maven 3. > Also I couldn't find any example using Maven Indexer, to know where to > start. I would appreciate if somebody put me on right direction, recommend > something. > > Thank you! > > Br, Ogi > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
browsing maven repo
Hi! I would like to get a list of all artifacts placed in a given repository. I think I could use Maven Indexer but I am not sure it works with Maven 3. Also I couldn't find any example using Maven Indexer, to know where to start. I would appreciate if somebody put me on right direction, recommend something. Thank you! Br, Ogi
How setup java-first webservice client-jar in Maven?
(apologies, if you get this twice - I tried posting on nabble, but get "This post has NOT been accepted by the mailing list yet." - dont know why - so now trying directly to the mailing-list) I need some advice on how to setup maven-build of the client-jar for java-first webservices... Previously, I have been working with wsdl-first webservices, where you simply save the wsdl in version-control and then generate the java client classes from it. But now I have switched to another project, where most webservices are already existing as *java-first*, and we should now convert the builds from Ant to Maven. What is the best way to set this up in maven and version-control to ensure you get the latest version of the wsdl? Obviously you dont want to save the wsdl into version-control, since it is generated at runtime... I guess one way is in your maven-build to start app-server on localhost, deploy the webservice to it, then build the client-jar from the localhost-url. Problem is the build might then fail if some dependencies (db-connections, other webservice, etc) are not available at build-time. So is there some better way to do this?
How setup java-first webservice client-jar in Maven?
Need some advice on how to setup maven-build of the client-jar for java-first webservices... Previously, I have been working with wsdl-first webservices, where you simply save the wsdl in version-control and then generate the java client classes from it. But now I have switched to another project, where most webservices are already existing as *java-first*, and we should now convert the builds from Ant to Maven. What is the best way to set this up in maven and version-control to ensure you get the latest version of the wsdl? Obviously you dont want to save the wsdl into version-control, since it is generated at runtime... I guess one way is in your maven-build to start app-server on localhost, deploy the webservice to it, then build the client-jar from the localhost-url. Problem is the build might then fail if some dependencies (db-connections, other webservice, etc) are not available at build-time. So is there some better way to do this? -- View this message in context: http://maven.40175.n5.nabble.com/How-setup-java-first-webservice-client-jar-in-Maven-tp4990484p4990484.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Assembly plugin and multiple dependency sets
Dear All, I would need better help in understanding how the Maven Assembly plugin works. I am using a third-party application server which automatically generates an assembly.xml and I am having a problem: I have a multi-module maven project and if I add one maven dependency in a specific module (called common) this is correctly bundled, if I put in the other module this is not bundled and produces a ClassNotFoundException when deploying on the app server. This is how my assembly.xml looks like. assemble-pu jar dir false target/classes keep / **/** false false lib Gottware:common false true true lib Gottware:common Why are there two dependencySet? Is because there are two format? How can I make all the dependencies from all the module get included in the resulting jar? Best Regards Edmondo Porcu Associate - Financial software architect Avenue de Rhodanie 48 1007 Lausanne Switzerland. Dir +41 (0) 21 560 30 82 Fax +41 (0) 21 617 71 55 Email : edmondo.po...@gottexbrokers.com The information in this email is confidential and may be legally privileged. If you are not the intended recipient, you must not read, use or disseminate the information. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the Gottex Group of Companies for any loss or damage arising in any way from its use. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Unable to download plugin from Nexus
It looks to me like your settings.xml isn't defining a pluginRepository. On Thu, Nov 10, 2011 at 7:09 AM, brian2011 wrote: > Hi, > > I'm using Maven 2.2.1 and Nexus 1.7.2. Nexus is configured as an internal > repository manager with a single nexus group to external repository such as > maven central. > > Running mvn site, I'm getting the following error: > > - > [DEBUG] Wagons to register: [https, scp, https-httpclient, scpexe, sftp, > http-lightweight, dav+https, http-httpclient, https-lightweight, dav+http, > http, file,davs, dav] > [INFO] > > [INFO] Building Pricing Project > [INFO] task-segment: [site:site] > [INFO] > > [DEBUG] maven-javadoc-plugin: resolved to version 2.8.1-SNAPSHOT from > repository central > [DEBUG] Skipping disabled repository central > [DEBUG] maven-javadoc-plugin: using locally installed snapshot > [DEBUG] Skipping disabled repository central > [DEBUG] Using mirror: > http://hkgpsm02420:8081/nexus/content/groups/public (id: pub-repo) > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error building POM (may not be this project's POM). > > > Project ID: org.apache.maven.plugins:maven-javadoc-plugin > > Reason: Error getting POM for > 'org.apache.maven.plugins:maven-javadoc-plugin' from the repository: Failed > to resolve artifact, possibly due to a repository list > that is not appropriately equipped for this artifact's metadata. > org.apache.maven.plugins:maven-javadoc-plugin:pom:2.8.1-SNAPSHOT > > from the specified remote repositories: > pub-repo (http://hkgpsm02420:8081/nexus/content/groups/public) > > for project org.apache.maven.plugins:maven-javadoc-plugin > > The download of the required dependencies is working as expected. Only the > plugins are not retrieved from the internal repository. Any ideas? > > Thanks. > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Unable-to-download-plugin-from-Nexus-tp4980858p4980858.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org