Had to manually install artifact which was already in the repository
Hi guys, I had a strange problem yesterday, Maven was complaining about an artifact/dependency in the repository did not exist: C:\src\mule-2.0-M1\examples>mvn eclipse:eclipse -Dmaven.test.skip=true -Denforcer.skip=true -o -e + Error stacktraces are turned on. ... [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: System is offline. Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin \ -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-pl ugin \ -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT I found that the JAR file was actually already in the repository, so I copied it to a location and installed it manually: D:\repository\maven2-downloaded-jars>mvn install:install-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin -Dversion=0.9.0-mule-SNAPSHOT -Dpackag ing=maven-plugin -Dfile=maven-bundle-plugin-0.9.0-mule-SNAPSHOT.jar And that fixed my problem. So my question is, why did Maven behave in such a way? Cheers. -- Regards, Yuen-Chi Lian "I do not seek. I find." - Pablo Picasso - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Had to manually install artifact which was already in the repository
Are you certain the jar you saw in the repo when you first checked was the same jar file not being found by Maven? (e.g. same path groupId/artifactId/version and same filename)? :) -Deng Yuen-Chi Lian wrote: Hi guys, I had a strange problem yesterday, Maven was complaining about an artifact/dependency in the repository did not exist: C:\src\mule-2.0-M1\examples>mvn eclipse:eclipse -Dmaven.test.skip=true -Denforcer.skip=true -o -e + Error stacktraces are turned on. ... [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: System is offline. Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin \ -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-pl ugin \ -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file \ -Durl=[url] -DrepositoryId=[id] org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT I found that the JAR file was actually already in the repository, so I copied it to a location and installed it manually: D:\repository\maven2-downloaded-jars>mvn install:install-file -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin -Dversion=0.9.0-mule-SNAPSHOT -Dpackag ing=maven-plugin -Dfile=maven-bundle-plugin-0.9.0-mule-SNAPSHOT.jar And that fixed my problem. So my question is, why did Maven behave in such a way? Cheers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Had to manually install artifact which was already in the repository
Hi Deng, Yea, I copied the "missing" JAR from my repo to a directory then install it manually, for my case, it was 'D:\repository\maven2-downloaded-jars'. I then noticed that the modified date of the origin is changed after executing the installation manually. In another way: foo/A copied to bar/B bar/B replaced foo/A via mvn install:install-file Cheers. On 8/15/07, Maria Odea Ching <[EMAIL PROTECTED]> wrote: > > Are you certain the jar you saw in the repo when you first checked was > the same jar file not being found by Maven? (e.g. same path > groupId/artifactId/version and same filename)? :) > > -Deng > > Yuen-Chi Lian wrote: > > Hi guys, > > > > I had a strange problem yesterday, Maven was complaining about an > > artifact/dependency in the repository did not exist: > > > > C:\src\mule-2.0-M1\examples>mvn eclipse:eclipse -Dmaven.test.skip=true > > -Denforcer.skip=true -o -e > > + Error stacktraces are turned on. > > ... > > [INFO] A required plugin was not found: Plugin could not be found - > > check that the goal name is correct: System is offline. > > > > Try downloading the file manually from the project website. > > > > Then, install it using the command: > > mvn install:install-file -DgroupId=org.apache.felix > > -DartifactId=maven-bundle-plugin \ > > -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin > > -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > > there: mvn deploy:deploy-file -DgroupId=org.apache.felix > > -DartifactId=maven-bundle-pl > > ugin \ > > -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin > > -Dfile=/path/to/file \ > > -Durl=[url] -DrepositoryId=[id] > > > > > > org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT > > > > > > org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT > > > > > > I found that the JAR file was actually already in the repository, so I > > copied it to a location and installed it manually: > > > > D:\repository\maven2-downloaded-jars>mvn install:install-file > > -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin > > -Dversion=0.9.0-mule-SNAPSHOT -Dpackag > > ing=maven-plugin -Dfile=maven-bundle-plugin-0.9.0-mule-SNAPSHOT.jar > > > > And that fixed my problem. So my question is, why did Maven behave in > > such a way? > > > > Cheers. > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Yuen-Chi Lian "I do not seek; I find." - Pablo Picasso