Maven Site, No Anonymous Access to Source Repository
Hi, I just made an attempt as I've said, but it failed, I tried to to configure the project-info-reports plugin as following: maven-project-info-reports-plugin but the result soure-repository.html of mvn project-info-reports:scm still includes the anonymous access info and if I try to remove the scm.connection element from my pom.xml, then I can not add my project into continuum using the pom, continuum reports Missing 'connection' sub-element in the 'scm' element in the POM. hmm On 12/19/07, Roger Ye <[EMAIL PROTECTED]> wrote: > > Ah, thanks, I had added the scm.connection element back because continuum > had had problem to checkout the source code, > > So the correct solution is to configure the project info report plugin and > override the anonymousConnection configuration element to avoid it > defaulting to scm.connection. > > I'll try that tomorrow and report the result back here. > > Thank you very much. > > > On 12/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > In your pom file you have defined your SCM connections: > > > > > > > > > > > > > > > > > > is your anonymous access on the web page. > > is your developer access on the website > > is your web access on the website. > > > > See also the definition on the maven model [1], the project info reports > > plugin scm-mojo [2] and the examples for the project info reports plug > > scm-mojo [3] > > > > Hth, > > > > Nick Stolwijk > > > > [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_scm > > [2] > > http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html > > [3] > > http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/scm-report.html > > > > > > > > -Original Message- > > From: [EMAIL PROTECTED] on behalf of Roger Ye > > Sent: Tue 12/18/2007 4:18 PM > > To: Maven Users List > > Subject: Maven Site, No Anonymous Access to Source Repository > > > > Hi, > > > > I'm using mvn site to generate my project site, and in the > > source-repository.html > > page, it contains the anonymous access information to my svn source > > repository, > > but the fact is that we don't provide svn anonymous acess, and > > authentication is > > mandatory, > > > > So the question is how to remove the source repository anonymous access > > information which is false? > > > > Thanks > > Roger > > > > >
Re: Managing remote repositories
On 12/18/07, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote: > I want to have one private repository with all of our internal artifacts > and 3rd party libraries. I also want to have one proxy repository which > includes this private repo, some other private repos, and numerous > public repos. Both would hold releases and snapshots. I want developers > to just be able to add a single mirror in their settings.xml which is a > mirrorOf *. > > Is this going to work, or is there some other way this needs to be > structured? Is this even a good idea, or is there some other best > practice? Archiva has separate mailing lists; you can find subscription info here: http://maven.apache.org/archiva/mail-lists.html There is information about using Archiva as a single repository on this page: http://maven.apache.org/archiva/docs/1.0/userguide/using-repository.html (To eliminate the need to log in, grant the appropriate roles to the 'guest' user.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
want surefire report emailed with build notification
Is there a capability to include a link to the surefire report in the build notification? User doesn't like having to log into Continuum to view it. They want it emailed. What is best approach for sharing this report? -- View this message in context: http://www.nabble.com/want-surefire-report-emailed-with-build-notification-tp14406908p14406908.html Sent from the Continuum - Users mailing list archive at Nabble.com.
Managing remote repositories
I am working on ditching maven-proxy and our current remote repository setup. I intend to replace this with Archiva, but I cannot figure out how the repositories should be structured. I want to have one private repository with all of our internal artifacts and 3rd party libraries. I also want to have one proxy repository which includes this private repo, some other private repos, and numerous public repos. Both would hold releases and snapshots. I want developers to just be able to add a single mirror in their settings.xml which is a mirrorOf *. Is this going to work, or is there some other way this needs to be structured? Is this even a good idea, or is there some other best practice? Also, does anyone know if is possible to configure Archiva to not require authentication? -- Daniel Siegmann FJA-US, Inc. 512 7th Ave. 15th Flr. New York, NY 10018 (212) 840-2618 x139 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Surefire can't find resource if forkMode=once
On Dec 18, 2007 8:21 PM, vetalok <[EMAIL PROTECTED]> wrote: > > Hi all > I have maven 2.0.7 and the latest surefire plugin. > Surefire can't find resource if forkMode=once ( if forkMode=never it works) > Here is snip of code: > BaseStandaloneTest.class.getResource("/login.conf").toString(); Class#getResource delegates to the class ClassLoader getResource method. I.e. the above code is similar to: BaseStandaloneTest.class.getClassLoader().getResource()... Try using the Context ClassLoader. i.e. Thread.currentThread().getContextClassLoader().getResource() J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surefire can't find resource if forkMode=once
Hi all I have maven 2.0.7 and the latest surefire plugin. Surefire can't find resource if forkMode=once ( if forkMode=never it works) Here is snip of code: BaseStandaloneTest.class.getResource("/login.conf").toString(); Any ideas? -- View this message in context: http://www.nabble.com/Surefire-can%27t-find-resource-if-forkMode%3Donce-tp14403769s177p14403769.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webstart-maven-plugin: configuration element missing.
On Dec 18, 2007 6:48 PM, Farrukh Najmi <[EMAIL PROTECTED]> wrote: > > I am trying to generate a webstart distribution for my UI using > org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp > > I created my plugin configuration based upon examples provided. I am > currently getting an error suggesting that the element is missing. > But its not missing. What could be wrong? please post questions related to the webstart mojo plugin to the mojo user list. Thanks, J - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Surefire XML output
This may be a shot out there. But i am having trouble with the XML output on the surefire report. It does not print out the classname on the testcases, and I need it so i can generate meaningful output from it. I noticed XMLReport seems to look for a "group" if its filled in; however, ours is not filled in. Also it doesnt seem like the test suites actually write to it anyway. They do seem to put the classname in message. So is there a) Anyweay to get the XML to output the classname for the testcases b) Anyway to tell surefire to use a different reporter? -- View this message in context: http://www.nabble.com/Surefire-XML-output-tp14402138p14402138.html Sent from the Surefire - Users mailing list archive at Nabble.com.
webstart-maven-plugin: configuration element missing.
I am trying to generate a webstart distribution for my UI using org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp I created my plugin configuration based upon examples provided. I am currently getting an error suggesting that the element is missing. But its not missing. What could be wrong? [DEBUG] webstart-jarsigner-api: resolved to version 1.0-alpha-2-20070823.204122-3 from repository Maven Snapshots [DEBUG] pack200-jdk15: resolved to version 1.0-alpha-2-20070823.204122-7 from repository Maven Snapshots [DEBUG] keytool-maven-plugin: resolved to version 1.0-beta-2-20071206.230813-2 from repository Maven Snapshots [DEBUG] Configuring mojo 'org.codehaus.mojo:webstart-maven-plugin:1.0-alpha-2-SNAPSHOT:jnlp' --> [DEBUG] (f) basedir = /home/najmi/xxx/trunk/myapp-gui-swing [DEBUG] (f) executedProject = [EMAIL PROTECTED] [DEBUG] (f) gzip = false [DEBUG] (f) localRepository = [local] -> file:///home/najmi/.m2/repository [DEBUG] (s) outputJarVersions = false [DEBUG] (f) pack200 = false [DEBUG] (f) remoteRepositories = [DEBUG] (f) settings = [EMAIL PROTECTED] [DEBUG] (f) templateDirectory = /home/najmi/xxx/trunk/myapp-gui-swing/src/main/jnlp [DEBUG] (f) unsignAlreadySignedJars = false [DEBUG] (f) verbose = false [DEBUG] (f) verifyjar = true [DEBUG] (f) workDirectory = /home/najmi/xxx/trunk/myapp-gui-swing/target/jnlp [DEBUG] -- end configuration -- [INFO] [webstart:jnlp] [DEBUG] a fact [EMAIL PROTECTED] [DEBUG] a resol [EMAIL PROTECTED] [DEBUG] basedir /home/najmi/xxx/trunk/myapp-gui-swing [DEBUG] gzip false [DEBUG] pack200 false [DEBUG] project [EMAIL PROTECTED] [DEBUG] zipArchiver [EMAIL PROTECTED] [DEBUG] verifyjar true [DEBUG] verbose false [INFO] [ERROR] BUILD ERROR [INFO] [INFO] configuration element missing. [INFO] [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: configuration element missing. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: configuration element missing. at org.codehaus.mojo.webstart.AbstractJnlpMojo.checkInput(AbstractJnlpMojo.java:602) at org.codehaus.mojo.webstart.AbstractJnlpMojo.execute(AbstractJnlpMojo.java:190) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more And here is my plugin config: org.codehaus.mojo webstart-maven-plugin jnlp ${pom.artifactId}.jnlp myapp.gui.swing.MainUIApp
Re: Maven Site, No Anonymous Access to Source Repository
Ah, thanks, I had added the scm.connection element back because continuum had had problem to checkout the source code, So the correct solution is to configure the project info report plugin and override the anonymousConnection configuration element to avoid it defaulting to scm.connection. I'll try that tomorrow and report the result back here. Thank you very much. On 12/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In your pom file you have defined your SCM connections: > > > > > > > > > is your anonymous access on the web page. > is your developer access on the website > is your web access on the website. > > See also the definition on the maven model [1], the project info reports > plugin scm-mojo [2] and the examples for the project info reports plug > scm-mojo [3] > > Hth, > > Nick Stolwijk > > [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_scm > [2] > http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html > [3] > http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/scm-report.html > > > -Original Message- > From: [EMAIL PROTECTED] on behalf of Roger Ye > Sent: Tue 12/18/2007 4:18 PM > To: Maven Users List > Subject: Maven Site, No Anonymous Access to Source Repository > > Hi, > > I'm using mvn site to generate my project site, and in the > source-repository.html > page, it contains the anonymous access information to my svn source > repository, > but the fact is that we don't provide svn anonymous acess, and > authentication is > mandatory, > > So the question is how to remove the source repository anonymous access > information which is false? > > Thanks > Roger > >
RE: Maven Site, No Anonymous Access to Source Repository
In your pom file you have defined your SCM connections: is your anonymous access on the web page. is your developer access on the website is your web access on the website. See also the definition on the maven model [1], the project info reports plugin scm-mojo [2] and the examples for the project info reports plug scm-mojo [3] Hth, Nick Stolwijk [1] http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_scm [2] http://maven.apache.org/plugins/maven-project-info-reports-plugin/scm-mojo.html [3] http://maven.apache.org/plugins/maven-project-info-reports-plugin/examples/scm-report.html -Original Message- From: [EMAIL PROTECTED] on behalf of Roger Ye Sent: Tue 12/18/2007 4:18 PM To: Maven Users List Subject: Maven Site, No Anonymous Access to Source Repository Hi, I'm using mvn site to generate my project site, and in the source-repository.html page, it contains the anonymous access information to my svn source repository, but the fact is that we don't provide svn anonymous acess, and authentication is mandatory, So the question is how to remove the source repository anonymous access information which is false? Thanks Roger
Re: Code checkout not happening
My scm is Subversion. I am running Continuum 1.1 and Maven 2.0.8. I believe that my scm url is correct. I've been running maven builds manually for a while now. Doesn't continuum get the scm info that it uses from the pom? Or is there somewhere else I have to set this information Emmanuel Venisse wrote: > > What is your scm? > Do you have a correct scm url? > > Emmanuel > > Doug Knesek a écrit : >> I have set up a pretty typical Maven2 Java project and trying to execute >> it >> using Continuum 1.1. >> >> I've set "Build Fresh" to true. >> >> It doesn't seem like continuum is actually doing a checkout of the >> project >> from the source code repository. As a result, the maven compiler >> complains >> that there are "No sources to compile". When I go look into the working >> directory, there is no code at all. >> >> When I previously used Continuum 1.0.3, it seemed that Continuum would, >> by >> default, checkout the code. Is this still the case? Or is there a >> setting >> I'm missing somewhere? >> >> Thanks in advance. >> >> - Doug >> >> >> > > -- View this message in context: http://www.nabble.com/Code-checkout-not-happening-tp14373893p14399336.html Sent from the Continuum - Users mailing list archive at Nabble.com.
Re: Resolving snapshot filenames from Mojo
I ended up stealing some of the code from the Assembly plugin. However, there are a couple of dependencies that it was still always resolving incorrectly. I believe that there may be someone incorrect with the pom's for these projects that is causing the issue: [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.camel:camel-core:1.3-20071212.032026-32) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.activemq:activeio-core:3.1-20071217.010134-271) of type: test-jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.camel:camel-http:1.3-20071212.032026-30) of type: jar; constructing POM artifact instead. [WARNING] Attempting to build MavenProject instance for Artifact (org.apache.commons:commons-io:1.3.2) of type: jar; constructing POM artifact instead. Regardless, I found a workaround for my scenario. Thnaks for the help. -- View this message in context: http://www.nabble.com/Resolving-snapshot-filenames-from-Mojo-tp14338324s177p14399267.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven Site, No Anonymous Access to Source Repository
Hi, I'm using mvn site to generate my project site, and in the source-repository.html page, it contains the anonymous access information to my svn source repository, but the fact is that we don't provide svn anonymous acess, and authentication is mandatory, So the question is how to remove the source repository anonymous access information which is false? Thanks Roger
Can anyone recommend a resource on profile best practices?
Our build is starting to become more complex with various resources and deployment servers. I've been wrestling with the best way to use profiles to help me automatically deploy to these environments (since errors abound trying to reconfigure everything everytime I need to deploy anything). Does anyone know of a resource or case study where they discuss these sorts of issues to help me to finally decide on a solution? Tired of going back and forth on the profiles trying to decide if I'll get bitten later or if there is an easier way. Thanks!!
RE: offline setting inside settings.xml does not work with Maven 2.0.7
Also take a look at the XSD [1]. Here the offline element is of type xs:boolean, which indicates it should be true or false. Default = false, so even if you include the element it is still false. Hth, Nick Stolwijk [1] http://maven.apache.org/xsd/settings-1.0.0.xsd. -Original Message- From: Christian Schmidt-Guetter [mailto:[EMAIL PROTECTED] Sent: Tue 12/18/2007 3:05 PM To: Maven Users List Subject: Re: offline setting inside settings.xml does not work with Maven 2.0.7 Hello Guillaume, Guillaume Lederrey schrieb: > Try like this : > > > true > > ... That works fine! - Thank you very much. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: offline setting inside settings.xml does not work with Maven 2.0.7
Hello Guillaume, Guillaume Lederrey schrieb: Try like this : true ... That works fine! - Thank you very much. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: offline setting inside settings.xml does not work with Maven 2.0.7
Try like this : true On 18/12/2007, Christian Schmidt-Guetter <[EMAIL PROTECTED]> wrote: > Hello list, > > according to documentation at > http://maven.apache.org/ref/2.0.4/maven-settings/settings.html > , Maven should avoid all downloads if > > is set in ~/.m2/settings.xml : > > +++ Cite start > Element Description > > offline Indicate whether maven should operate in offline mode full-time. > Cite end = > > However, this does not work for me, e.g. Maven *does* download > (sometimes temporarily invalid) JAR files in offline mode. > Note, that "maven -o " *will* work offline as expected > (but I want a permanent solution). > > My environment: > > $ mvn --version > Maven version: 2.0.7 > Java version: 1.5.0_11 > OS name: "linux" version: "2.6.20-16-generic" arch: "i386" > > $ cat ~/.m2/settings.xml > > > > > Do I something wrong or is this a bug...? > > > Thank you very much for your help! > Christian > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.wordpress.com/ * http://rwandatech.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
offline setting inside settings.xml does not work with Maven 2.0.7
Hello list, according to documentation at http://maven.apache.org/ref/2.0.4/maven-settings/settings.html , Maven should avoid all downloads if is set in ~/.m2/settings.xml : +++ Cite start Element Description offline Indicate whether maven should operate in offline mode full-time. Cite end = However, this does not work for me, e.g. Maven *does* download (sometimes temporarily invalid) JAR files in offline mode. Note, that "maven -o " *will* work offline as expected (but I want a permanent solution). My environment: $ mvn --version Maven version: 2.0.7 Java version: 1.5.0_11 OS name: "linux" version: "2.6.20-16-generic" arch: "i386" $ cat ~/.m2/settings.xml Do I something wrong or is this a bug...? Thank you very much for your help! Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 + Classpath
On 18/12/2007, Steinar Bang <[EMAIL PROTECTED]> wrote: > > > "Stuart McCulloch" <[EMAIL PROTECTED]>: > > > well, there are system scope dependencies that let you refer to > > library artifacts in a fixed location like "/usr/share/lib/..." but > > their use is discouraged, because it makes things less portable: > > > > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > > I tried doing this: > >org.eclipse.osgi >org.eclipse.osgi >3.2.1-R32x_v20060919 >system > > ${basedir}/someosgiapp/org.eclipse.osgi_3.2.1_R32x_v20060919.jar > > > (I first tried basing to be based on > ${project.build.directory}, since the OSGi app is downloaded and > unpacked with dependency:unpack, but that didn't work, since systemPath > needs to be absolute. However ${basedir} seems to be absolute, so using > it got me past that stage) I did a quick test and using ${basedir} appeared to work for me - note that the basedir is the directory with the pom, so if you unpack to "target/someosgiapp" then you need to use ${basedir}/target/someosgiapp/...etc... > > also check which build phase you do the unpacking, as the dependency will be checked during [resources:resources] - so you probably need to bind the unpacking goal to the generate-resources phase... But maven didn't like it: > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Failed to resolve artifact. > > Missing: > -- > 1) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.1-R32x_v20060919 > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.eclipse.osgi -DartifactId= > org.eclipse.osgi \ > -Dversion=3.2.1-R32x_v20060919 -Dpackaging=jar > -Dfile=/path/to/file > > Path to dependency: > 1) com.somecompany.someapp:com.somecompany.someapp:jar:0.1.0 > 2) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.1-R32x_v20060919 > > -- > 1 required artifact is missing. > > for artifact: > com.somecompany.someapp:com.somecompany.someapp:jar:0.1.0 > > from the specified remote repositories: > [snip!] > > There is a version of the OSGi runtime with the given > groupId/artifactId/version already in my local maven repository. > > Here's its POM: > > > 4.0.0 > org.eclipse.osgi > org.eclipse.osgi > 3.2.1-R32x_v20060919 > > deployed > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Stuart
Re: Maven2 + Classpath
> "Stuart McCulloch" <[EMAIL PROTECTED]>: > FYI, you might be interested in: >http://wiki.ops4j.org/confluence/x/A4A6Pax-Runner >http://wiki.ops4j.org/confluence/x/8QPax-Construct > which aim to make OSGi development and deployment a breeze with Maven Thanx for the tip! I'll check them out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven2 + Classpath
> "Stuart McCulloch" <[EMAIL PROTECTED]>: > well, there are system scope dependencies that let you refer to > library artifacts in a fixed location like "/usr/share/lib/..." but > their use is discouraged, because it makes things less portable: > http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html I tried doing this: org.eclipse.osgi org.eclipse.osgi 3.2.1-R32x_v20060919 system ${basedir}/someosgiapp/org.eclipse.osgi_3.2.1_R32x_v20060919.jar (I first tried basing to be based on ${project.build.directory}, since the OSGi app is downloaded and unpacked with dependency:unpack, but that didn't work, since systemPath needs to be absolute. However ${basedir} seems to be absolute, so using it got me past that stage) But maven didn't like it: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.1-R32x_v20060919 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.eclipse.osgi -DartifactId=org.eclipse.osgi \ -Dversion=3.2.1-R32x_v20060919 -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) com.somecompany.someapp:com.somecompany.someapp:jar:0.1.0 2) org.eclipse.osgi:org.eclipse.osgi:jar:3.2.1-R32x_v20060919 -- 1 required artifact is missing. for artifact: com.somecompany.someapp:com.somecompany.someapp:jar:0.1.0 from the specified remote repositories: [snip!] There is a version of the OSGi runtime with the given groupId/artifactId/version already in my local maven repository. Here's its POM: 4.0.0 org.eclipse.osgi org.eclipse.osgi 3.2.1-R32x_v20060919 deployed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dependency rpoblem in multi-module project
Hello ! When trying to build my multi-module project, I get a "missing dependency" from one module to the other. To be clearer : I have multiple modules, declared in the main pom.xml as : M2_Artifacts/shared M2_Artifacts/server M2_Artifacts/client M2_Artifacts/util M2_Artifacts/batch M2_Artifacts/test "shared" doesnt depend on any other module, but "server" depends on "shared". I thought that maven would be able to build the modules in the order specified. If i build manually each module in that order, it works, but when trying to do a "mvn install" from the main directory, the build fails with a dependency error (see bleow). Any idea ? Thanks ! [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) libAfc.EvenementMetierPoc:EvenementMetierPoc_shared:jar:0.1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=libAfc.EvenementMetierPoc -DartifactId= EvenementMetierPoc_shared \ -Dversion=0.1.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=libAfc.EvenementMetierPoc -DartifactId=Even ementMetierPoc_shared \ -Dversion=0.1.0 -Dpackaging=jar -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) libAfc.EvenementMetierPoc:EvenementMetierPoc_server:jar:0.1.0 2) libAfc.EvenementMetierPoc:EvenementMetierPoc_shared:jar:0.1.0 -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.wordpress.com/ * http://rwandatech.wordpress.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]