Issue with deploy:deploy-file
Hello, I would like to set up non-trivial configuration of deploy plugin. Sometimes it is necessary to deploy the snapshot of the artifact into public repository and it is not needed to deploy snapshots into private repository at all. I disabled deploy plugin using skip parameter and I created profile for snapshots deploys: ?xml version=1.0 encoding=UTF-8? build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.7/version configuration skiptrue/skip /configuration /plugin ... /plugins /build profiles profile idpublish-snapshot/id build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.7/version executions execution iddeploy-snapshot/id phasedeploy/phase goals goaldeploy-file/goal /goals configuration urlhttp://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots//url repositoryIdzt-public-snapshots/repositoryId file${project.build.directory}/${zt-license-server.finalName}.zip/file version${project.version}/version groupId${project.groupId}/groupId artifactId${project.artifactId}/artifactId generatePomfalse/generatePom packagingzip/packaging /configuration /execution /executions /plugin /plugins /build /profile /profiles To upload the artifact I use the following command: mvn clean deploy -Ppublish-snapshot For some reason the artifact is uploaded twice: [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ jr-license-server-runner --- [INFO] Skipping artifact deployment [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy-file (deploy-snapshot) @ jr-license-server-runner --- Downloading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml Uploading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip Uploaded: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip (32025 KB at 507.4 KB/sec) Downloading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml Uploading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml Uploaded: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml (637 B at 1.1 KB/sec) Uploading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml Uploaded: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/maven-metadata.xml (320 B at 0.4 KB/sec) Uploading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip Uploaded: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/jr-license-server-runner-1.4.4-20120206.063112-1.zip (32025 KB at 922.0 KB/sec) Uploading: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml Uploaded: http://repos.zeroturnaround.com/nexus/content/repositories/zt-public-snapshots/com/zeroturnaround/jr-license-server/jr-license-server-runner/1.4.4-SNAPSHOT/maven-metadata.xml (637 B at 1.3 KB/sec) [INFO] [INFO] BUILD SUCCESS [INFO] Why it happens? -- View this message in context: http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5459611.html Sent from the Maven - Users mailing list archive at Nabble.com.
Re: Issue with deploy:deploy-file
Thank you for the tip! Effective pom has two definitions of maven-deploy-plugin: one is profile and one is plugins section. Second definition has two execution. First execution is generated by Maven. It runs the goal deploy and has configuration/skip = true (I set this parameter it in my profile). Second execution came from profile. Could it be an issue in deploy plugin? Igor On 6 February 2012 18:16, Wayne Fay [via Maven] ml-node+s40175n5460471...@n5.nabble.com wrote: I disabled deploy plugin using skip parameter and I created profile for snapshots deploys: ... For some reason the artifact is uploaded twice: Check mvn help:effective-pom to be sure that Maven's generated model matches what you are expecting after evaluation of your profiles. Wayne - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5460471.html To unsubscribe from Issue with deploy:deploy-file, click here. NAML -- View this message in context: http://maven.40175.n5.nabble.com/Issue-with-deploy-deploy-file-tp5459611p5460910.html Sent from the Maven - Users mailing list archive at Nabble.com.
Apply two tags in SCM, when releasing
Hi, All! Is is somehow possible to tag the project in SVN with two different tags while making release? One tag is applied by release plugin and it is project name-version number, but I'd like to put an additional tag - latest, to mark our latest version of the project in SVN. Thank you in advice! -- View this message in context: http://www.nabble.com/Apply-two-tags-in-SCM%2C-when-releasing-tp16953782s177p16953782.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: [2.0.4] release:perform without surfire reports not possible?
Test skipping in release:perform with the command line parameter -Dmaven.test.skip=true does not work in 2.0.4 version. I suppose this a bug in release plugin.
Re: site plug-in error if src folders do not exist
Hello, I have the same problem. There is no src folder in my EAR subproject and PMD report fails on it. Igor On 2/13/06, Shukla, Sanjay [EMAIL PROTECTED] wrote: I am wondering if this is a know error for the site plug-in, throws an error if src folders do not exist. Src folders are absent as I am using a module to aggregate packages. [INFO] [INFO] Building RMS Packager [INFO]task-segment: [site:site] [INFO] [INFO] Preparing surefire-report:report [INFO] [ear:generate-application-xml] [INFO] Generating application.xml [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [site:site] [WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport - AbstractMethodError: canGenerateReport() [WARNING] Error loading report org.codehaus.mojo.surefire.SurefireReportMojo - AbstractMethodError: canGenerateReport() [INFO] Generate JavaDocs report. [INFO] Generate CPD Report report. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error during report generation Embedded error: Couldn't find directory C:\IdeaProjects\rms271\rms\rmspackager\src\java [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error during report generation at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa l(DefaultLifecycleExecutor.java:485) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:455) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.jav a:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.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) Caused by: org.apache.maven.plugin.MojoExecutionException: Error during report generation at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:389) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:531) ... 16 more Caused by: org.apache.maven.reporting.MavenReportException: Couldn't find directory C:\IdeaProjects\rms271\rms\rmspackag er\src\java at org.apache.maven.plugin.pmd.CpdReport.executeReport(CpdReport.java:159) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep ort.java:98) at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.jav a:802) at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301) ... 18 more Caused by: java.io.FileNotFoundException: Couldn't find directory C:\IdeaProjects\rms271\rms\rmspackager\src\java at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:69) at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:58) at org.apache.maven.plugin.pmd.CpdReport.executeReport(CpdReport.java:155) ... 21 more [INFO] [INFO] Total time: 3 minutes 38 seconds [INFO] Finished at: Mon Feb 13 03:52:01 EST 2006 [INFO] Final Memory: 18M/52M [INFO] Sanjay Shukla, HPI Product Engineering, 2 Penn Plaza, NY. 212 904 3629 Office 732 692 4419 Cell
Re: How to disable transitive dependency?
Why not? You will declare all dependencies you need by hands, as you did it in Maven 1. Thus, your project will be protected from changes in Acegi's pom in public repository. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to disable transitive dependency?
Hello! I think I have found solution what is suitable for me. For Acegi Security framework I have created my own pom acegi-security-0.9.0.pom with the following content: project modelVersion4.0.0/modelVersion groupIdacegisecurity/groupId artifactIdacegi-security/artifactId version0.9.0/version packagingjar/packaging dependencies dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.2/version /dependency dependency groupIdcommons-attributes/groupId artifactIdcommons-attributes-api/artifactId version2.1/version /dependency dependency groupIdcommons-attributes/groupId artifactIdcommons-attributes-compiler/artifactId version2.1/version /dependency /dependencies /project I have copied this pom into my repository on http server. This repository is first of two repositories in my pom.xml. The second one is Maven's public repository. Everytime when I run Maven on clean computer, Maven checks my repository first and download my corrected pom. For Spring framework the pom file is simplier: project modelVersion4.0.0/modelVersion groupIdspringframework/groupId artifactIdspring/artifactId version1.2.5/version /project - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn eclipse:eclipse try to download dependency jar doesn't exist
OK, I found one solution, but I'm not sure it's best one. It was need to make list of exclusions for that artifact: dependency groupIdp6spy/groupId artifactIdp6spy/artifactId version1.3/version scopetest/scope exclusions exclusion groupIdoracle/groupId artifactIdclasses12/artifactId /exclusion exclusion groupIdjboss/groupId artifactIdjboss/artifactId /exclusion /exclusions /dependency 2005/11/10, Igor Bljahhin [EMAIL PROTECTED]: I installed tools-1.4.jar manually already, so I don't know exacly what artifact use this dependency. But I have the same problem again with another artifact, with p6spy (http://www.ibiblio.org/maven2/p6spy/p6spy/1.3/p6spy-1.3.pom). It needs a several dependencies, one of them is oracle:classes12:9.2.0.5:jar. I am sure, I do not need to use any internal dependencies of p6spy. How can I disable artifact's dependency loading? Sincerelly, Igor 2005/11/10, Emmanuel Venisse [EMAIL PROTECTED]: run mvn with -X parameter for find which artifact use this dependency or search it in your local repo. Emmanuel Igor Bljahhin a écrit : Hi! I got same problem. My project uses JDK 5.0, so I don't have Java 1.4 on my computer at all. Recently, I added three libraries from Spring framework (core, context and beans) and now Maven tries to download tools-1.4.jar from the central repository. I think it is weird. Igor 2005/11/7, el wang [EMAIL PROTECTED]: it finally works. i have to install jdk's tools.jar to m2 repository. :-( --- el wang [EMAIL PROTECTED] wrote: thanks stephen, jsf is my fault. but m2 still ask me to download http://repo1.maven.org/maven2/java/tools/1.4/tools-1.4.jar what is this? --- Stephen Coy [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 07/11/2005, at 10:55 PM, el wang wrote: in my pom.xml, add springframework:spring-mmock:1.2.3 to it's dependency. when try to test my code. using #mvn eclispe:eclipse also got the same result. m2 told me that it can't find jsf-api-1.1.jar or jdbc-stdext-2.0.jar __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - 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] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Compilation of multiproject project
Hi! I have strange problem with the compilation of multiproject project. If I run the mvn compile in subproject, everything is OK, but if I run the mvn compile in the top project, the compilation fails, because the compilator does not find any dependencies of that subproject. One error message from the compilator (actually there are many of them): C:\projects\translators\translators-commons\src\main\java\com\challengeit\translators\util\SpringContextLoader.java :[20,29] cannot find symbol symbol : class ClassPathXmlApplicationContext location: class com.challengeit.translators.util.SpringContextLoader The class ClassPathXmlApplicationContext came from Spring dependency. Do you have any ideas? Sincerelly, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] Compilation of multiproject project
Sorry, I was wrong. The compilation did not work at all and started work when I changed the scope parameter of each dependency, runtime to compile. Sorry. 2005/11/11, Igor Bljahhin [EMAIL PROTECTED]: Hi! I have strange problem with the compilation of multiproject project. If I run the mvn compile in subproject, everything is OK, but if I run the mvn compile in the top project, the compilation fails, because the compilator does not find any dependencies of that subproject. One error message from the compilator (actually there are many of them): C:\projects\translators\translators-commons\src\main\java\com\challengeit\translators\util\SpringContextLoader.java :[20,29] cannot find symbol symbol : class ClassPathXmlApplicationContext location: class com.challengeit.translators.util.SpringContextLoader The class ClassPathXmlApplicationContext came from Spring dependency. Do you have any ideas? Sincerelly, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mvn eclipse:eclipse try to download dependency jar doesn't exist
Hi! I got same problem. My project uses JDK 5.0, so I don't have Java 1.4 on my computer at all. Recently, I added three libraries from Spring framework (core, context and beans) and now Maven tries to download tools-1.4.jar from the central repository. I think it is weird. Igor 2005/11/7, el wang [EMAIL PROTECTED]: it finally works. i have to install jdk's tools.jar to m2 repository. :-( --- el wang [EMAIL PROTECTED] wrote: thanks stephen, jsf is my fault. but m2 still ask me to download http://repo1.maven.org/maven2/java/tools/1.4/tools-1.4.jar what is this? --- Stephen Coy [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 07/11/2005, at 10:55 PM, el wang wrote: in my pom.xml, add springframework:spring-mmock:1.2.3 to it's dependency. when try to test my code. using #mvn eclispe:eclipse also got the same result. m2 told me that it can't find jsf-api-1.1.jar or jdbc-stdext-2.0.jar __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - 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] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.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]
Re: mvn eclipse:eclipse try to download dependency jar doesn't exist
I installed tools-1.4.jar manually already, so I don't know exacly what artifact use this dependency. But I have the same problem again with another artifact, with p6spy (http://www.ibiblio.org/maven2/p6spy/p6spy/1.3/p6spy-1.3.pom). It needs a several dependencies, one of them is oracle:classes12:9.2.0.5:jar. I am sure, I do not need to use any internal dependencies of p6spy. How can I disable artifact's dependency loading? Sincerelly, Igor 2005/11/10, Emmanuel Venisse [EMAIL PROTECTED]: run mvn with -X parameter for find which artifact use this dependency or search it in your local repo. Emmanuel Igor Bljahhin a écrit : Hi! I got same problem. My project uses JDK 5.0, so I don't have Java 1.4 on my computer at all. Recently, I added three libraries from Spring framework (core, context and beans) and now Maven tries to download tools-1.4.jar from the central repository. I think it is weird. Igor 2005/11/7, el wang [EMAIL PROTECTED]: it finally works. i have to install jdk's tools.jar to m2 repository. :-( --- el wang [EMAIL PROTECTED] wrote: thanks stephen, jsf is my fault. but m2 still ask me to download http://repo1.maven.org/maven2/java/tools/1.4/tools-1.4.jar what is this? --- Stephen Coy [EMAIL PROTECTED] wrote: http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html On 07/11/2005, at 10:55 PM, el wang wrote: in my pom.xml, add springframework:spring-mmock:1.2.3 to it's dependency. when try to test my code. using #mvn eclispe:eclipse also got the same result. m2 told me that it can't find jsf-api-1.1.jar or jdbc-stdext-2.0.jar __ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs - 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] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] release:perform does not work
Hello! I have a multimodule project with flat directory structure: ./ translators/ -- parent project translators-commons/ -- the project with business layer components translators-web/ -- the project with web layer components The child projects are described in the parent project's pom.xml as modules module../translators-commons/module module../translators-web/module /modules When I run mvn release:perform command, I get the following error: [INFO] [release:perform] [INFO] Checking out the project to perform the release ... THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: unknown Reason: Could not find the model file 'C:\projects\translators\target\checkout\..\translators-commons\pom.xml' . What can I do? Sincerelly yours, Igor