filter module when deploying multi-modules project
Hi, If I have a multi-modules project with a package type jar and war, how can I disable the upload of the war file when I perform a deploy to my own repository? In another word, I just want to upload the jar as artifact and ignore the war file. Is this possible? -- Come visit my open source projects: http://code.google.com/p/sweetscala - a Scala web framework. Building web application the sweet way. http://code.google.com/p/javasupport - a collection of libraries and tools for Java development. Get a SpringMVC webapp started fast!
jdk version range is not checking with dashes?
Hi, If I have the following config, which I think it should restrict JDK1.5 or higher: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-enforcer-plugin/artifactId version1.0-alpha-2/version executions execution goals goalenforce-once/goal /goals configuration rules requireJavaVersion !-- minimum version is 1.4.2, Java 5 and higher not allowed -- version[1.5.0)/version /requireJavaVersion /rules /configuration /execution /executions /plugin But this failed on my MacOSX, which has jdk 6: $ java -version java version 1.6.0_01-dp Java(TM) SE Runtime Environment (build 1.6.0_01-dp-b06-101) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-41-release, mixed mode) I think the actual jdk version label is 1.6.0-1 and thus failed because of the dash? So is this consider a bug for the plugin? Thanks, -Z -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala
achivia - what is locked user mean?
What is the meaning of locked user in Archivia? Also, I have unselected Force User to Change Password but it still prompt to change change password every few month. Is there way to disable this? Thanks. -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala
generating javadoc on one of the dependency jar
Hello list, I have a commercial jar artifact that uploaded to my own repository, and I can access it fine. I want to gerenate a javadoc for this particular jar along with my project javadoc. Is this possible? Can someone show me what I have to do in pom to configure this? Thanks, -Zemian -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala
default-skin not found from central?
Hi, I received this error when trying mvn site:stage on my project: INFO] [ERROR] BUILD FAILURE [INFO] [INFO] The skin does not exist: Unable to locate resource in repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.skins -DartifactId=maven-default-skin -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.skins -DartifactId=maven-default-skin -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.apache.maven.skins:maven-default-skin:jar:1.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) but the central repo from http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-skin/1.0/ does exists, so what is the error mean? Thanks, -Z -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how modules gets other modules as dependencies?
Hi list, I a parent pom with two sub modules, one war and one jar. the war depends on jar. When I tries to run jetty:run on war modules, it can't find the artifact from jar module that it depends on. It only works when I install the jar into local repo. Is there better way to do this? Thanks. -Z - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
archetype:create parameter
HI, In http://maven.apache.org/plugins/maven-archetype-plugin/examples/create-batch.html, the example shown with -Dpackage=1.5. What does it do? I Can't seem to find document for that. -Z - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to prevent default goal in a phase to run?
Hi, I have successfully setup and bind assembly plugin in pom to generate my custom jar file at package phase. But then the default jar:jar still get run during package phase. How can i prevent it from running, or skip this goal? -- Thanks, Zemian Deng
Re: [ANN] Maven Eclipse Plugin 2.5.1 Released
Hi eclipse plugin users, I have couple feedback to the plugin. I used mvn eclipse:m2eclipse -Dwptversion=1.5 for all my webapp dev. Is there any update for wptversion that I should be aware of? The old one works fine, but using number 1.5 always make it seems it's outdated. Can it be set something like -Dwptversion=latest instead? Also, when use command above, there are two things I always need to set before an webapp can be run: 1) Enable the j2EE Dependecies checkbox for M2REPO library set in the project properties. 2) Add server library(Tomcat) to the classpath of the project. Are there way to auto set these? Thanks, Zemian Deng On Sat, Apr 5, 2008 at 3:09 AM, Arnaud HERITIER [EMAIL PROTECTED] wrote: The Maven team is pleased to announce the release of the Maven Eclipse Plugin, version 2.5.1 This plugin is used to generate Eclipse IDE files (*.classpath, *.wtpmodules and the .settings folder) for use with a project. http://maven.apache.org/plugins/maven-eclipse-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.5.1/version /plugin This release fixes several bugs. Release Notes - Maven 2.x Eclipse Plugin - Version 2.5.1 ** Bug * [MECLIPSE-266] - plugin applies java facet to ear project * [MECLIPSE-411] - manifest property usage is only for ogsi maifests * [MECLIPSE-412] - Generation of jst.java Facet for EAR packaging kills my RAD workspace * [MECLIPSE-413] - EclipseOSGiManifestWriter uses the artifact id and not the EclipseProjectName ** New Feature * [MECLIPSE-405] - to-maven target should allow to strip qualifier when creating artifacts from osgi bundles Enjoy, -The Maven team .. 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 ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Zemian Deng
Re: is there way to reset admin password?
k, thanks for the info Wendy. I got it working now. At first thought I forgot my password is not right, but it's been the same all along. What happens is someone shuts down the server expectantly. When it rebooted, the archiva instance no longer can authenticate admin user, even though the site is up. I went restart the webapp and everything is fine again. Might be some caching and not flushing out with a bad shutdown? -Zemian On Fri, Apr 4, 2008 at 9:57 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 6:50 AM, Zemian Deng [EMAIL PROTECTED] wrote: Hi Wendy, do you know what's the default password set for a guest user? None... 'guest' is the unauthenticated user. It's who you are if you don't log in. -- Wendy -- Thanks, Zemian Deng
Re: Filter config directory...
Hello Borut, placing those config files in your src/main/resources will make them visible in classpath. filter them out in your jar plugin and you won't see them during packaging. And you said you know how to do this. :) On Fri, Apr 4, 2008 at 3:50 AM, Borut Bolčina [EMAIL PROTECTED] wrote: Hello, I would like to - filter config directory (some property/configuration files), - don't package the content of the config it in the jar - and make config directory a classpath entry for the exec:java plugin I know how to filter src/main/resources. Any tips? Cheers,Borut -- Thanks, Zemian Deng
how to force archiva download an artifact
Hi, I have successfully setup a ProxyConnector with my own Repository url. One of the artifact has been downloaded into my local repo already. But when I create a new project pom.xml and refer to second artifact from the same proxy, it keeps error out with with missing artifact. From the error I can see the specified remote repositories does indeed contains my archiva url. I also manually checked my archiva instance with path like http://myhost/archiva/repository/internal/org/mygroup2/myartifact2 and it's NOT there. So the questions is how do I force archiva to download it from the repository url(proxied repo) that I have setup? Thanks Zemian Deng
how to force archiva download an artifact
Hi, I have successfully setup a ProxyConnector with my own Repository url. One of the artifact has been downloaded into my local repo already. But when I create a new project pom.xml and refer to second artifact from the same proxy, it keeps error out with with missing artifact. From the error I can see the specified remote repositories does indeed contains my archiva url. I also manually checked my archiva instance with path like http://myhost/archiva/repository/internal/org/mygroup2/myartifact2 and it's NOT there. So the questions is how do I force archiva to download it from the repository url(proxied repo) that I have setup? Thanks Zemian Deng
Re: maven-archetype-plugin 2.0-alpha-2 failed
The command I stated doesn't require any project setup. You should able to just run it on your terminal and you get error. On my Mac10.5, I get this: ~ thebugslayer$ mvn org.apache.maven.plugins:maven-archetype-plugin: 2.0-alpha-2:create - DarchetypeGroupId=net.liftweb - DarchetypeArtifactId=lift-archetype-basic - DarchetypeVersion=0.6 - DremoteRepositories=http://scala-tools.org/repo-releases - DgroupId=com.liftone -DartifactId=liftone [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [org.apache.maven.plugins:maven-archetype- plugin:2.0-alpha-2:create] (aggregator-style) [INFO] Downloading: http://repo1.maven.org/maven2/com/liftone/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom Downloading: http://repo1.maven.org/maven2/com/liftone/wagon-http-shared/1.0-beta-2/wagon-http-shared-1.0-beta-2.pom [INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. [INFO] Setting property: velocimacro.messages.on = 'false'. [INFO] Setting property: resource.loader = 'classpath'. [INFO] Setting property: resource.manager.logwhenfound = 'false'. [INFO] [archetype:create] [INFO] Defaulting package to group ID: com.liftone [INFO] We are using command line specified remote repositories: http://scala-tools.org/repo-releases Downloading: http://repo1.maven.org/maven2/net/liftweb/lift-archetype-basic/0.6/lift-archetype-basic-0.6.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: net.liftweb ArtifactId: lift-archetype-basic Version: 0.6 Reason: Unable to locate resource in repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=net.liftweb -DartifactId=lift- archetype-basic -Dversion=0.6 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=net.liftweb -DartifactId=lift- archetype-basic -Dversion=0.6 -Dpackaging=jar -Dfile=/path/to/file - Durl=[url] -DrepositoryId=[id] net.liftweb:lift-archetype-basic:jar:0.6 from the specified remote repositories: id0 (http://scala-tools.org/repo-releases) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Tue Mar 11 12:42:13 EDT 2008 [INFO] Final Memory: 7M/13M [INFO] On Mar 11, 2008, at 12:17 PM, Brian E. Fox wrote: Alpha-2 restored backwards compatibility so we need to see the logs to assist. -Original Message- From: thebugslayer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 10:49 AM To: Maven Users List Subject: maven-archetype-plugin 2.0-alpha-2 failed Hello, Does anyone know why the earlier version of plugin works, but the latest failed? SUCESS: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=0.6 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=com.liftone -DartifactId=liftone FAILED mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-2:create \ -DarchetypeGroupId=net.liftweb \ -DarchetypeArtifactId=lift-archetype-basic \ -DarchetypeVersion=0.6 \ -DremoteRepositories=http://scala-tools.org/repo-releases \ -DgroupId=com.liftone -DartifactId=liftone -- theBUGslayer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: maven-archetype-plugin 2.0-alpha-2 failed
here is more logging using -X option if you needed + Error stacktraces are turned on. Maven version: 2.0.8 Java version: 1.5.0_13 OS name: mac os x version: 10.5.2 arch: i386 Family: unix [DEBUG] Building Maven user-level plugin registry from: '/Users/ thebugslayer/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/opt/maven/ conf/plugin-registry.xml' [INFO] Scanning for projects... [DEBUG] Retrieving parent-POM: org.apache.maven.archetype:maven- archetype::2.0-alpha-2 for project: org.apache.maven.plugins:maven- archetype-plugin:maven-plugin:null from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::7 for project: org.apache.maven.archetype:maven-archetype:pom:2.0-alpha-2 from the repository. [DEBUG] Retrieving parent-POM: org.apache:apache::4 for project: org.apache.maven:maven-parent:pom:7 from the repository. [DEBUG] Adding managed dependencies for org.apache.maven.plugins:maven- archetype-plugin [DEBUG] junit:junit:jar:3.8.1:test [DEBUG] commons-io:commons-io:jar:1.3.1 [DEBUG] commons-collections:commons-collections:jar:3.2 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-6:test [DEBUG] org.apache.maven:maven-model:jar:2.0.8 [DEBUG] dom4j:dom4j:jar:1.6.1 [DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.3 [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9- stable-1 [DEBUG] org.apache.maven:maven-project:jar:2.0.8 [DEBUG] org.apache.maven:maven-core:jar:2.0.8 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8 [DEBUG] jdom:jdom:jar:1.0 [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5 [DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0- beta-1:test [DEBUG] velocity:velocity:jar:1.4 [DEBUG] net.sourceforge.jchardet:jchardet:jar:1.0 [DEBUG] org.apache.maven.archetype:archetype-common:jar:2.0-alpha-2 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6 [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [org.apache.maven.plugins:maven-archetype- plugin:2.0-alpha-2:create] (aggregator-style) [INFO] [DEBUG] org.apache.maven.plugins:maven-archetype-plugin:maven-plugin: 2.0-alpha-2:runtime (selected for runtime) [DEBUG] Adding managed dependencies for unknown:archetype-common [DEBUG] junit:junit:jar:3.8.1:test [DEBUG] commons-io:commons-io:jar:1.3.1 [DEBUG] commons-collections:commons-collections:jar:3.2 [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-6:test [DEBUG] org.apache.maven:maven-model:jar:2.0.8 [DEBUG] dom4j:dom4j:jar:1.6.1 [DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.3 [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9- stable-1 [DEBUG] org.apache.maven:maven-project:jar:2.0.8 [DEBUG] org.apache.maven:maven-core:jar:2.0.8 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8 [DEBUG] jdom:jdom:jar:1.0 [DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-5 [DEBUG] net.sourceforge.jchardet:jchardet:jar:1.0 [DEBUG] velocity:velocity:jar:1.4 [DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0- beta-1:test [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6 [DEBUG] org.apache.maven.archetype:archetype-common:jar:2.0-alpha-2 [DEBUG] org.apache.maven.archetype:archetype-common:jar:2.0- alpha-2:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.8 for project: null:maven-core:jar:null from the repository. [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::6 for project: null:maven:pom:2.0.8 from the repository. [DEBUG] Adding managed dependencies for unknown:maven-core [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.8 [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.8 [DEBUG] org.apache.maven:maven-model:jar:2.0.8 [DEBUG] org.apache.maven:maven-project:jar:2.0.8 [DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.8 [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.8 [DEBUG] org.apache.maven:maven-artifact:jar:2.0.8 [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.8 [DEBUG] org.apache.maven:maven-artifact-test:jar:2.0.8 [DEBUG] org.apache.maven:maven-settings:jar:2.0.8 [DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8 [DEBUG] org.apache.maven:maven-profile:jar:2.0.8 [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.8 [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8 [DEBUG] org.apache.maven:maven-monitor:jar:2.0.8 [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9- stable-1 [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6 [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2 [DEBUG]
Re: escaping dollar sign in archetype templates
Sure Wendy, it's added under How To section now. -Z On Wed, Mar 5, 2008 at 9:16 AM, Wendy Smoak [EMAIL PROTECTED] wrote: On Tue, Mar 4, 2008 at 12:01 PM, Zemian Deng [EMAIL PROTECTED] wrote: This is the archetype's template pom.xml, not the owning project pom.xml, and hence that line will get processed and removed by the template engine. I stated in my original email that this is the file in question: src/main/resources/archetype-resources/pom.xml. I am not saying this is a good idea. It's just a undocumented workaround that I discovered. I much prefer the archetype plugin itself to provide a way to un-escape the dollar sign so it won't get substituted by engine. Or simply populate the parameter ${dollar} instead of making user to set it is a step to improvement. Thanks, it was the owning project's pom that I was concerned about. Can you add this to the Assembly Plugin's wiki page? http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
escaping dollar sign in archetype templates
Hello, This is for maven-archetype-plugin related. There is a Closed-Won't Fix jira issue that doesn't have clear direction on a work around. http://jira.codehaus.org/browse/ARCHETYPE-39 What's more strange is that the many proposed methods in that jira comments only work on certain types of files! For example if I have a src/main/resources/archetype-resources/ pom.xml, I can escape with \${artifactID} just fine, but if I have a resource file like src/main/resources/archetype-resources/src/main/webapp/welcome.jsp, the back slash WON'T work here! Velocity indeed escaped the dollar sign, but it also left the back slash in place which messed up the jsp as result. I have to use the #set($dollar = '$') method with this type of files as workaround. Since it's not going to be fixed, is there way I can globally declare #set($dollar = '$'), so I can use in many more jsp without adding it on every file? Thanks, Zemian Deng. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: escaping dollar sign in archetype templates
Never mind, Answered my own question. Setting velocity parameter in pom.xml will be visible as global to all other resources filter. Zemian Deng On Mar 4, 2008, at Tue Mar 4 - 11:07 AM, Zemian Deng wrote: Hello, This is for maven-archetype-plugin related. There is a Closed-Won't Fix jira issue that doesn't have clear direction on a work around. http://jira.codehaus.org/browse/ARCHETYPE-39 What's more strange is that the many proposed methods in that jira comments only work on certain types of files! For example if I have a src/main/resources/archetype-resources/ pom.xml, I can escape with \${artifactID} just fine, but if I have a resource file like src/main/resources/archetype-resources/src/main/webapp/welcome.jsp, the back slash WON'T work here! Velocity indeed escaped the dollar sign, but it also left the back slash in place which messed up the jsp as result. I have to use the #set($dollar = '$') method with this type of files as workaround. Since it's not going to be fixed, is there way I can globally declare #set($dollar = '$'), so I can use in many more jsp without adding it on every file? Thanks, Zemian Deng. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: escaping dollar sign in archetype templates
Added this on top of pom.xml #set($dollar = '$') On Mar 4, 2008, at Tue Mar 4 - 12:02 PM, Wendy Smoak wrote: On Tue, Mar 4, 2008 at 9:17 AM, Zemian Deng [EMAIL PROTECTED] wrote: Never mind, Answered my own question. Setting velocity parameter in pom.xml will be visible as global to all other resources filter. What did you need to put in pom.xml for this to work? Sounds like a good FAQ if it's not in there already. -- Wendy - 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: escaping dollar sign in archetype templates
This is the archetype's template pom.xml, not the owning project pom.xml, and hence that line will get processed and removed by the template engine. I stated in my original email that this is the file in question: src/main/resources/archetype-resources/pom.xml. I am not saying this is a good idea. It's just a undocumented workaround that I discovered. I much prefer the archetype plugin itself to provide a way to un-escape the dollar sign so it won't get substituted by engine. Or simply populate the parameter ${dollar} instead of making user to set it is a step to improvement. -Zemian On Mar 4, 2008, at Tue Mar 4 - 1:15 PM, Wendy Smoak wrote: On Tue, Mar 4, 2008 at 10:37 AM, Zemian Deng [EMAIL PROTECTED] wrote: Added this on top of pom.xml #set($dollar = '$') Doesn't that make it invalid xml? I'm not sure this is a good idea if anything other than Maven needs to consume the files. Specifically I wonder whether that line ends up in the pom deployed to the artifact repository when you release the project. -- Wendy - 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]
passing system properties to exec:java
Hello list, Is there way I can pass System Property on command line instead of pom xml to the programming run by exec:java plugin? Thanks, Zemian Deng.
Re: Antwort: create extra folder on my own achetype layout [Virus checked]
Got it, thanks woftgang! While I am on this topic, I have another question. How do I escape a $ {myown} variable in a resource file? In another word, I don't want archetype to interpret any of my custom variable other than just the $ {groupId} and ${artifactId}. Can anyone help? Thanks, Zemian Deng. On Feb 5, 2008, at Tue Feb 5 - 4:53 AM, [EMAIL PROTECTED] wrote: -Zemian Deng put an empty file in the directory: resourcesrc/main/my-special-conf/readme.txt/resource mit freundlichen Grüßen/best regards Wolfgang Schrecker Using a proven set of basic building blocks along with consistant language brings some sanity to the development effort from Eric Evans: Domain-Driven Design p. 188 -- -- Atos Worldline Processing GmbH Hahnstrasse 25 60528 Frankfurt/Main Germany Phone: +49 69/6657-1176 mailto:[EMAIL PROTECTED] http://www.atosworldline.com Geschäftsführer: Erik Munk Koefoed Aufsichtsratsvorsitzender: Didier Dhennin Sitz der Gesellschaft: Frankfurt/Main Handelsregister: Frankfurt/Main HRB 40 417 Zemian Deng [EMAIL PROTECTED] mail.com An Maven Users List 05.02.2008 05:30 users@maven.apache.org Kopie Bitte antworten Thema an create extra folder on my own Maven Users achetype layout [Virus checked] List [EMAIL PROTECTED] he.org Hello list, Does anyone know how can I create a folder named my-special-conf in a custom archetype besides pom.xml and src? I don't see a way to do this using archetype.xml descriptor. Thanks, -Zemian Deng PS: Besuchen Sie am 21.02.2008 das Achte Kartenforum von Atos Worldline und B+S Card Service. Infos und Anmeldung unter http://www.kartenforum.de -- Atos Worldline Processing GmbH Hahnstraße 25 60528 Frankfurt/Main Germany Phone: +49 69/6657-1176 Fax : mailto: [EMAIL PROTECTED] http://www.atosworldline.com Geschäftsführer: Erik Munk Koefoed Aufsichtsratsvorsitzender: Didier Dhennin Sitz der Gesellschaft: Frankfurt/Main Handelsregister: Frankfurt/Main HRB 40 417 * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * This e-mail is destined for the above mentioned recipient. In case you received this e-mail by accident, we would appreciate it if you could contact the sender and delete all copies stored on your computer. Please be aware that the security and confidentiality of electronic data transmitted by e-mail is not completely guaranteed and that data may be seen, copied, downloaded or changed by third persons during transmission. Atos Origin accepts no liability for the security and confidentiality of data and documents sent by e-mail. Please make sure that all important messages will be confirmed in writing by means of a telefax or a letter. * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
create extra folder on my own achetype layout
Hello list, Does anyone know how can I create a folder named my-special-conf in a custom archetype besides pom.xml and src? I don't see a way to do this using archetype.xml descriptor. Thanks, -Zemian Deng
Re: eclipse plugin snapshot setup
Thank you all for helping. All are useful! -Zemian On Jan 26, 2008, at Sat Jan 26 - 3:39 PM, Arnaud HERITIER wrote: What you are searching is : profile idsnapshots/id repositories repository releases enabledfalse/enabled /releases snapshots/ idapache.snapshots/id nameMaven Snapshots/name urlhttp://people.apache.org/maven-snapshot-repository/url /repository repository releases enabledfalse/enabled /releases snapshots/ idcodehaus.snapshots/id urlhttp://snapshots.repository.codehaus.org//url /repository /repositories pluginRepositories pluginRepository releases enabledfalse/enabled /releases snapshots/ idapache.plugin.snapshots/id nameMaven Plugin Snapshots/name urlhttp://people.apache.org/maven-snapshot-repository/url /pluginRepository pluginRepository releases enabledfalse/enabled /releases snapshots/ idcodehaus.plugin.snapshots/id nameCodeHaus Plugin Snapshots/name urlhttp://snapshots.repository.codehaus.org//url /pluginRepository /pluginRepositories /profile Arnaud On Jan 26, 2008 1:20 AM, Zemian Deng [EMAIL PROTECTED] wrote: Hello list, Is there a standard repository URL for maven's plugin snapshot? I am interested in using the maven-eclipse-plugin with version2.5- SNAPSHOT/version Thanks, Zemian Deng -- .. 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 ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
archiva-1.0-bin download failed
Hi, has anyone notice this very of Strandalone download is corrupted? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
eclipse plugin snapshot setup
Hello list, Is there a standard repository URL for maven's plugin snapshot? I am interested in using the maven-eclipse-plugin with version2.5- SNAPSHOT/version Thanks, Zemian Deng
How to remove an artifact
Hi, Is there way to remove an artifact from my internal repository that setup by Archiva?
how to use Find Artifact
Hi list, I have couple feedback after some usages of the application. The menu item Find Artifact seems very confusing. Is it allowing me to upload a artifact into an internal repo? why not label so upload artifact? Also, the notes on this form is very confusing too. For example: The entire file will *not* be uploaded to the server.??? Do you mean to say it will not be on server until it's completely finished upload like progress bar is reached to 100%? I like the rest of the application so far. Great job on those! -Zemian Deng
archiva failed with mysql setup
Hi list, I didn't see a separated list for archiva, so I post question here. I am installing archiva with default derby worked fine. Now I am trying to configure to use Mysql. When I run my Tomcat server, I get the following error: 2008-01-07 13:18:12,481 [main] INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:12,488 [main] INFO org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:13,365 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [ org.apache.maven.archiva.web.startup.ArchivaStartup,default] 2008-01-07 13:18:15,031 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/opt/apache-tomcat-5.5.17 /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache- 1.3.0.jar!/ehcache-failsafe.xml 2008-01-07 13:18:16,497 [main] WARN JPOX.General - SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS - Error thrown executing CREATE TABLE `SECURITY_OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without a key length com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column 'NAME' used in key specification without a key length at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) I assume that I have to specific somewhere that I am using Mysql dialect? Can't find where to configure this. Can someone help me here? Thanks. -Zemian
Re: archiva failed with mysql setup
@Mick I am using Mysql version 4.1.21-standard Here are archiva.xml Context path=/archiva docBase=${catalina.base}/wars/apache-archiva-1.0.war Resource name=jdbc/users auth=Container type=javax.sql.DataSource username=archiva password=archiva driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/archiva / Resource name=jdbc/archiva auth=Container type= javax.sql.DataSource username=archiva password=archiva driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/archiva / Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=popmail01.corporate.connextions.net/ /Context @Wayne Thanks! I will post there from now on after this question :) -Zemian On Jan 7, 2008 2:05 PM, Wayne Fay [EMAIL PROTECTED] wrote: As Wendy says... ;-) Archiva has separate mailing lists... please come join us there if you have questions: http://maven.apache.org/archiva/mail-lists.html Wayne On 1/7/08, Mick Knutson [EMAIL PROTECTED] wrote: What MySql Version? Can you post your archiva.xml? On Jan 7, 2008 10:57 AM, Zemian Deng [EMAIL PROTECTED] wrote: Hi list, I didn't see a separated list for archiva, so I post question here. I am installing archiva with default derby worked fine. Now I am trying to configure to use Mysql. When I run my Tomcat server, I get the following error: 2008-01-07 13:18:12,481 [main] INFO org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/archiva] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:12,488 [main] INFO org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/archiva] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:13,365 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [ org.apache.maven.archiva.web.startup.ArchivaStartup,default] 2008-01-07 13:18:15,031 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/opt/apache-tomcat-5.5.17 /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache- 1.3.0.jar!/ehcache-failsafe.xml 2008-01-07 13:18:16,497 [main] WARN JPOX.General - SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS - Error thrown executing CREATE TABLE `SECURITY_OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without a key length com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column 'NAME' used in key specification without a key length at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) I assume that I have to specific somewhere that I am using Mysql dialect? Can't find where to configure this. Can someone help me here? Thanks. -Zemian -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: archiva failed with mysql setup
Mick, My exact error are gone now after I restart Tomcat again. It's weird. But anyways, to your replied, I think the following works actually: 1.) default mysql jdbc url is to 3306. The exception did not complain connection problem, but an SQLException when creating table. 2.) the two databases are assuming user table are in different location(which is a good feature). But if I wanted them all in the same db, it should create wihtou problem as it has different table names than the rest of the application. So pointing two db settings back into one db should works. Thanks for quick response. -Zemian On Jan 7, 2008 3:17 PM, Mick Knutson [EMAIL PROTECTED] wrote: You did not specify the port :3306 in your jdbc URL And you need 2 DB's. 1 for archiva, and 1 for users. On Jan 7, 2008 11:34 AM, Zemian Deng [EMAIL PROTECTED] wrote: @Mick I am using Mysql version 4.1.21-standard Here are archiva.xml Context path=/archiva docBase=${catalina.base}/wars/apache-archiva-1.0.war Resource name=jdbc/users auth=Container type= javax.sql.DataSource username=archiva password=archiva driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/archiva / Resource name=jdbc/archiva auth=Container type= javax.sql.DataSource username=archiva password=archiva driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost/archiva / Resource name=mail/Session auth=Container type=javax.mail.Session mail.smtp.host=popmail01.corporate.connextions.net/ /Context @Wayne Thanks! I will post there from now on after this question :) -Zemian On Jan 7, 2008 2:05 PM, Wayne Fay [EMAIL PROTECTED] wrote: As Wendy says... ;-) Archiva has separate mailing lists... please come join us there if you have questions: http://maven.apache.org/archiva/mail-lists.html Wayne On 1/7/08, Mick Knutson [EMAIL PROTECTED] wrote: What MySql Version? Can you post your archiva.xml? On Jan 7, 2008 10:57 AM, Zemian Deng [EMAIL PROTECTED] wrote: Hi list, I didn't see a separated list for archiva, so I post question here. I am installing archiva with default derby worked fine. Now I am trying to configure to use Mysql. When I run my Tomcat server, I get the following error: 2008-01-07 13:18:12,481 [main] INFO org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/archiva] - Loading plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:12,488 [main] INFO org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/archiva] - Could not load plexus context properties from: '/WEB-INF/plexus.properties' 2008-01-07 13:18:13,365 [main] INFO org.codehaus.plexus.PlexusContainer - Loading on start [role,roleHint]: [ org.apache.maven.archiva.web.startup.ArchivaStartup,default] 2008-01-07 13:18:15,031 [main] WARN net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/opt/apache-tomcat-5.5.17 /instances/buildman/webapps/archiva/WEB-INF/lib/ehcache- 1.3.0.jar!/ehcache-failsafe.xml 2008-01-07 13:18:16,497 [main] WARN JPOX.General - SQL warning: java.sql.SQLWarning: 'TYPE=storage_engine' is deprecated; use 'ENGINE=storage_engine' instead 2008-01-07 13:18:17,387 [main] ERROR JPOX.RDBMS - Error thrown executing CREATE TABLE `SECURITY_OPERATIONS` ( `NAME` VARCHAR(256) BINARY NOT NULL, `DESCRIPTION` VARCHAR(256) BINARY NULL, `PERMANENT` BIT NOT NULL, `RESOURCE_REQUIRED` BIT NOT NULL, PRIMARY KEY (`NAME`) ) TYPE=INNODB : BLOB/TEXT column 'NAME' used in key specification without a key length com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: BLOB/TEXT column 'NAME' used in key specification without a key length at com.mysql.jdbc.SQLError.createSQLException(SQLError.java :936) I assume that I have to specific somewhere that I am using Mysql dialect? Can't find where to configure this. Can someone help me here? Thanks. -Zemian -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http://www.djmick.com http://www.myspace.com/mickknutson http://www.myspace.com/BLiNCMagazine http://tahoe.baselogic.com --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Mick Knutson http://www.baselogic.com http://www.blincmagazine.com http
Getting started with Maven Tutorial
Hi there, Maven2 works really great as a project build tool for us. I have written a tutorial at my company for all Maven newbies, and I hope it can benefit other who is struggling on how to get started. The tutorial is very short, and it walks through a real simple java project from creating it from scratch to all the way on deploying and releasing it. It also has a small webapp application walk through as well. The tutorial is on Maven wiki: http://docs.codehaus.org/display/MAVENUSER/Getting+started+with+Maven2+-+complete+projects+walk+through Enjoys, -Zemian Deng