Re: Overriding Central Repository
I notice that it creates the directory tree and maven-metadata-central.xml files of the plugin. But with no jar!! How can it be ? CCadete -- View this message in context: http://www.nabble.com/Overriding-Central-Repository-tf2540428s177.html#a7077933 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Overriding Central Repository
Hi, I override my maven central repository, using this, central central My Maven repository http://my.maven.repo.com but now, although it download packages, maven can't found the plugins !! First, I clean up the repository, to force the download of the jar's. Then I make, for example: mvn archetype:create -DgroupId=pt.matrix -DartifactId=matrix And [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not ex st or no valid version could be found [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Mon Oct 30 16:23:43 GMT 2006 [INFO] Final Memory: 1M/2M [INFO] It download some packages, but the archetype plugin does not, why ? CCadete The plugins are there of course... -- View this message in context: http://www.nabble.com/Overriding-Central-Repository-tf2540428s177.html#a7077660 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Archetype File Name Genration
When I create an archetype I put in the directory pre-determined java classes, like App.java generated by simple maven archetype. But, if I want that App.java will be named MyArtifact.java, the name of the java source generated will depend on the artifact name. How can customize archetype to create a java source with the same name of the artifact ? ccadete -- View this message in context: http://www.nabble.com/-M2--Archetype-File-Name-Genration-tf2207247.html#a6113174 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Archetype Resource Empty Directory!
I am using the archetype.xml App src/main/java/App.java src/main/webapp/WEB-INF/web.xml src/main/webapp/index.jsp to create an archetype. When I use it to create a new project, I see the resources specified and a new empty directory "resource" src/ java/ webApp/ index.jsp META-INF/ web.xml resource/ <-- Empty If I don't specified it, in my archetype.xml why it is add to the new project ? -- View this message in context: http://www.nabble.com/-M2--Archetype-Resource-Empty-Directory%21-tf2199631.html#a6089499 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Creating archetype default directoy
I create an artifact with the following archetype.xml: simple src/main/java/App.java And now and I using it to create a new project, mvn archetype:create -DarchetypeGroupId=myarchetype -DarchetypeArtifactId=myarchetype -DarchetypeVersion=1.0 -DgroupId=my.cc -DartifactId=cc And see that the directory "src/main/java/App.java" change to "src/main/java/my/cc/App.java" in the final project directory. The new directory struture, now have the groupId before App.java!! I want to know if this is right behavior: to put all my default package struture after the project groupId ? -- View this message in context: http://www.nabble.com/-M2--Creating-archetype-default-directoy-tf2193554.html#a6070532 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Creating archetypes
Yes, it was that, now it is working :) thanks. ccadete -- View this message in context: http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6070383 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [M2] Creating archetypes
I am using: groupId:myarchetype artifactId:myarchetype First, I install the project in the repository,and I see it in the directory m2/repository/myarchetype that is the groupId directory and it is ok. Now I try to create a new project using my archetype: mvn archetype:create -DartifactGroupId=myarchetype -DarchetypeArtifactId=myarchetype -DarchetypeVersion=1.0 -DgroupId=my.cc -DartifactId=cc and it gives me: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Error creating from archetype Embedded error: Archetype does not exist: Unable to download the artifact from a ny repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId= myarchetype \ -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file org.apache.maven.archetypes:myarchetype:jar:1.0 And we can see that the groupId is "org.apache.maven.archetypes", so it is getting the default groupId for archetypes. -- View this message in context: http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6070269 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Creating archetypes
I installed a new my archetype, created by me, in a repository, with the groupId=My-Archetype, but when I choose to use it, using the -DarchetypeGroupID=My-Archetype in the command line, maven will try to download it from org.apache.maven.archetypes ( that is the default archetypes location ), so it will not find it. Maven try to download archetypes using the default "org.apache.maven.archetypes", and the option -DarchetypeGroupID does not override the default archetypes location. Is this a bug ? -- View this message in context: http://www.nabble.com/-M2--Creating-archetypes-tf2193156.html#a6069348 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Help:Describe Error
When I execute the following command: mvn help:describe -DgroupId=org.apache.maven.archetypes -DartifactId=maven-archetype-webapp The response is an error message, with a null pointer exception. I known that this artifact is not a plugin, is an archetype. I guess, is that maven is not cheking if the artifact that I request is really a plugin that I can describe. -- View this message in context: http://www.nabble.com/-M2--Help%3ADescribe-Error-tf2173974.html#a6011356 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Maven Assembly Error
When I run maven-assembly-plugin version 2.1 it gives the following error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu gins:maven-assembly-plugin:2.1:assembly': Unable to find the mojo 'org.apache.ma ven.plugins:maven-assembly-plugin:2.1:assembly' in the plugin 'org.apache.maven. plugins:maven-assembly-plugin' org/codehaus/plexus/archiver/ArchiverException I run it like mvn assembly:assembly I am using in my pom: org.apache.maven.plugins maven-assembly-plugin src/main/assembly/release.xml and the assembly file: src tar.gz tar.bz2 zip README* LICENSE* NOTICE* pom.xml src ccadete -- View this message in context: http://www.nabble.com/-M2--Maven-Assembly-Error-tf2172791.html#a6007683 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] Maven Assembly Error
-- View this message in context: http://www.nabble.com/-M2--Maven-Assembly-Error-tf2172774.html#a6007640 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] maven-javadoc-plugin - Stylesheetfile Bug
The use of the property "stylesheetfile" in the plugin maven-javadoc-plugin and it is not function properly. I use the configuration in my pom: org.apache.maven.plugins maven-javadoc-plugin target/javadoc javadocsStyle.css and it does override the default javadoc stylesheet with my own. ccadete -- View this message in context: http://www.nabble.com/-M2--maven-javadoc-plugin---Stylesheetfile-Bug-tf2172542.html#a6007001 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Profile Activation Feature
If I want to activate a profile using specified jdk version, I use. for example: JDK-1.5 1.5 but how can it be activated for 1.5, or better. This is provided by the version tag in another context, I thing it would be better if we can specified the version tag, like this, for example: [1.5,) or [1.5,) ccadete -- View this message in context: http://www.nabble.com/Profile-Activation-Feature-tf2133948.html#a5889297 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]