Re: Get a list of POMs
Sorry about being unclear What I need is either the absolute or relative path to the pom files. The reason why I need this is because we are using clearcase and we would like to use the funtionality of the "versions" plugin, but we need to check-out all of the pom files of our project first. Hope this is more clear... Sonia -- View this message in context: http://maven.40175.n5.nabble.com/Get-a-list-of-POMs-tp3295200p3295992.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
Get a list of POMs
Hello, My question is if there is a way to get a list of POM files from the TOP POM in a multimodule project? Thanks Sonia -- View this message in context: http://maven.40175.n5.nabble.com/Get-a-list-of-POMs-tp3295200p3295200.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
Dependency tree and artifactIds
Hello Everyone, We currently have the need to locate modules in our multi-module project which uses certain specific dependencies. dependency:tree is perfect! BUT, is there any way to see the groupId.artifactId of the reactor modules instead of the ?? It would be so much more useful for us Sonia -- View this message in context: http://old.nabble.com/Dependency-tree-and-artifactIds-tp28462530p28462530.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
Re: plugin execution inheritance
I don't have any experience in writing Maven plugins, but could I write a plugin that calls these 3 plugins sonia Anders Hammar wrote: > > No, you cannot import a pluginManagement section. And I cannot think of > any > other solution for you than to specify the same configuration for each > project (unless you can change to inherit from a common parent somewhere > in > the inheritance chain). > > /Anders > > On Tue, Apr 27, 2010 at 21:58, solo1970 > wrote: > >> >> Hello, >> >> We had created a POM which had the execution of 3 plugins in the >> section and all the POMs needing this plugin >> execution, >> was inheriting from it. >> >> We are restructuring code and now we cannot inherit from that POM anymore >> because we don't have a common parent. Can I import a pluginManagement >> section, just like the import in dependencies??? >> Is there any other way to achieve this??? >> >> I hope it's clear >> >> Sonia >> -- >> View this message in context: >> http://old.nabble.com/plugin-execution-inheritance-tp28381340p28381340.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 >> >> > > -- View this message in context: http://old.nabble.com/plugin-execution-inheritance-tp28381340p28387758.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
Re: plugin execution inheritance
In this particular case, we don't have the same POM for inhertance/aggregation. I don't have any experience in writing Maven plugins, but could I write a lpugin that calls these 3 plugins sonia Stephen Connolly-2 wrote: > > remember that inheritance does not have to follow aggregation (just that > life is easier when it does) > > On 27 April 2010 20:58, solo1970 wrote: > >> >> Hello, >> >> We had created a POM which had the execution of 3 plugins in the >> section and all the POMs needing this plugin >> execution, >> was inheriting from it. >> >> We are restructuring code and now we cannot inherit from that POM anymore >> because we don't have a common parent. Can I import a pluginManagement >> section, just like the import in dependencies??? >> Is there any other way to achieve this??? >> >> I hope it's clear >> >> Sonia >> -- >> View this message in context: >> http://old.nabble.com/plugin-execution-inheritance-tp28381340p28381340.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 >> >> > > -- View this message in context: http://old.nabble.com/plugin-execution-inheritance-tp28381340p28387757.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
plugin execution inheritance
Hello, We had created a POM which had the execution of 3 plugins in the section and all the POMs needing this plugin execution, was inheriting from it. We are restructuring code and now we cannot inherit from that POM anymore because we don't have a common parent. Can I import a pluginManagement section, just like the import in dependencies??? Is there any other way to achieve this??? I hope it's clear Sonia -- View this message in context: http://old.nabble.com/plugin-execution-inheritance-tp28381340p28381340.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
Dependency Management +
Hello, For my project, I need to identify plugins/dependencies that don't have explicit versions specified (i.e. that would use the latest version) Also, I would need a plugin to fail my build if the aggregated modules don't use the same version of inter-project dependencies. (would check for project dependency inconsistency) Any ideas? Sonia -- View this message in context: http://old.nabble.com/Dependency-Management-%2B-tp28366761p28366761.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
Listing war file content
Hello, We would like to list, the content of a war file, the equivalent of "jar -tf". Besides using the antrun plugin, is there any other way? Thanks -- View this message in context: http://old.nabble.com/Listing-war-file-content-tp27026642p27026642.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
VM_global_library.vm error
Hello, I get the following error when running site ... [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader ... What does it mean??? Sonia -- View this message in context: http://www.nabble.com/VM_global_library.vm-error-tp25915242p25915242.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
Can aggregator be other type than pom?
Hello, I have the followng scenario: Currently I have 1 POM that generates a jar file. I want to separate some code (B) in a separate jar file and add it as a dependency, but want to minimize the number of POM files I need to write... Can I do this? POMA jar B B POMB jar Any ideas? Sonia -- View this message in context: http://www.nabble.com/Can-aggregator-be-other-type-than-pom--tp25136362p25136362.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
Re: Help writing plugin
Because we are using Clearcase, I need a plugin that would take the output of a diffbl between two baselines (this will give a list of files modified from one baseline to the other) and figure out to which artifact those files belong to and list the artifacts and their version. Sonia Wayne Fay wrote: > >> 1. Where can I find the most help for writting a Maven plugin (examples, >> useful tools,...) besides the regular websites >> (www.sonatype.com/books/maven-book/reference/writing-plugins.html, >> http://maven.apache.org/plugin-developers/index.html) > > Every single plugin the Maven team has written plus all the ones > hosted at Codehaus have their source code freely available. Find one > that does something similar to what you need, grab the source, and use > that as the base for your plugin. > >> 2. In my plugin, I have a file and need to know to which artifact this >> file >> belongs to. Any easy to do this besides traversing the whole directory >> tree??? > > It might be more helpful if you describe what exactly you're trying to > do overall in the plugin, rather than describing one little piece of > functionality and trying to figure it out. Traversing directory trees > is not that terribly difficult, either. > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Help-writing-plugin-tp23964154p23966707.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
Help writing plugin
Hello All, I have 2 questions: 1. Where can I find the most help for writting a Maven plugin (examples, useful tools,...) besides the regular websites (www.sonatype.com/books/maven-book/reference/writing-plugins.html, http://maven.apache.org/plugin-developers/index.html) 2. In my plugin, I have a file and need to know to which artifact this file belongs to. Any easy to do this besides traversing the whole directory tree??? Thanks Sonia -- View this message in context: http://www.nabble.com/Help-writing-plugin-tp23964154p23964154.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
How to specify no snapshots?
Hello, Here is what I'm trying to do: How do I specify that I don't want any snapshots if a version is not specified for a plugin? I am trying to debug a plugin we are writing and deploying the snapshot version for some to test. Our designers are used to using this plugin on the command-line without specifying the version and now the version they are using is the snapshot one and I don't want thatI want them to continue using the latest non-snapshot version. Please help! Soni -- View this message in context: http://www.nabble.com/How-to-specify-no-snapshots--tp23926367p23926367.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
SNAPSHOT version question
Hello All, Need your expertise to tell me if anyone sees an issue in using .SNAPSHOT instead of -SNAPSHOT in an artifact version. (The reason is because the artifact name has to have a minimum amount of '-'). Example: 1.0.0.SNAPSHOT I'd appreciate feedback Sonia -- View this message in context: http://www.nabble.com/SNAPSHOT-version-question-tp23817013p23817013.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
Re: dependency plugin "outputFile" parameter not working...
Because the I end up with other outputs I don't need, like Reactor Summary, BUILD SUCCESSFUL, Sonia Wayne Fay wrote: > >> mvn dependency:tree -DoutputFile:"C:\TMP\out.txt" > > Why not just use "mvn dependency:tree > c:\tmp\out.txt"? > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/dependency-plugin-%22outputFile%22-parameter-not-working...-tp23319273p23320191.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
dependency plugin "outputFile" parameter not working...
Hello All, I'm having trouble re-directing the output of the dependency:tree goal to a file. I use the following on the command-line: mvn dependency:tree -DoutputFile:"C:\TMP\out.txt" As I look into the file only one line is in there (main artifact) and not all the tree... Am I doing something wrong? Anyone else have that problem? I'm using version 2.1 of the plugin Sonia P.S., If I remove the -DoutputFile, then the output on the screen is the correct complete tree -- View this message in context: http://www.nabble.com/dependency-plugin-%22outputFile%22-parameter-not-working...-tp23319273p23319273.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
Re: Maven module only for site?
I was thinking of using profiles but can't seem to find a way to activate the profile based on the lifecycle or phase??? solo1970 wrote: > > Hello everyone, > > Here is what I need to do: > > inlcude a C in my aggregator (multi-module) POM that > would ONLY BE "executed" when doing a mvn site command, not when I do a > mvn compile, package or deploy... > > Any ideas on how to do this??? > > Sonia > -- View this message in context: http://www.nabble.com/Maven-module-only-for-site--tp23141464p23158439.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
Maven module only for site?
Hello everyone, Here is what I need to do: inlcude a C in my aggregator (multi-module) POM that would ONLY BE "executed" when doing a mvn site command, not when I do a mvn compile, package or deploy... Any ideas on how to do this??? Sonia -- View this message in context: http://www.nabble.com/Maven-module-only-for-site--tp23141464p23141464.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
Looking for a Maven report
Hello everyone, I am looking for a reposrt that could provide me with the following functionality: ->In a multimodule project, list all the artifacts of the project with their version ->Be able to filter that list based on classifier, groupId, Anything of the sort out there??? Sonia -- View this message in context: http://www.nabble.com/Looking-for-a-Maven-report-tp22954236p22954236.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
Re: Question concerning settings-security.xml location
I need to investigate the work-around you proposed, but by doing that won't I disable "Delete Artifact" for ALL the users I would need to disable it only for one user, because we need the "Delete Artifact" functionality for a group of us who are SCMs. Sonia brettporter wrote: > > > On 08/04/2009, at 4:57 AM, solo1970 wrote: > >> >> Here is the use case: >> >> With Archiva 2.1, they've added a "Delete Artifact" possibility in >> the UI, >> as long as you are a "Repository Manager", you have access to it. >> In the >> past, we used the "guest" logon for everyone which was "Repository >> manager" >> for our snapshots and development repositories, hence no username/ >> password >> in the settings.xml file. Ande everyone can deploy. > > I'll answer that on the archiva list with the Q you asked there, and > it is easily fixed. > >> >> Now we don't want everyone to go to the UI and have the possibility to >> delete artifacts from those repositories, so we can't give "guest" the >> "Repository manager" role for those repositories. >> We've then created a "deployment" user which has those roles, but we >> need to >> encrypt the password so that not everyone can login to the UI, but can >> deploy from the command-line to those repositories. > > If you give everyone the master password, you're effectively giving > away the passwords. It's a little hidden, but trivial for anyone to > figure out that wants to. > > Cheers, > Brett > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Question-concerning-settings-security.xml-location-tp22932257p22951793.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
Re: Question concerning settings-security.xml location
Here is the use case: With Archiva 2.1, they've added a "Delete Artifact" possibility in the UI, as long as you are a "Repository Manager", you have access to it. In the past, we used the "guest" logon for everyone which was "Repository manager" for our snapshots and development repositories, hence no username/password in the settings.xml file. Ande everyone can deploy. Now we don't want everyone to go to the UI and have the possibility to delete artifacts from those repositories, so we can't give "guest" the "Repository manager" role for those repositories. We've then created a "deployment" user which has those roles, but we need to encrypt the password so that not everyone can login to the UI, but can deploy from the command-line to those repositories. Does it make sense? Sonia Wayne Fay wrote: > >> is there something similar for the settings-security.xml file? It's >> impossible to manage everyone having a settings-security.xml file in >> their >> home directory. > > If everyone is sharing all the settings etc, then why are you > concerned about encrypting passwords?? What's the use case? > > Wayne > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Question-concerning-settings-security.xml-location-tp22932257p22935376.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
Question concerning settings-security.xml location
Hello All, In Maven 2.1, there is a new feature to encrypt passwords found in the settings.xml file. They say that the master-password should be kept in settings-security.xml file which resides under ~/.m2/, we currently share the settings.xml file and so we set the -Dorg.apache.maven.global-settings, is there something similar for the settings-security.xml file? It's impossible to manage everyone having a settings-security.xml file in their home directory. I've searched but couldn't find anything Sonia -- View this message in context: http://www.nabble.com/Question-concerning-settings-security.xml-location-tp22932257p22932257.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
Manifest file classpath
Hello All, Is there any way to change the filenames in the manifest classpath? Ex. more MANIFEST.MF Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: testuser Build-Jdk: 1.5.0_14 Main-Class: com.mnr.gui.MNRgui Class-Path: lib/utils-1.0.0-P1A01-SNAPSHOT.jar lib/mysql-connector-jav a-5.1.6.jar lib/mail-1.3.1.jar lib/activation-1.0.2.jar lib/log4j-1.2 .14.jar lib/ReportScheduling-1.0.0-P1A01-SNAPSHOT.jar lib/CRDBJDBCSer ver-1.0.0-2008.jar lib/CRDBJavaServer-1.0.0-2008.jar lib/CRDBJavaServ erCommon-1.0.0-2008.jar I would like those files to appear withouth the version number, as: lib/CRDBJDBCSer ver.jar lib/CRDBJavaServer.jar lib/CRDBJavaServ erCommon.jar I would appreciate your help Sonia -- View this message in context: http://www.nabble.com/Manifest-file-classpath-tp22834138p22834138.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
maven2 properties reference page
Why aren't any of these properties documented for Maven2? Is anyone aware??? Can I use them with Maven2 without having problems? http://maven.apache.org/maven-1.x/reference/properties.html Sonia -- View this message in context: http://www.nabble.com/maven2-properties-reference-page-tp22683695p22683695.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
Re: super-beginner question - fail to properly package maven project.
Bear with me, I am also a beginner with Maven! ;o) If I understand correctly you want the dependecies to be in the .jar, right If so, do this: org.apache.maven.plugins maven-dependency-plugin unpack-dependencies unpack-dependencies true ${project.build.directory}/classes solo1970 wrote: > > Hello > > You can play with the classpath in the Manifest file: > > Example: > > > maven-jar-plugin > > > > true > com.yourMainClass > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html > http://maven.apache.org/shared/maven-archiver/ > > Sonia > > Hi, I've tried to add the code fragment you've specified into my pom, but > nothing changes at all. I've tried to understand from that plugin > descriptions what I've just said to be done, but did not notice any > explicit possibility how to change packaging. So I looked at it "if I > include this code in pom, then my libraries will be included", but that > did not happen. > > I've tried to change packaging to ear as noted, but that did not do > anything also. I still end up with .jar file which compile ok, but does > not include any libraries into final .jar. > > > here is our pom.xml, which probably will contain handfull of errors and > lot of nonsenses, but all I need at this time to be able to create usable > (with included libraries) build. > > > > http://maven.apache.org/POM/4.0.0"; > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd";> > 4.0.0 > something > core > ejb > EIRA Core > 1.0 > something > something > 2009 > > Bugzilla > something > > > TeamCity > something > > > something > something > something > > > something > something > > > > > > > org.apache.maven.plugins > maven-checkstyle-plugin > > > org.apache.maven.plugins > maven-javadoc-plugin > > > org.apache.maven.plugins > maven-pmd-plugin > 2.3 > > ${compileSource} > > > > org.apache.maven.plugins > maven-surefire-report-plugin > 2.4.2 > > > org.codehaus.mojo > taglist-maven-plugin > 2.3 > > > org.codehaus.mojo > jdepend-maven-plugin > > > org.apache.maven.plugins > maven-changelog-plugin > > developerConnection > SVNReader > something > > > > org.apache.maven.plugins > maven-changes-plugin > > > > changes-report > > > > > > org.apache.maven.plugins > maven-jxr-plugin > > > > > > jboss > http://repository.jboss.com/maven2 > > > > > javax.servlet > jstl > 1.2 > > > javax.servlet > servlet-api > 2.5 > > > net.sf.json-lib > json-lib > 2.2.3 > > > org.hibernate > hibernate-annotations > 3.4.0.GA >
Re: super-beginner question - fail to properly package maven project.
Hello You can play with the classpath in the Manifest file: Example: maven-jar-plugin true com.yourMainClass http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html http://maven.apache.org/shared/maven-archiver/ Sonia alfonz19 wrote: > > Hi, > > I've got maven project here, with specified compile-scoped dependencies > and ejb packaging. I can build&deploy it successfully but then it crashes > because when I examine procucted .jar it does not contain needed .jar > libraries even if those exists in my local repository. I've tried to find > an anwer to this behavior, but did not succeed. Can anybody give me a hint > what's wrong? > > thanks in advance, > martin. > -- View this message in context: http://www.nabble.com/super-beginner-question---fail-to-properly-package-maven-project.-tp22667119p22667293.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
Unpacking zip dependency to compile....Help
Hello, Here is what I need to do: I have a .zip dependency that contains a whole bunch of .jar files that I need to compile and to set in the manifests classpath. This is what I've done so far, but now I'm stuck and confused! 1. I've added the dependency 2. I've added the plugin to unpack it... My questions now are: Where should I unpack the JARs in order for them to be used for compilation??? ... external.3pp.sap.BO crystalReportsServer 1.0.0-2008 dep zip ... org.apache.maven.plugins maven-dependency-plugin unpack-zip-jar unpack-dependencies true ... I'd appreciate some help Sonia -- View this message in context: http://www.nabble.com/Unpacking-zip-dependency-to-compileHelp-tp22664567p22664567.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
Proguard plugin error! Help!
Hello, I have an issue when I'm proguarding. Maven seems to run out of memory. I tried increasing the memory by doing this : setenv MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M But I still get the following: [proguard] Reading library jar [/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/wss4j-1.5.3.jar] [proguard] Reading library jar [/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/wstx-asl-3.2.1.jar] [proguard] Reading library jar [/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/xalan.jar] [proguard] Reading library jar [/vobs/mnr/src/src/ENR_ICS/CompilationJARs/external/xbean.jar] [proguard] Note: duplicate definition of library class [javax.xml.namespace.NamespaceContext] [proguard] Note: duplicate definition of library class [javax.xml.namespace.QName] [proguard] Exception in thread "main" java.lang.OutOfMemoryError: Java heap space [proguard] at java.lang.StringCoding.trim(StringCoding.java:74) [proguard] at java.lang.StringCoding.access$100(StringCoding.java:37) [proguard] at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:201) [proguard] at java.lang.StringCoding.decode(StringCoding.java:228) [proguard] at java.lang.String.(String.java:405) [proguard] at java.lang.String.(String.java:433) [proguard] at proguard.classfile.constant.Utf8Constant.switchToStringRepresentation(Utf8Constant.java:158) [proguard] at proguard.classfile.constant.Utf8Constant.getString(Utf8Constant.java:128) [proguard] at proguard.classfile.io.LibraryClassReader.getString(LibraryClassReader.java:318) [proguard] at proguard.classfile.io.LibraryClassReader.visitLibraryMember(LibraryClassReader.java:230) [proguard] at proguard.classfile.io.LibraryClassReader.visitLibraryClass(LibraryClassReader.java:191) [proguard] at proguard.classfile.LibraryClass.accept(LibraryClass.java:248) [proguard] at proguard.io.ClassReader.read(ClassReader.java:86) [proguard] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87) [proguard] at proguard.io.ClassFilter.read(ClassFilter.java:70) [proguard] at proguard.io.JarReader.read(JarReader.java:67) [proguard] at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:76) [proguard] at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) [proguard] at proguard.InputReader.readInput(InputReader.java:201) [proguard] at proguard.InputReader.readInput(InputReader.java:175) [proguard] at proguard.InputReader.readInput(InputReader.java:153) [proguard] at proguard.InputReader.execute(InputReader.java:101) [proguard] at proguard.ProGuard.readInput(ProGuard.java:195) [proguard] at proguard.ProGuard.execute(ProGuard.java:78) [proguard] at proguard.ProGuard.main(ProGuard.java:499) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Obfuscation failed (result=1) [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Obfuscation failed (result=1) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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: Obfuscation failed (result=1) at com.pyx4me.maven.proguard.ProGuardMojo.proguardMain(ProGuardMojo.java:623) at com.pyx4me.maven.proguard.ProGuardMojo.execute(ProGuardMojo.java:476) at org.
tag in POM
Hello I wanted to know if it was possible to put the ... descriptor directly in the POM in the of the Maven assembly plugin or do we HAVE TO create a xml file??? Sonia -- View this message in context: http://www.nabble.com/%3Cassembly%3E-tag-in-POM-tp22483852p22483852.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
Re: Special URL characters
Thanks! It worked!!! Sonia matinh wrote: > > It's not, just in Nabble. Your Browser is interpreting the '&' > entities. > Look at the source code in your browser. > > hth, > - martin > On Tuesday 10 March 2009 solo1970 wrote: >> Hello Chris, >> >> I kind of understand your explanation, but the URL you're suggesting to >> me is the same as mine!??? >> ? >> >> Can you re-type the URL I should put in the tag? >> >> Sonia >> >> Chris Lieb-2 wrote: >> > -BEGIN PGP SIGNED MESSAGE- >> > Hash: SHA1 >> > >> > solo1970 wrote: >> >> Hello All, >> >> >> >> I would like to put the following URL: >> >> >> >> http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Form >> >>at=GZIP in the tags of my POM, >> >> but I get the following error: >> >> >> >> [INFO] Scanning for projects... >> >> [INFO] >> >> -- >> >>-- [ERROR] FATAL ERROR >> >> [INFO] >> >> -- >> >>-- [INFO] Error building POM (may not be this project's POM). >> >> >> >> >> >> Project ID: unknown >> >> POM Location: C:\TMP\sonia\pom.xml >> >> >> >> Reason: Parse error reading POM. Reason: entity reference name can not >> >> contain c >> >> haracter =' (position: START_TAG seen >> >> ...http://local.mysite/pub/get?Type=1 >> >> 9010-TEST9040044/1&Lang=... @11:66) for project unknown at >> >> C:\TMP\sonia\pom.xml >> >> >> >> >> >> Is there a workaround? >> >> >> >> Thanks >> >> >> >> Sonia >> > >> > Since the POM is an XML document, all text in it must be proper XML. >> > In your case, the '&' character starts an XML entity. An entity name >> > is terminated with a ';' character. When the parser reads in your POM, >> > it sees the first '&' in your URL and then starts reading until it >> > reaches a ';' so that it can read the entity name. While trying to >> > find a ';', the parser encountered a '=', which is not a valid >> > character in an entity name. >> > >> > To get around this, you need to replace the '&' with the correct XML >> > entity, '&'. This would change your repository URL to: >> > >> > http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev >> >=1&Format=GZIP >> > >> > HTH, >> > Chris >> > -BEGIN PGP SIGNATURE- >> > Version: GnuPG v1.4.9 (MingW32) >> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org >> > >> > iQEcBAEBAgAGBQJJtomeAAoJEJWxx7fgsD+CKAkH/iTolsr9S5ehRtTdxRYVCXyV >> > RTiIAAaZnWixJg/Vp4XKlfvS3dYmcXNlXXyukHc9bGC6NAUVhFyFG3zvOGT7tzzs >> > 9OlsZQKi9Gf/zrDhYYTVu9G5J0aDF7lx9eUPK0JxTN5n99hAuSdVZMW6x6priy4d >> > jDurIugWn7C/Xfu0HJv+81Xgf1Gg6TyXUAJahevx001R05gWO187E18KxpKTcUeA >> > tMIWtlw3R/9u9XCYxWqr0XODZt/Oh53d0z8cs+pkZwRMQED60oAt8l7Y1+zsMy1E >> > uuRFt3HPH5mbqpP86cugNEe0pZTS77B3Lu9O61mDnjBj4uUyZg52b2xIfXCI9oA= >> > =64Au >> > -END PGP SIGNATURE- >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> > For additional commands, e-mail: users-h...@maven.apache.org > > > > > -- View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22437954.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
Re: Special URL characters
Hello Chris, I kind of understand your explanation, but the URL you're suggesting to me is the same as mine!??? ? Can you re-type the URL I should put in the tag? Sonia Chris Lieb-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > solo1970 wrote: >> Hello All, >> >> I would like to put the following URL: >> >> http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP >> in the tags of my POM, >> but I get the following error: >> >> [INFO] Scanning for projects... >> [INFO] >> >> [ERROR] FATAL ERROR >> [INFO] >> >> [INFO] Error building POM (may not be this project's POM). >> >> >> Project ID: unknown >> POM Location: C:\TMP\sonia\pom.xml >> >> Reason: Parse error reading POM. Reason: entity reference name can not >> contain c >> haracter =' (position: START_TAG seen >> ...http://local.mysite/pub/get?Type=1 >> 9010-TEST9040044/1&Lang=... @11:66) for project unknown at >> C:\TMP\sonia\pom.xml >> >> >> Is there a workaround? >> >> Thanks >> >> Sonia > > Since the POM is an XML document, all text in it must be proper XML. In > your case, the '&' character starts an XML entity. An entity name is > terminated with a ';' character. When the parser reads in your POM, it > sees the first '&' in your URL and then starts reading until it reaches > a ';' so that it can read the entity name. While trying to find a ';', > the parser encountered a '=', which is not a valid character in an > entity name. > > To get around this, you need to replace the '&' with the correct XML > entity, '&'. This would change your repository URL to: > > http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP > > HTH, > Chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iQEcBAEBAgAGBQJJtomeAAoJEJWxx7fgsD+CKAkH/iTolsr9S5ehRtTdxRYVCXyV > RTiIAAaZnWixJg/Vp4XKlfvS3dYmcXNlXXyukHc9bGC6NAUVhFyFG3zvOGT7tzzs > 9OlsZQKi9Gf/zrDhYYTVu9G5J0aDF7lx9eUPK0JxTN5n99hAuSdVZMW6x6priy4d > jDurIugWn7C/Xfu0HJv+81Xgf1Gg6TyXUAJahevx001R05gWO187E18KxpKTcUeA > tMIWtlw3R/9u9XCYxWqr0XODZt/Oh53d0z8cs+pkZwRMQED60oAt8l7Y1+zsMy1E > uuRFt3HPH5mbqpP86cugNEe0pZTS77B3Lu9O61mDnjBj4uUyZg52b2xIfXCI9oA= > =64Au > -END PGP SIGNATURE- > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22437306.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
Re: Special URL characters
I tried with this URL: http://local.mysite/pub/get?Type%3D19010-TEST9040044%2F1%26Lang%3DX%26Rev%3D1%26Format%3DGZIP No error when mvn validate or deploy, but the characters are not converted, hence the URL is invalid! Sonia Felix Knecht-2 wrote: > > Hi Sonia > > Not tested, maybe url encoding helps for the parameter part: > http://local.mysite/pub/get?Type%3D19010-TEST9040044%2F1%26Lang%3DX%26Rev%3D1%26Format%3DGZIP > > Felix > > solo1970 schrieb: >> Hello All, >> >> I would like to put the following URL: >> >> http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP >> in the tags of my POM, >> but I get the following error: >> >> [INFO] Scanning for projects... >> [INFO] >> >> [ERROR] FATAL ERROR >> [INFO] >> >> [INFO] Error building POM (may not be this project's POM). >> >> >> Project ID: unknown >> POM Location: C:\TMP\sonia\pom.xml >> >> Reason: Parse error reading POM. Reason: entity reference name can not >> contain c >> haracter =' (position: START_TAG seen >> ...http://local.mysite/pub/get?Type=1 >> 9010-TEST9040044/1&Lang=... @11:66) for project unknown at >> C:\TMP\sonia\pom.xml >> >> >> Is there a workaround? >> >> Thanks >> >> Sonia > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > -- View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22437214.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
Special URL characters
Hello All, I would like to put the following URL: http://local.mysite/pub/get?Type=19010-TEST9040044/1&Lang=X&Rev=1&Format=GZIP in the tags of my POM, but I get the following error: [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown POM Location: C:\TMP\sonia\pom.xml Reason: Parse error reading POM. Reason: entity reference name can not contain c haracter =' (position: START_TAG seen ...http://local.mysite/pub/get?Type=1 9010-TEST9040044/1&Lang=... @11:66) for project unknown at C:\TMP\sonia\pom.xml Is there a workaround? Thanks Sonia -- View this message in context: http://www.nabble.com/Special-URL-characters-tp22436449p22436449.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
Not deploy certain files
Hello All, Anyone can explain to me how to not deploy certain files? Example: I have a few POMs that produce jar files and then I have one POM that packages everything in a, let's say, zip file. When I do my "mvn clean deploy" I only want the zip file to go to my global reppository. How would I be able to achieve this? Is there anywhere where we could configure that the deploy of the jars should be skipped? Sonia -- View this message in context: http://www.nabble.com/Not-deploy-certain-files-tp22417520p22417520.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
Maven file size limit?
Hello all, I have a very big file that I'm trying to deploy to the repository (Repositpry management is done by Archiva) and I get the following error. Size of the artifact is 4 Gigs. I have plenty of disk space (42 Gigs left). What can be the problem and how can I fix it??? Sonia ... Uploading: http://maven.lmc.ericsson.se:/repository/development/ericsson/services/messaging/msgcore/mcconfig/P2A01-SNAPSHOT/mcconfig-P2A01-20090113.185956-1.iso Jan 13, 2009 2:13:21 PM hidden.org.apache.commons.httpclient.HttpMethodBase processRequest INFO: Recoverable exception caught when processing request hidden.org.apache.commons.httpclient.HttpException: Unbuffered entity enclosing request can not be repeated. at hidden.org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:436) at hidden.org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2316) at hidden.org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2651) at hidden.org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087) at hidden.org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643) at hidden.org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497) at org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.putMethod(CorrectedWebdavResource.java:156) at org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:287) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:244) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:160) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80) at org.apache.maven.plugin.deploy.DeployFileMojo.execute(DeployFileMojo.java:239) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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:324) 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) [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: PUT request for: ericsson/services/messaging/msgcore/mcconfig/P2A01-SNAPSHOT/mcconfig-P2A01-20090113.185956-1.iso to MCCONFIG.iso failed -- View this message in context: http://www.nabble.com/Maven-file-size-limit--tp21460861p21460861.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
Re: multimodule assembly
I did it this way and it works... but not sure it's the right way 3fs-dist/target *.tar.gz Somehow I think that if it's a submodule I shouldn't have to specify the directory,etc... Sonia solo1970 wrote: > > Hello, > > I'm having some difficulty achieving the following: > > I have a Parent pom, which generates a tar via the assembly plugin. Under > the Parent I have Child1 that also generates a tar assembly file and a war > dependency that I want included. I want the tar from child1 and the war > to be included in the Parent tar, How do I achieve this??? > > I've added my child1 pom as a in my parent. Child1 > generates the tar correctly, but Parent generates the tar without the tar > from Child1, but it does include the war. > > This is what I have in my Parent assembly (I tried with > > > smp-dist > > tar.gz > > true > > > true > > *:child1 > > > > > > false > > *:war > > > > > > I also tried by adding: > true > > *:child1 > > > child1 > > > > > Can anyone help??? > > Sonia > -- View this message in context: http://www.nabble.com/multimodule-assembly-tp21361289p21361547.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
multimodule assembly
Hello, I'm having some difficulty achieving the following: I have a Parent pom, which generates a tar via the assembly plugin. Under the Parent I have Child1 that also generates a tar assembly file and a war dependency that I want included. I want the tar from child1 and the war to be included in the Parent tar, How do I achieve this??? I've added my child1 pom as a in my parent. Child1 generates the tar correctly, but Parent generates the tar without the tar from Child1, but it does include the war. This is what I have in my Parent assembly (I tried with smp-dist tar.gz true true *:child1 false *:war I also tried by adding: true *:child1 child1 Can anyone help??? Sonia -- View this message in context: http://www.nabble.com/multimodule-assembly-tp21361289p21361289.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
Deploy-file or a tar, zip, txt...
Hello, Here is my dilemna, I have a POM file that calls one of our in-house plugins that produces a set of files that I need to be deployed in the same place that my jar is deployed (but not included in the jar). How can I do this, any ideas? Sonia -- View this message in context: http://www.nabble.com/Deploy-file-or-a-tar%2C-zip%2C-txt...-tp21319435p21319435.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
PHP and Java
Is it possible to use Maven for a project that has Java AND PHP??? I was looking at this, but not sure if it's the right thing to look at... http://www.php-maven.org/ Anyone has experience with this??? Sonia -- View this message in context: http://www.nabble.com/PHP-and-Java-tp21299053p21299053.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
deploy-file authentication
Hello All, I know that in the deploy-file, documentation it says to put the authentication to the repository in the settings file. However, I was wondering if there was another way to do it? By authenticating on the command-line??? It's a bit of a problem for us to have the unencrypted password in the settings file. Any other way to hide the password??? We are currently using Archiva as a repository manager. Sonia -- View this message in context: http://www.nabble.com/deploy-file-authentication-tp20897585p20897585.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]
POM dependency issue (Reactor)
This is my dilemna, ca anyone shed some light? I have the following configuration of POMs bigparentPOM ---> common > parentPOM 1 (depends on common) > parentPOM 2 (depends on common) ParentPOM 1 and 2 are dependent on common, but sometimes they also need to be compiled separately. I I want to build only parentPOM1 and need to recompile common, how can I do it??? For now we have to recompile everything from bigparentPOM. Can I configure my POM hierarchies in another way to be able to compile ONLY parentPOM1 and common OR ONLY parentPOM2 and common Thanks in advance for your help -- View this message in context: http://www.nabble.com/POM-dependency-issue-%28Reactor%29-tp20836626p20836626.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: [deploy-plugin] Abort deploy when a target is present
Our repository Manager is Archiva and it can't do it Sonia Nord, James-2 wrote: > > You need a repository manager. > Nexus can do this - others may to. > > http://nexus.sonatype.org/about/faq.html#QHowdoIdisableartifactredeploym > ent > > /James > >> -Original Message- >> From: solo1970 [mailto:[EMAIL PROTECTED] >> Sent: 03 December 2008 15:02 >> To: users@maven.apache.org >> Subject: Re: [deploy-plugin] Abort deploy when a target is present >> >> >> Somehow I'm getting a little bit lost!!! I tried to read the >> feeds but I don't quite get it! >> >> I'm just starting out with Maven (ver. 2.0.9) and I would >> like to have this feature of NO re-reployement of the same >> version. Can someone summarize? >> >> How do I do this? Is it available >> >> Sonia >> >> >> MATHUS Baptiste wrote: >> > >> > Hi all, >> > >> > Recently, some developers did a release manually. So they put a >> > release version in the pom and triggered a deploy. >> Everything fine but... >> > The thing is: they forgot to re-update the pom.version to a new >> > snapshot version. >> > >> > So, as the code is continuously integrated, at each new commit, the >> > recent release was "automatically" overridden many times with the >> > snapshot code before realizing it :-/. >> > So, what I would like is to be able to put an additional option for >> > maven when run inside the continuous integration server, something >> > like -DdontOverrideRelease, that would make fail the >> deployment if the >> > released artefact is already present. >> > >> > I've taken a quick look at >> > >> http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html >> > but it seems it's not currently possible. >> > What do you think? Can a file an feature request about it in the >> > plugin tracker? >> > >> > Thanks a lot. >> > >> > Cheers. >> > -- >> > Baptiste >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-targ >> et-is-present-tp16329568p20814596.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] >> >> > > * > This e-mail is confidential, the property of NDS Ltd and intended for the > addressee only. Any dissemination, copying or distribution of this > message or any attachments by anyone other than the intended recipient is > strictly prohibited. If you have received this message in error, please > immediately notify the [EMAIL PROTECTED] and destroy the original > message. Messages sent to and from NDS may be monitored. NDS cannot > guarantee any message delivery method is secure or error-free. > Information could be intercepted, corrupted, lost, destroyed, arrive late > or incomplete, or contain viruses. We do not accept responsibility for > any errors or omissions in this message and/or attachment that arise as a > result of transmission. You should carry out your own virus checks before > opening any attachment. Any views or opinions presented are solely those > of the author and do not necessarily represent those of NDS. > > To protect the environment please do not print this e-mail unless > necessary. > > NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West > Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in > England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00 > ** > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-present-tp16329568p20815707.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: [deploy-plugin] Abort deploy when a target is present
Somehow I'm getting a little bit lost!!! I tried to read the feeds but I don't quite get it! I'm just starting out with Maven (ver. 2.0.9) and I would like to have this feature of NO re-reployement of the same version. Can someone summarize? How do I do this? Is it available Sonia MATHUS Baptiste wrote: > > Hi all, > > Recently, some developers did a release manually. So they put a release > version in the pom and triggered a deploy. Everything fine but... > The thing is: they forgot to re-update the pom.version to a new snapshot > version. > > So, as the code is continuously integrated, at each new commit, the recent > release was "automatically" overridden many times with the snapshot code > before realizing it :-/. > So, what I would like is to be able to put an additional option for maven > when run inside the continuous integration server, something like > -DdontOverrideRelease, that would make fail the deployment if the released > artefact is already present. > > I've taken a quick look at > http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html but > it seems it's not currently possible. > What do you think? Can a file an feature request about it in the plugin > tracker? > > Thanks a lot. > > Cheers. > -- > Baptiste > > > -- View this message in context: http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-present-tp16329568p20814596.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: RE : [deploy-plugin] Abort deploy when a target is present
Somehow I'm getting a little bit lost!!! I tried to read the feeds but I don't quite get it! I'm just starting out with Maven (ver. 2.0.9) and I would like to have this feature of NO re-reployement of the same version. Can someone summarize? How do I do this? Is it available Sonia MATHUS Baptiste wrote: > > Hi all, > > If some people were still interested in this subject, I found the > code&commit Brian was speaking about. > I also commented the bug I logged: > http://jira.codehaus.org/browse/MDEPLOY-74?focusedCommentId=129147#action_129147 > > The related improvement request (logged by Jason): > http://jira.codehaus.org/browse/MARTIFACT-6 > > With this modification, at the moment, the situation will be reversed: you > won't be able to redeploy an artifact that has already been deployed (no > problem for snapshot, which is taken apart). So, don't do mistakes :). > You'll have to connect to your repository and manually deploy the wrong > artifact(s). > Anyway, Imo, it's actually far better to have no option in this case than > in the old one (being able to redeploy any time you want). > > Cheers. > > -Original Message- > From: Brian E. Fox [mailto:[EMAIL PROTECTED] > Sent: Fri 3/28/2008 2:59 PM > To: Maven Users List > Subject: RE: RE : [deploy-plugin] Abort deploy when a target is present > > I'd have to check on this. I know in 2.1 it's on by default and there is > no way to force it. Perhaps Jason put it in the wagon manager or something > and not the plugin. > > -Original Message- > From: MATHUS Baptiste [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 2:53 AM > To: Maven Users List > Subject: RE : [deploy-plugin] Abort deploy when a target is present > > Great news! > > I had a quick look on > https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-deploy-plugin/ > and did not see any log related to it. > So was there already a logged bug about this: > http://jira.codehaus.org/browse/MDEPLOY-74 > > What/where is the "new code", some 3.x or something? So, is there another > svn repository for this? In fact, I'd be happy to be able to either use a > new released version or help merging back this feature if possible. > > Cheers > > Message d'origine > De: Brian E. Fox [mailto:[EMAIL PROTECTED] > Date: jeu. 27/03/2008 18:45 > À: Maven Users List > Objet : RE: [deploy-plugin] Abort deploy when a target is present > > This is the default in the new code, but it wasn't merged back to 2.0.x I > believe. > > -Original Message- > From: MATHUS Baptiste [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 27, 2008 9:32 AM > To: Maven Users List > Subject: [deploy-plugin] Abort deploy when a target is present > > Hi all, > > Recently, some developers did a release manually. So they put a release > version in the pom and triggered a deploy. Everything fine but... > The thing is: they forgot to re-update the pom.version to a new snapshot > version. > > So, as the code is continuously integrated, at each new commit, the recent > release was "automatically" overridden many times with the snapshot code > before realizing it :-/. > So, what I would like is to be able to put an additional option for maven > when run inside the continuous integration server, something like > -DdontOverrideRelease, that would make fail the deployment if the released > artefact is already present. > > I've taken a quick look at > http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html but > it seems it's not currently possible. > What do you think? Can a file an feature request about it in the plugin > tracker? > > Thanks a lot. > > Cheers. > -- > Baptiste > > > - > 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] > -- View this message in context: http://www.nabble.com/-deploy-plugin--Abort-deploy-when-a-target-is-present-tp16329568p20800811.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]
POM errors
Hello! Is there a tool or editor, that verifies if there are errors in the POM? Thanks Sonia -- View this message in context: http://www.nabble.com/POM-errors-tp20702653p20702653.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: Different absolute path
We are using UCM Clearcase and the vob paths have not been set up the same :confused:(don't ask me why!?!) Example: abc_ucm on Windows and abc/ucm on Unix This is causing us lots of headaches!!! Sonia solo1970 wrote: > > Hello, > > I have a dilemna: the absolute paths of our modules are not the same > depending if we are compiling on Windows or Unix and one of our > pre-requisites is to be able to run the Maven builds on either platform. > Has anyone else come across this issue? How did you resolve this? Does > it seem logical to use profiles or is there a better way to do it?? > > Thanks > > Sonia > -- View this message in context: http://www.nabble.com/Different-absolute-path-tp20561952p20562109.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]
Summary report
Hello, Does it exist, or can it be done to have a "REAL" summary report in a Multi-module project, that summarizes or allows us to specify particular reports for all of the submodules without having to browse down the hierarchy tree in the generated "site". Thanks Sonia -- View this message in context: http://www.nabble.com/Summary-report-tp20562055p20562055.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]
Different absolute path
Hello, I have a dilemna: the absolute paths of our modules are not the same depending if we are compiling on Windows or Unix and one of our pre-requisites is to be able to run the Maven builds on either platform. Has anyone else come across this issue? How did you resolve this? Does it seem logical to use profiles or is there a better way to do it?? Thanks Sonia -- View this message in context: http://www.nabble.com/Different-absolute-path-tp20561952p20561952.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]
${pom.xxx} vs ${project.xxx}
In a multi module project, What is it better to use: ${pom.xxx} vs ${project.xxx} vs ${xxx} and if you could explain to me why? I would appreciate Thanks Sonia -- View this message in context: http://www.nabble.com/%24%7Bpom.xxx%7D-vs-%24%7Bproject.xxx%7D-tp20546616p20546616.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: duplicate copies of SNAPSHOT dependencies in war artifact
We are having the same issue and using Maven 2.0.9 Can anyone help??? When creating a war for our webapp project, we use snapshots for 3rd party dependencies. Maven does not erase the old snapshot versions for the same jar. Which means we have 2 jars jars for the same module, example Webapp/WEB-INF/lib/ppp-PA1-200834234293-7.jar Webapp/WEB-INF/lib/ppp-PA1-200834234293-8.jar How do we resolve this Sonia L. carlos f wrote: > > using maven 2.0.4 > > When we generate a war we end up getting duplicates of all 3rd party > SNAPSHOT dependencies. > > For instance we use > com.javaforge.tapestry.tapestry-spring:jar:1.0.0-SNAPSHOT. we end up > with: > > tapestry-spring-1.0.0-SNAPSHOT.jar and > tapestry-spring-1.0.0-20061122.201931-1.jar in the war. > > This does not happen with snapshots we publish internally. I can only > assume that this is because we do not publish our snapshot using timestamp > "versioning". > > I am sure this is because of some convoluted way we set up the project's > pom or the project's parent pom. However, I can't seem to get a good fix > on the problem and was hoping that someone might point me in the right > direction. > > fyi - we are using maven 2.0.4 because an earlier attempt to upgrade broke > our build. I can only assume that somehow we set up our build using a > "defect" that was later fix after 2.0.4. When we have some room we are > planning on addressing this an upgrading our build tools. > > Carlos > -- View this message in context: http://www.nabble.com/duplicate-copies-of-SNAPSHOT-dependencies-in-war-artifact-tp18893733p20382088.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]
SNAPSHOT dependant version not picked up...
Hello, I have one module (A) dependant on another module (B). I made a change to the API of A and did a deploy to the repository (SNAPSHOT version). I then try to compile B, but it doesn't download the new SNAPSHOT version that's just been deployed, the only way I was able to is by deleting the SNAPSHOT version in my local repository Doesn't Maven check if there is a newer SNAPSHOT version based on the timestamp?? How do I solve this without deleting the local repository each time??? Sonia -- View this message in context: http://www.nabble.com/SNAPSHOT-dependant-version-not-picked-up...-tp20309064p20309064.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]
Filtering with Maven reosurce plug-in
Would it be possible to set filtering on a particular string instead of a variable? Anyone has any experience doing this??? http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html Thanks Sonia -- View this message in context: http://www.nabble.com/Filtering-with-Maven-reosurce-plug-in-tp20132862p20132862.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]
filter and replace capabilities
Hello, Anyone aware of a plug-in that can remove the \n \r from the source Java files at compile time? or during a pre-processing phase? Thanks Sonia -- View this message in context: http://www.nabble.com/filter-and-replace-capabilities-tp20118902p20118902.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]
outputFileNameMapping feature
Hello everyone, I need to change the name OF SOME of my dependencies to follow the ${artifactId}.${extension} pattern, how do I specify this if it's only for SOME dependencies and not all An example would be reatly appreciated! Sonia -- View this message in context: http://www.nabble.com/outputFileNameMapping-feature-tp20118369p20118369.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]
Parse error reading POM (=)
Hello Everyone, I tried the following in my POM, used for site generation: Rational ClearQuest http://cq-puscsa.lmc.ericsson.se/cqweb/login?/cqweb/main?command=GenerateMainFrame&service=CQ&schema=CCQ-TSPM&contextid=TSPDU BUT I get the following error: Reason: Parse error reading POM. Reason: entity reference name can not contain character =' (position: START_TAG seen ...sson.se/cqweb/login?/cqweb/main?command=GenerateMainFrame&service=... @110:99) for project How can I have the '=' tag, is there an escape character to use??? Thanks Sonia -- View this message in context: http://www.nabble.com/Parse-error-reading-POM-%28%3D%29-tp20090115p20090115.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]
Default value when info is missing - for Manifest
Hello Everyone, I need to put some information in the MANIFEST based on an environment variable, but when the environment variable is missing I want to set a default value. Is there any way to do that??? ... ${env.ABS_BUILD} ??? I want to put "NOREV" if env var not defined ... ... Thanks Sonia -- View this message in context: http://www.nabble.com/Default-value-when-info-is-missing---for-Manifest-tp20035071p20035071.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 Reactor
Is there a way to call Maven to get the output of the Reactor only? I am interested in knowing the order in which the various POMs will be built only as information first -- View this message in context: http://www.nabble.com/Maven-Reactor-tp19858666p19858666.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: Determining jar groupId ArtifactId for deploy-file
Thanks Stephen for explaining! Makes lots of sense!!! Sonia Stephen Connolly-2 wrote: > > you are working for ericsson... so com.ericsson.what.ever.you.want > > Or if you are working on a project hosted on dev.java.net you'd use > net.java.dev.projectname > > It's just like package names in java... there are no hard and fast > rules... but if you ever want to interact with the public > repositories, you'd want to ensure that the group Id you are using is > not used by anyone else... > > For example, if you publish to your internal repo using com.sun... and > then sun publish to repo1 an artifact with the same groupId and > artifactId but a newer version, it may interfere with your build as > that newer version will bee seen in version ranges > > If they deploy something with the same version, and your developers > accidentally get that one on their machein first you'll have all sorts > of trouble. > > So the recommendation is to use a group ID that you control (in this > case by you, we mean your employers) > > -Stephen > > 2008/10/2 solo1970 <[EMAIL PROTECTED]>: >> >> What does that mean exactly??? >> >> >> Stephen Connolly-2 wrote: >>> >>> yes, but it's best to use a group Id that you control >>> >>> Sent from my iPod >>> >>> On 2 Oct 2008, at 19:48, solo1970 <[EMAIL PROTECTED]> >>> wrote: >>> >>>> >>>> Ok, so if understand this correctly I can give it any groupId >>>> ArtifctId that >>>> I choose regardless of the file name. Once deployed with those >>>> coordinates, then that's what I use to declare the dependencies. >>>> >>>> Sonia >>>> >>>> >>>> >>>> Stephen Connolly-2 wrote: >>>>> >>>>> If they already exist in a maven repo... you could use that >>>>> (provided it >>>>> is >>>>> not a short groupId... so if it was www.somecompany.org that you >>>>> got the >>>>> files you could use the groupId of "com.somecompany") >>>>> >>>>> If you are unsure in any way... you could use your groupId to >>>>> ensure that >>>>> it >>>>> is these exact jars that are used... i.e. "com.ericsson.ncl" >>>>> >>>>> If you are bored you could crack-open the jar files and see what the >>>>> common >>>>> package root is and use that >>>>> >>>>> -Stephen >>>>> >>>>> 2008/10/2 solo1970 <[EMAIL PROTECTED]> >>>>> >>>>>> >>>>>> Hello, >>>>>> >>>>>> I am fairly new to Maven and Archiva and would like some help on two >>>>>> issues >>>>>> both related to the same problem. >>>>>> >>>>>> We have to use 2 jar files: nclmsg.public.jar and nclutil.public.jar >>>>>> provided to us by A third party (we need for compile and packaging >>>>>> (war)) >>>>>> >>>>>> 1. In order to use them, I want to do a mvn deploy:deploy-file to >>>>>> our >>>>>> repository, which is Archiva >>>>>> >>>>>> 2. How do we figure out the groupId, artifactId and version of those >>>>>> jars... >>>>>> I searched the different repositories on the net, but didn't find >>>>>> anything, >>>>>> probably because they were provided to us. >>>>>> >>>>>> mvn deploy:deploy-file -Dfile=nclmsg.public.jar -DgroupId=??? >>>>>> -DartifactId=??? -Dversion= -Dpackaging=jar -DgeneratePom=true >>>>>> -DcreateChecksum=true -DrepositoryId=3pp_cache >>>>>> -Durl=dav:http://maven..se:/repository/3pp_cache >>>>>> >>>>>> Can anyone help clarify this for me??? >>>>>> >>>>>> Sonia >>>>>> -- >>>>>> View this message in context: >>>>>> http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19781489.html >>>>>> Sent from the Maven - Users mailing list archive at Nabble.com. >>>>>> >>>>>> >>>>>> --- >>>>>> -- >>>>>
Re: Determining jar groupId ArtifactId for deploy-file
What does that mean exactly??? Stephen Connolly-2 wrote: > > yes, but it's best to use a group Id that you control > > Sent from my iPod > > On 2 Oct 2008, at 19:48, solo1970 <[EMAIL PROTECTED]> > wrote: > >> >> Ok, so if understand this correctly I can give it any groupId >> ArtifctId that >> I choose regardless of the file name. Once deployed with those >> coordinates, then that's what I use to declare the dependencies. >> >> Sonia >> >> >> >> Stephen Connolly-2 wrote: >>> >>> If they already exist in a maven repo... you could use that >>> (provided it >>> is >>> not a short groupId... so if it was www.somecompany.org that you >>> got the >>> files you could use the groupId of "com.somecompany") >>> >>> If you are unsure in any way... you could use your groupId to >>> ensure that >>> it >>> is these exact jars that are used... i.e. "com.ericsson.ncl" >>> >>> If you are bored you could crack-open the jar files and see what the >>> common >>> package root is and use that >>> >>> -Stephen >>> >>> 2008/10/2 solo1970 <[EMAIL PROTECTED]> >>> >>>> >>>> Hello, >>>> >>>> I am fairly new to Maven and Archiva and would like some help on two >>>> issues >>>> both related to the same problem. >>>> >>>> We have to use 2 jar files: nclmsg.public.jar and nclutil.public.jar >>>> provided to us by A third party (we need for compile and packaging >>>> (war)) >>>> >>>> 1. In order to use them, I want to do a mvn deploy:deploy-file to >>>> our >>>> repository, which is Archiva >>>> >>>> 2. How do we figure out the groupId, artifactId and version of those >>>> jars... >>>> I searched the different repositories on the net, but didn't find >>>> anything, >>>> probably because they were provided to us. >>>> >>>> mvn deploy:deploy-file -Dfile=nclmsg.public.jar -DgroupId=??? >>>> -DartifactId=??? -Dversion= -Dpackaging=jar -DgeneratePom=true >>>> -DcreateChecksum=true -DrepositoryId=3pp_cache >>>> -Durl=dav:http://maven..se:/repository/3pp_cache >>>> >>>> Can anyone help clarify this for me??? >>>> >>>> Sonia >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19781489.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] >>>> >>>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19785329.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] > > > -- View this message in context: http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19786021.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: Jar not in repository
I cannot use the system scope if I want to files to end up in my final package... justinedelson wrote: > > You can use the system scope. But you really shouldn't as that behavior > is non-portable. > > Justin > > -Original Message- > From: solo1970 [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2008 2:41 PM > To: users@maven.apache.org > Subject: Jar not in repository > > > I have another question. > > What is best way in Maven to specify a dependency on a file system??? > Without using the repositories??? Is there a way to do it? Some of the > jars we need reside on ClearCase and we can't deploy them to the > repository. > > I'd appreciate your input! > > Sonia > -- > View this message in context: > http://www.nabble.com/Jar-not-in-repository-tp19785221p19785221.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] > > > -- View this message in context: http://www.nabble.com/Jar-not-in-repository-tp19785221p19785764.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: Determining jar groupId ArtifactId for deploy-file
Ok, so if understand this correctly I can give it any groupId ArtifctId that I choose regardless of the file name. Once deployed with those coordinates, then that's what I use to declare the dependencies. Sonia Stephen Connolly-2 wrote: > > If they already exist in a maven repo... you could use that (provided it > is > not a short groupId... so if it was www.somecompany.org that you got the > files you could use the groupId of "com.somecompany") > > If you are unsure in any way... you could use your groupId to ensure that > it > is these exact jars that are used... i.e. "com.ericsson.ncl" > > If you are bored you could crack-open the jar files and see what the > common > package root is and use that > > -Stephen > > 2008/10/2 solo1970 <[EMAIL PROTECTED]> > >> >> Hello, >> >> I am fairly new to Maven and Archiva and would like some help on two >> issues >> both related to the same problem. >> >> We have to use 2 jar files: nclmsg.public.jar and nclutil.public.jar >> provided to us by A third party (we need for compile and packaging (war)) >> >> 1. In order to use them, I want to do a mvn deploy:deploy-file to our >> repository, which is Archiva >> >> 2. How do we figure out the groupId, artifactId and version of those >> jars... >> I searched the different repositories on the net, but didn't find >> anything, >> probably because they were provided to us. >> >> mvn deploy:deploy-file -Dfile=nclmsg.public.jar -DgroupId=??? >> -DartifactId=??? -Dversion= -Dpackaging=jar -DgeneratePom=true >> -DcreateChecksum=true -DrepositoryId=3pp_cache >> -Durl=dav:http://maven..se:/repository/3pp_cache >> >> Can anyone help clarify this for me??? >> >> Sonia >> -- >> View this message in context: >> http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19781489.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] >> >> > > -- View this message in context: http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19785329.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]
Jar not in repository
I have another question. What is best way in Maven to specify a dependency on a file system??? Without using the repositories??? Is there a way to do it? Some of the jars we need reside on ClearCase and we can't deploy them to the repository. I'd appreciate your input! Sonia -- View this message in context: http://www.nabble.com/Jar-not-in-repository-tp19785221p19785221.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]
Determining jar groupId ArtifactId for deploy-file
Hello, I am fairly new to Maven and Archiva and would like some help on two issues both related to the same problem. We have to use 2 jar files: nclmsg.public.jar and nclutil.public.jar provided to us by A third party (we need for compile and packaging (war)) 1. In order to use them, I want to do a mvn deploy:deploy-file to our repository, which is Archiva 2. How do we figure out the groupId, artifactId and version of those jars... I searched the different repositories on the net, but didn't find anything, probably because they were provided to us. mvn deploy:deploy-file -Dfile=nclmsg.public.jar -DgroupId=??? -DartifactId=??? -Dversion= -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true -DrepositoryId=3pp_cache -Durl=dav:http://maven..se:/repository/3pp_cache Can anyone help clarify this for me??? Sonia -- View this message in context: http://www.nabble.com/Determining-jar-groupId-ArtifactId-for-deploy-file-tp19781489p19781489.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]