You asked before and didn't get an answer. And I doubt you'll get the
answer you're looking for this time either.

I've never seen this issue reported, and you haven't provided enough
information to really help you much. Here's some things to try/look
at:
1. Try mvn -X deploy... and see what kind of messages you get.
2. Check the pom files deployed (click over to them in a web browser
or something) and see if any strange <repositories/> or
<pluginRepositories/> are inserted.
3. Try mvn help:effective-pom from your project (that is using jmeter
as a plugin) and check the <repos/> and <pluginRepos/>.
4. Check your project's pom.xml, the poms of any parents and children,
and any settings.xml or profiles.xml files that Maven might find for
errant <repos/> and <pluginRepos/>.

I'd generally assume you've got something misconfigured on your
machine, as I've never seen this issue reported by anyone else and
I've never run into this myself.

Wayne

On 4/30/07, mateamargo <[EMAIL PROTECTED]> wrote:

This is what I did:

1) Downloaded Jmeter-2.2.jar and the POM file.
2) Deployed to a remote repository.
3) Downloaded the maven-jmeter-plugin and deployed in the same remote
repository.
4) In the project that I need it, I have added the dependency and the build
section in my POM (just as the wiki said).
5) When I run mvn -U clean install I got an error saying that the artifact
cannot be resolved.

The thing is that the URL where it should be the plugin is wrong. Look:
The right URL should be:
http://server/projects/maven/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter.plugin.jar
But, the actual URL is:
http://server/var/www/projects/maven/org/apache/jmeter/maven-jmeter-plugin/1.0-SNAPSHOT/maven-jmeter.plugin.jar

It adds a /var/www which refers to the physical place:
/var/www/project/maven/ ... etc

The weird is that the jmeter-2.2.jar file downloads correctly, and both have
been deployed with almost the same parameters:


Jmeter:
-------
mvn deploy:deploy-file -DgroupId=org.apache.jmeter -DartifactId=jmeter
-Dversion=2.2 -Dpackaging=jar -Dfile=jmeter-2.2.jar
-DrepositoryId=internal.repo -DpomFile=jmeter-2.2.pom
-Durl=file:///var/www/projects/maven


The plugin:
-----------
mvn deploy:deploy-file -DgroupId=org.apache.jmeter
-DartifactId=maven-jmeter-plugin -Dversion=1.0-SNAPSHOT
-Dpackaging=maven-plugin -Dfile=maven-jmeter-plugin-1.0-SNAPSHOT.jar
-DrepositoryId=internal.repo -DpomFile=pom.xml
-Durl=file:///var/www/projects/maven



Is this some kind of known issue?

Thanks in advice.
--
View this message in context: 
http://www.nabble.com/Wrong-URL-after-deploying-a-plugin-in-a-remote-repository-tf3670023s177.html#a10254625
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]

Reply via email to