Re: How can I add path in classpath entry in Manifest file?
Hi, I don't know if this is exactly what you are looking for, but I had to add a special path to my manifest classpath entry once. The solution was the following: maven-jar-plugin true ../conf/ This added all the dependencies and the conf path to the classpath. HTH, Marco Alexander Vaysberg wrote: Hi, not only. Look heir: - http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html. Worts: Java Sun: * Class-Path : The value of this attribute specifies the relative URLs of the extensions or libraries that this application or extension needs. URLs are separated by one or more spaces. The application or extension class loader uses the value of this attribute to construct its internal search path. That means you can in Manifest only jars added, but not a classpath. The classpath you mast added if you call the java, or added the jars to Manifest. That alls. Alexander Vaysberg youhaodeyi schrieb: Hi, I have read this but this is not what I want. I want to add path on classpath. This only tells me how to add dependent on classpath. Alexander Vaysberg wrote: Hi, you can it's using this tutorial: - http://maven.apache.org/shared/maven-archiver/examples/classpath.html. The jar-plugin has many of the properties. It's heir: - http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html. Alexander Vaysberg youhaodeyi schrieb: I have some resource files which should be defined in classpath entry in Manifest.mf in a jar. I found that I can use jar plugin to add dependency on classpath but I can't add a customize path on the classpath. How can I do this with maven? thanks. - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Relative images location and the pdf-plugin
Hi Lukas, I opened an issue (http://jira.codehaus.org/browse/MPDF-7). Your suggestion about the "../" seems also not to work :-( But I added a sample project to the jira, which both relative link versions in the corresponding apt file. -Marco Lukas Theussl wrote: It works if you start the relative link with "../" instead of "./../". The latter should work as well though, please open an issue: http://jira.codehaus.org/browse/MPDF Cheers, -Lukas Marco Huber wrote: Hi folk, I tried the maven-pdf-plugin generating a pdf from our site information. The text and all is generated correctly, but I got sometimes problems with images. We have a part of our documentation in sub folders under the "apt" folder and refers to the image relative way like: (file under "apt/administration/overview.apt") // SNIPPED START >> Following the overview [./../images/overview.png] // << SNIPPED END The created html pages are correct. If I create the pdf I got ERROR [org.apache.fop.fo.FONode:83] 2009-04-03 11:35:05,250 - Image not found: ./../images/overview.png Our layout is as followed: site |-> site.xml | /-apt | |-> index.apt | | | /-administration | -> overview.apt (Refers to the image) | | /-resources | /-images |-> overview.png (refered file) Is this a bug in the maven-pdf-plugin? Or how I must refer to the images? Regards Marco - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Relative images location and the pdf-plugin
Hi folk, I tried the maven-pdf-plugin generating a pdf from our site information. The text and all is generated correctly, but I got sometimes problems with images. We have a part of our documentation in sub folders under the "apt" folder and refers to the image relative way like: (file under "apt/administration/overview.apt") // SNIPPED START >> Following the overview [./../images/overview.png] // << SNIPPED END The created html pages are correct. If I create the pdf I got ERROR [org.apache.fop.fo.FONode:83] 2009-04-03 11:35:05,250 - Image not found: ./../images/overview.png Our layout is as followed: site |-> site.xml | /-apt | |-> index.apt | | | /-administration | -> overview.apt (Refers to the image) | | /-resources | /-images |-> overview.png (refered file) Is this a bug in the maven-pdf-plugin? Or how I must refer to the images? Regards Marco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to integrate xhtml files into a maven generated site?
Thank you Lukas for your answer. So I wait for maven 2.1 until I can add my documentation to the project :-( Marco Lukas Theussl wrote: This doesn't work with doxia-1.0, it's fixed in doxia-1.1 which is not used yet by the site plugin. There is a snapshot of the site plugin (version 2.1-SNAPSHOT) that uses doxia 1.1 but it requires maven 2.1 (currently being voted on, should be released next week). Note that the html source files need to have an extension .xhtml. HTH, -Lukas Marco Huber wrote: Hi folk, I have a number of xhtml files, which I want to integrate into my site, but I don't want to change them into the apt format etc. On the doxia site I see, that it should be possible if I create a sub directory "xhtml" and place there my files with the extension ".xhtml". I also add the doxia-module-xhtml in my build section: ... org.apache.maven.plugins maven-site-plugin org.apache.maven.doxia doxia-module-xhtml 1.0 ... But non of my xhtml file are in the target folder after calling mvn site:site. Do I miss something? Do I have to adjust my files? Hope someone could give me a hint whats wrong. Thanks Marco - 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to integrate xhtml files into a maven generated site?
Hi folk, I have a number of xhtml files, which I want to integrate into my site, but I don't want to change them into the apt format etc. On the doxia site I see, that it should be possible if I create a sub directory "xhtml" and place there my files with the extension ".xhtml". I also add the doxia-module-xhtml in my build section: ... org.apache.maven.plugins maven-site-plugin org.apache.maven.doxia doxia-module-xhtml 1.0 ... But non of my xhtml file are in the target folder after calling mvn site:site. Do I miss something? Do I have to adjust my files? Hope someone could give me a hint whats wrong. Thanks Marco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Central repository for snapshots?
Hi Jason, you should add: http://repository.apache.org/snapshots/ There lives the snapshots from the apache projects. HTH, Marco Jason Voegele wrote: Hello all, I am trying to compile the latest trunk version of maven-archetype, which uses maven-parent-11-SNAPSHOT. Of course, this maven-parent-11-SNAPSHOT does not exist in the central repository because it is a SNAPSHOT, and therefore the build fails. Is there a repository I can put in my settings.xml that contains this and other necessary artifacts to build maven-archetype? Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can no longer create war file
Hi Johan, if these are your complete pom.xml's, than you must have an other problem. There are no classifier in there, even only the dependency between core and web. The classifier was only a guess. Regards Marco Johan S wrote: Hi I think I have a similar problem but don't know how to solve it. I have a structure like: parent | |- core | |- web I uploaded my pom files. I renamed them after each module. http://www.nabble.com/file/p22295674/pom-core.xml pom-core.xml http://www.nabble.com/file/p22295674/pom-web.xml pom-web.xml http://www.nabble.com/file/p22295674/pom-parent.xml pom-parent.xml Johan Marco Huber wrote: Hi Johan, in our project we have the following in the build section in the parent pom: org.apache.maven.plugins maven-jar-plugin ${config.suffix} org.apache.maven.plugins maven-deploy-plugin ${config.suffix} The ${config.suffix} is a profile dependend classifier for different configurations of our application. The problem was that we have a structure like: parent | |- core | |- client | |- services and all sub modules were generated with classifiers, like core-dev.jar, client-dev.jar, services-dev.jar etc. But the pom.xml's of the sub modules were not updated in the repository. I thought you have a similar problem, that one of your sub modules have a classifier, that you use in your war assembly. Regards Marco - http://www.procensor.se http://www.mobilepost.se http://www.resultreporter.com http://www.butiksbelysning.se - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can no longer create war file
Hi Johan, in our project we have the following in the build section in the parent pom: org.apache.maven.plugins maven-jar-plugin ${config.suffix} org.apache.maven.plugins maven-deploy-plugin ${config.suffix} The ${config.suffix} is a profile dependend classifier for different configurations of our application. The problem was that we have a structure like: parent | |- core | |- client | |- services and all sub modules were generated with classifiers, like core-dev.jar, client-dev.jar, services-dev.jar etc. But the pom.xml's of the sub modules were not updated in the repository. I thought you have a similar problem, that one of your sub modules have a classifier, that you use in your war assembly. Regards Marco Johan S wrote: Hi Marco Could you give me an example with classifiers. I don't think I using it. This isn't the only project that it appears in. Johan Marco Huber wrote: Hi Johan, have you add classifiers to your project or a sub module of your project? I had once the problem, that I got this \target\classes access denied error, because the install plugin had problems with classifiers. Think it's fixed. Hope that helps. Marco - http://www.procensor.se http://www.mobilepost.se http://www.resultreporter.com http://www.butiksbelysning.se - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can no longer create war file
Hi Johan, have you add classifiers to your project or a sub module of your project? I had once the problem, that I got this \target\classes access denied error, because the install plugin had problems with classifiers. Think it's fixed. Hope that helps. Marco Johan S wrote: I have tried that without any luck. Still stuck... Brett Randall-2 wrote: What happens if you "mvn clean" or otherwise brute-force delete the offending folder: C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes (Access is denied) Brett - http://www.procensor.se http://www.mobilepost.se http://www.resultreporter.com http://www.butiksbelysning.se - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Working with dynamic values in deployed poms?
Dear mailing list, as far as I understand Maven, the benefit of a deployed artifact is that regarding to the pom the dependencies are fixed to a version and aren't changing anymore. But how do I nail down a specific version, if I have defined it with a property in my pom and set a new value in a profile like: com.myCompany dependendProject ${useVersion} 1.0.0 aProfile 1.1.0 If I now deploy the project with "mvn clean deploy -PaProfile" and someone uses my project as dependency he/she will get the "dependendProject" with version 1.0.0 instead of 1.1.0 as transitive dependency, because the default property for "useVersion" is 1.0.0. Is there a way to remove all dynamic content in the deployed pom, that all properties are fixed? Thank you for your answers, Marco - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How does classifier work in dependant modules?
Hi all, I have been tried a little more on this problem an find out the if I set the classifier property for project A in project B it get the wrong dependencies (like explained). If I pass the property at the command line I get the right dependencies. projectB>mvn clean install -Denvironment.suffix=int This is a little bit confusing?!? Any help on this would be useful. Marco Marco Huber wrote: Hi all, We have two projects with dependencies from project A to project B. Project A is multi module project with the structure: master --> core --> client --> server We have also defined 3 profiles for development, integration and production with different configuration values. The default value is for the development environment. All modules have to be configured differently, so we suggest that all must have a classifer: - development -> classifer dev - integration -> classifer int - production -> classifer prod We defined the inner dependencies in the master pom like: com.myCompany.projectA core ${project.version} ${environment.suffix} ... because client and server depends both on core. In our second project we refer to project A like: com.myCompany.projectA client 1.0.0-SNAPSHOT ${projectA.suffix} projectA.suffix is also defined in profile in the second project. So now we get the following combinations if we assembly our second project. dev build: projectB.module -> projectA.client-dev -> projectA.core-dev. int build: projectB.module -> projectA.client-int -> projectA.core-dev. prod build: projectB.module -> projectA.client-prod -> projectA.core-dev. We always get the projectA.core as dev configuration, but we expected the int or prod configuration. How do we do it to get the correct classified artifacted? Do we need to configure something special in our project A master pom? Or in our project B pom to get the correct artifacts? Regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is there an actual version of the maven-embedder for 2.0.x?
Hi all, I am looking for an actual version of the maven-embedder for the 2.0.x tree. In the central repository there is only a maven-embedder for 2.0.4. But this version seems to be a big buggy. After searching the internet the error occures are the same that occured in maven 2.0.4 version. So I want to use a newer one. I would build it by myself, but if I look in the source repository I can only find the maven-embedder project for the 3.x trunk. But I don't want to use a development version, if it is not necessary. Is there a way to get an actual version of the maven-embedder? Thank your for your help. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How does classifier work in dependant modules?
Hi all, We have two projects with dependencies from project A to project B. Project A is multi module project with the structure: master --> core --> client --> server We have also defined 3 profiles for development, integration and production with different configuration values. The default value is for the development environment. All modules have to be configured differently, so we suggest that all must have a classifer: - development -> classifer dev - integration -> classifer int - production -> classifer prod We defined the inner dependencies in the master pom like: com.myCompany.projectA core ${project.version} ${environment.suffix} ... because client and server depends both on core. In our second project we refer to project A like: com.myCompany.projectA client 1.0.0-SNAPSHOT ${projectA.suffix} projectA.suffix is also defined in profile in the second project. So now we get the following combinations if we assembly our second project. dev build: projectB.module -> projectA.client-dev -> projectA.core-dev. int build: projectB.module -> projectA.client-int -> projectA.core-dev. prod build: projectB.module -> projectA.client-prod -> projectA.core-dev. We always get the projectA.core as dev configuration, but we expected the int or prod configuration. How do we do it to get the correct classified artifacted? Do we need to configure something special in our project A master pom? Or in our project B pom to get the correct artifacts? Regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does Maven broke if it cannot download a SNAPSHOT?
Hi Nick, I will try out your suggestion. But now all the dependencies works at the moment, so I had to try that out tomorrow. Thank you Marco Nick Stolwijk wrote: You can add a repository configuration to your settings.xml at home, which tells maven to never update snapshots for that repository. Same id as your pom true never See the maven settings model: http://maven.apache.org/ref/2.0.7/maven-settings/settings.html Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Fri, Oct 24, 2008 at 10:51 AM, Marco Huber <[EMAIL PROTECTED]> wrote: Hi Nick, thank you for answer. Sure I can use the offline mode. But I don't really want to switch Maven completely offline. At the moment I use the central repository for all non company artifacts. I don't understand why Maven breaks the build. If it run in a timeout at the first check of the snapshots that okay. But there is a snapshot version in my local repo. So why cause this in an error? Regards Marco Nick Stolwijk wrote: You can always use the offline modus (mvn -o) to force Maven to not connect to the internet at all. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Fri, Oct 24, 2008 at 10:24 AM, Marco Huber <[EMAIL PROTECTED]> wrote: Hi all, I have a little problem with Maven, if I work at home. In our company, we have different project in a SNAPSHOT state, which I have to use in the project I'm currently working. If I work at home I copy normally my local-repo from the company an updated my local-repo at home. We have a inner company repository which I cannot connect from home. If I now run mvn clean install Maven tells me that it cannot find the artifact com.myCompany:myArtifact " [INFO] Failed to resolve artifact. Missing: -- 1) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor yId=[id] Path to dependency: 1) com.myCompany:myOtherArtifact:jar:1.0.0-SNAPSHOT 2) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT -- 1 required artifact is missing. " If I install the dependent artifact locally Maven is happy, or if I remove all xml file from this artifact in my local repo. So my question: Why does Maven broke if it cannot download a SNAPSHOT? Should it not use the latest from the local repository? Thank you for your answers Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why does Maven broke if it cannot download a SNAPSHOT?
Hi Nick, thank you for answer. Sure I can use the offline mode. But I don't really want to switch Maven completely offline. At the moment I use the central repository for all non company artifacts. I don't understand why Maven breaks the build. If it run in a timeout at the first check of the snapshots that okay. But there is a snapshot version in my local repo. So why cause this in an error? Regards Marco Nick Stolwijk wrote: You can always use the offline modus (mvn -o) to force Maven to not connect to the internet at all. Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Fri, Oct 24, 2008 at 10:24 AM, Marco Huber <[EMAIL PROTECTED]> wrote: Hi all, I have a little problem with Maven, if I work at home. In our company, we have different project in a SNAPSHOT state, which I have to use in the project I'm currently working. If I work at home I copy normally my local-repo from the company an updated my local-repo at home. We have a inner company repository which I cannot connect from home. If I now run mvn clean install Maven tells me that it cannot find the artifact com.myCompany:myArtifact " [INFO] Failed to resolve artifact. Missing: -- 1) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor yId=[id] Path to dependency: 1) com.myCompany:myOtherArtifact:jar:1.0.0-SNAPSHOT 2) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT -- 1 required artifact is missing. " If I install the dependent artifact locally Maven is happy, or if I remove all xml file from this artifact in my local repo. So my question: Why does Maven broke if it cannot download a SNAPSHOT? Should it not use the latest from the local repository? Thank you for your answers Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why does Maven broke if it cannot download a SNAPSHOT?
Hi all, I have a little problem with Maven, if I work at home. In our company, we have different project in a SNAPSHOT state, which I have to use in the project I'm currently working. If I work at home I copy normally my local-repo from the company an updated my local-repo at home. We have a inner company repository which I cannot connect from home. If I now run mvn clean install Maven tells me that it cannot find the artifact com.myCompany:myArtifact " [INFO] Failed to resolve artifact. Missing: -- 1) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.myCompany -DartifactId=myArtifact -Dversion=0.6.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepositor yId=[id] Path to dependency: 1) com.myCompany:myOtherArtifact:jar:1.0.0-SNAPSHOT 2) com.myCompany:myArtifact:jar:0.6.0-SNAPSHOT -- 1 required artifact is missing. " If I install the dependent artifact locally Maven is happy, or if I remove all xml file from this artifact in my local repo. So my question: Why does Maven broke if it cannot download a SNAPSHOT? Should it not use the latest from the local repository? Thank you for your answers Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where are the maven-ear-plugin snapshots gone?
Hello Jörg, thank you for your answer. I know that snapshots are not for regular use, but I just wanted to try out, if a problem we have was fixed by the so far closed jiras or if we have another problem, without checking out the source code. Regards Marco Zitat von Jörg Schaible <[EMAIL PROTECTED]>: Hi Marco, Marco Huber wrote: Hi all, I'll try to download the latest snapshot from teh maven-ear-plugin (2.3.2) but maven fails with "Unable to download the artifact from any repository". I configurated the apache snapshot repository: http://people.apache.org/repo/m2-snapshot-repository/ On this location I found only empty folder under http://people.apache.org/repo/m2-snapshot-repository/org/apach e/maven/plugins/maven-ear-plugin/2.3.2-SNAPSHOT/ All older snapshot folder of this plugin are also empty. Is there a reason why the snapshot are not deployed in that repository of is there a new repository? Thank you for your answers. SNAPSHOTs are meant to be temporary data and they have been wiped out by the Apache infra team because of disk shortage. SNAPSHOTs are never meant for regular use. - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where are the maven-ear-plugin snapshots gone?
Hi all, I'll try to download the latest snapshot from teh maven-ear-plugin (2.3.2) but maven fails with "Unable to download the artifact from any repository". I configurated the apache snapshot repository: http://people.apache.org/repo/m2-snapshot-repository/ On this location I found only empty folder under http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-ear-plugin/2.3.2-SNAPSHOT/ All older snapshot folder of this plugin are also empty. Is there a reason why the snapshot are not deployed in that repository of is there a new repository? Thank you for your answers. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A question about maven site and the created JavaDocs
Hi Thomas, I think you don't use the javadoc correctly. You comment must be followed by the @param tags: /** * My comments: This function sets ... * * @param i Percentage */ See also http://java.sun.com/j2se/javadoc/writingdoccomments/ Regards Marco thomas2004 wrote: A class looks as follow: /** * * @author Thomas * */ public class PriceIncrease { /** Logger for this class and subclasses */ protected final Log logger = LogFactory.getLog(getClass()); private int percentage; /** * * @param i Percentage * My comments: This function sets ... */ public void setPercentage(int i) { percentage = i; logger.info("Percentage set to " + i); } ... } After I used maven site, the JavaDocs are generated. But as I open this class in javadocs, I see the followings: setPercentage public void setPercentage(int i)Parameters: i - Percentage I can't see the text of MyComments, why? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to assemble with dublicated artfactIds in the dependencies?
Hello, I having a little problem using the maven-assembly-plugin and maven-jar-plugin together. I have the situation that I have two artifact with the same artifact ids, like: 1) groupId : com.aCompany artifactId : core version : 1.0.0 2) groupId : com.anotherCompany artifactId : core version : 1.2.3 I configured my assembly-plugin with the outputFileNameMapping "${groupId}.${artifactId}-${baseVersion}.${extension}" and get both artifacts, like com.aCompany.core-1.0.0.jar and com.anotherCompany.core-1.2.3.jar. Now my problem: How could I configure the jar-plugin to use the same names in the classpath entry in a manifest to make an executable jar? I cannot use "classpathMavenRepositoryLayout", because it creates entries like com/aCompany/core-1.0.0.jar. Am I missing something? Or is there a better solution to create an assembly with an executable jar and two dependencies with the same artifactId? Regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven does not compile:org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT
I got the similar error this morning, after starting a normal clean install of my project. As I see from the error message the "maven-compiler-plugin" 2.1-SNAPSHOT tried to use the 1.6-SNAPSHOT of the "plexus-compiler". I nailed the version of the maven-compiler-plugin to 2.0.2 and all works. Does the developer of the maven-compiler-plugin or plexus-compiler missed to deploy the neccessary snapshot to a public repository ;-) Regards Marco Wayne Fay wrote: The reason it is failing is because you are trying to utilize SNAPSHOT artifacts and yet you have not configured a Snapshot repository in your pom.xml. It looks like you're trying to compile Maven itself, or something along those lines? Why are you doing this? This is generally something that rookies should avoid doing. What exactly are you trying to do? Perhaps you can post your pom.xml somewhere so we can take a look and help you figure things out. Wayne On 2/12/08, krishnan.1000 <[EMAIL PROTECTED]> wrote: Hi , I am a rookie using Maven. I have got this error. I have created this pom and I dont know what is causing this error. I looked at the forum but I did not understand what was being discussed%-O Please help me. Thanks, Karthik 1) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-javac -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-javac -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-SNAPSHOT 2) org.codehaus.plexus:plexus-compiler-javac:jar:1.6-SNAPSHOT 2) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-api -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-api -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-SNAPSHOT 2) org.codehaus.plexus:plexus-compiler-api:jar:1.6-SNAPSHOT 3) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-manager -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-compiler-manager -Dversion=1.6-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.1-SNAPSHOT 2) org.codehaus.plexus:plexus-compiler-manager:jar:1.6-SNAPSHOT -- View this message in context: http://www.nabble.com/Maven-does-not-compile%3Aorg.codehaus.plexus%3Aplexus-compiler-javac%3Ajar%3A1.6-SNAPSHOT-tp15447362s177p15447362.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using wiki-style syntax for documentation
Thank you Lukas, you gave me (literally) the missing links ;-) I didn't know that I must configure the site plugin using twiki or confluence, nor I found the information which [2] gave me on the doxia page. Maybe it would be good to add this article as external resources or add a page how to configure the plugin for the modules doxia doesn't support out of the box. Thanks again Marco Lukas Theussl wrote: There is a table on the doxia site that indicates the detailed parser/sink support [1]. In particular for wiki style markup there is a confluence and a twiki parser, an xwiki module is currently in the works. I am not up to date about how well they are supported, but the original author of the twiki module has posted instructions about it's usage [2] and a lot of work has gone into the confluence parser in the current development version of doxia [3]. HTH, -Lukas [1] http://maven.apache.org/doxia/references/index.html [2] http://juan.zauber.com.ar/2007/10/28/maven-site-twiki [3] http://jira.codehaus.org/browse/DOXIA?report=com.atlassian.jira.plugin.system.project:roadmap-panel Marco Huber wrote: Hi all, Is there the possibility to use a wiki-styled syntax for the documentation on an project. As I know maven2 uses apt, xdoc or fml out of the box. On the doxia web site there is a module guide with other markup language like latex, confluence, pdf or twiki which are supported, but I get no information, if they are only supported for the output or also can be used as input markup. Have someone used other markup to document his/her project, especally a wiki-styled syntax? Thanks in advance. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using wiki-style syntax for documentation
Hi all, Is there the possibility to use a wiki-styled syntax for the documentation on an project. As I know maven2 uses apt, xdoc or fml out of the box. On the doxia web site there is a module guide with other markup language like latex, confluence, pdf or twiki which are supported, but I get no information, if they are only supported for the output or also can be used as input markup. Have someone used other markup to document his/her project, especally a wiki-styled syntax? Thanks in advance. Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Selenium jars not on the maven repository anymore
Hello Rohnny, I don't know really if the Selenium jars were ever in the repo1.maven.org. We used till now the repository from OpenQA directly, but it seems that they moved there repository. Look at http://maven.openqa.org/ (The old repository url). They split them into three new URL: * OpenQA Releases -> http://archiva.openqa.org/repository/releases/ * OpenQA Snapshots -> http://archiva.openqa.org/repository/snapshots/ * Third Party Dependecnies -> http://archiva.openqa.org/repository/thirdparty/ I think you must update your repository section. Regards, Marco Rohnny Moland wrote: Hello, It seems like the selenium jars have been removed or moved tonight? At least they are not on our mirror nor on repo1.maven.org today. Can the person that removed them, please put the jars back?. Regards, Rohnny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Classpath order of dependencies
Hello, I have a little problem with the order of my dependencies. Depending on the posistion of one dependency I get an error during my tests. The first pom snippet result in an NoClassDefFoundError: ... org.hibernate hibernate-validator 3.0.0.ga org.jboss.embedded hibernate-all beta2 ... If I change the order of this two dependencies I get not error. Is the order in the pom the crucial factor on how the classpath is build in maven? Or is it possible that transient dependencies overwrites direct dependencies? Thank you for your help Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]