Deploying a collection of Java class files
Maven seems to have support in deploying single file artifacts like jars, ears, wars, etc. However, my project requires me to deploy (via FTP) to a particular directory on a machine all (or a selection) of my Java class files - i.e. in an exploded form (not jarred). My project is not a war or an ear - just regular Java class files. How can I do this with Maven? I can't seem to find any plugin that does this - it seems the deploy plugin doesn't do this. There may be an explode plugin, but I don't want the Manifest file there either - and the explode plugin is only Maven 1.0 compatible... -- View this message in context: http://www.nabble.com/Deploying-a-collection-of-Java-class-files-tp15346181s177p15346181.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 Eclipse plugin does not evaluate systemPath dependency
I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPath${AF_CLASSPATH}/systemPath /dependency The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH to c:\oracle\apps (where my class folder is). However, it doesn't seem to do that. It even fails if I hard code the directory into the systemPath: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPathc:/oracle/apps/systemPath /dependency Interestingly, both techniques work from the Maven command line, thus leading me to believe there's something wrong with the Maven Eclipse plugin... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.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: Maven Eclipse plugin does not evaluate systemPath dependency
Hi Arnaud, Thanks for the info. I tried that, too. Unfortunately, that didn't work either. Again, both ${AF_CLASSPATH} and ${env.AF_CLASSPATH} work from the command line. Arnaud HERITIER wrote: If it is an environment variable it should be ${env.AF_CLASSPATH} ?? Did you try ? Arnaud On Jan 30, 2008 11:49 PM, 8 [EMAIL PROTECTED] wrote: I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPath${AF_CLASSPATH}/systemPath /dependency The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH to c:\oracle\apps (where my class folder is). However, it doesn't seem to do that. It even fails if I hard code the directory into the systemPath: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPathc:/oracle/apps/systemPath /dependency Interestingly, both techniques work from the Maven command line, thus leading me to believe there's something wrong with the Maven Eclipse plugin... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.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] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195088.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: Maven Eclipse plugin does not evaluate systemPath dependency
Oops, I forgot to post the Eclipse error displayed: Required library cannot denote external folder: 'C:\oracle\apps' for project 'MyProgram' Obviously, c:\oracle\apps points to a class folder... hmm. Arnaud HERITIER wrote: If it is an environment variable it should be ${env.AF_CLASSPATH} ?? Did you try ? Arnaud On Jan 30, 2008 11:49 PM, 8 [EMAIL PROTECTED] wrote: I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPath${AF_CLASSPATH}/systemPath /dependency The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH to c:\oracle\apps (where my class folder is). However, it doesn't seem to do that. It even fails if I hard code the directory into the systemPath: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPathc:/oracle/apps/systemPath /dependency Interestingly, both techniques work from the Maven command line, thus leading me to believe there's something wrong with the Maven Eclipse plugin... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.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] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195467.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: Maven Eclipse plugin does not evaluate systemPath dependency
Unfortunately, the class folder contains over 100,000 .class files (typical Oracle fat)... and since jars can only contain 65K files, this will not work (I'm using Java 5). I guess I can put it in two or more jar files, but that's pretty messy. Also, that still doesn't address why this doesn't work - when it should, as the command line demonstrates. Wayne Fay wrote: Can you perhaps jar up the classes in that path, and then specify the full jar name, or even better check it into your local Maven repo cache using install:install-file? Wayne On 1/30/08, 8 [EMAIL PROTECTED] wrote: Oops, I forgot to post the Eclipse error displayed: Required library cannot denote external folder: 'C:\oracle\apps' for project 'MyProgram' Obviously, c:\oracle\apps points to a class folder... hmm. Arnaud HERITIER wrote: If it is an environment variable it should be ${env.AF_CLASSPATH} ?? Did you try ? Arnaud On Jan 30, 2008 11:49 PM, 8 [EMAIL PROTECTED] wrote: I have the following in my pom.xml: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPath${AF_CLASSPATH}/systemPath /dependency The ${AF_CLASSPATH} should evaluate the environment variable AF_CLASSPATH to c:\oracle\apps (where my class folder is). However, it doesn't seem to do that. It even fails if I hard code the directory into the systemPath: dependency groupIdoracle.apps/groupId artifactIdoracle.apps.all/artifactId version11.5.10/version scopesystem/scope systemPathc:/oracle/apps/systemPath /dependency Interestingly, both techniques work from the Maven command line, thus leading me to believe there's something wrong with the Maven Eclipse plugin... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15194043.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] -- .. Arnaud HERITIER .. OCTO Technology - aheritier AT octo DOT com www.octo.com | blog.octo.com .. ASF - aheritier AT apache DOT org www.apache.org | maven.apache.org ... -- View this message in context: http://www.nabble.com/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15195467.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/Maven-Eclipse-plugin-does-not-evaluate-systemPath-dependency-tp15194043s177p15199253.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 clean plugin not working
I'm new to Maven and I'm having some issues using the clean plugin. When I run the clean lifecycle phase (or clean:clean goal), I get the following error: mvn -e clean + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] - --- [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist o r no valid version could be found [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.m aven.plugins:maven-clean-plugin' does not exist or no valid version could be fou nd at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1286) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor (DefaultLifecycleExecutor.java:1522) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForP ackaging(DefaultLifecycleExecutor.java:1016) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycl eMappings(DefaultLifecycleExecutor.java:980) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.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.version.PluginVersionNotFoundException: The p lugin 'org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid v ersion could be found at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:228) at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl uginVersion(DefaultPluginVersionManager.java:90) at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug inManager.java:166) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa ultLifecycleExecutor.java:1257) ... 18 more [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Jan 28 12:10:12 PST 2008 [INFO] Final Memory: 1M/2M [INFO] Interestingly, I am able to pull in the junit jars just fine (a snippet of my pom.xml): dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version /dependency I believe my proxy settings are correct (my settings.xml): ?xml version=1.0? settings proxies proxy activetrue/active protocolhttp/protocol hostwww.mycompany.com/host port8/port /proxy /proxies /settings So I would think that it would be able to go to the main maven repository on http://repo1.maven.org/maven2/ to pick up the plugin. What am I doing wrong here? Thanks in advance. -- View this message in context: http://www.nabble.com/Maven-clean-plugin-not-working-tp15173740s177p15173740.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: Maven clean plugin not working
Yep, that was the issue. Wendy Smoak-3 wrote: On Jan 29, 2008 6:32 PM, 8 [EMAIL PROTECTED] wrote: I'm new to Maven and I'm having some issues using the clean plugin. When I run the clean lifecycle phase (or clean:clean goal), I get the following error: ... I believe my proxy settings are correct (my settings.xml): Try adding -U to the command line: 'mvn clean -U'. My guess is that it failed once before you configured your proxy, and now you're running into the daily update policy. (Check the list archives, this comes up a lot. There's an issue open to improve this behavior so it doesn't 'remember' a failed download.) -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Maven-clean-plugin-not-working-tp15173740s177p15174178.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]