Re: [m2.2.1] BUILD ERROR -- (attached a test case)

2009-10-10 Thread Adrian Herscu

PING!

Adrian Herscu wrote:

Test case attached in root.7z

Adrian.

Adrian Herscu wrote:

Hi all,

I have the following multi-project structure:

root
+my-maven-plugin
+my-component

My component requires my Maven plugin in order to build. Hence it 
declares:

  build
...
plugins
  plugin
groupIdorg.foo/groupId
artifactIdmy-maven-plugin/artifactId
version1.0-beta-1-SNAPSHOT/version
extensionstrue/extensions
  /plugin
...

After deleting the org/foo hive in my local repository I ran mvn -o 
validate on the root and got:

[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in 
your local repository will be inaccessible.


[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   root
[INFO]   my-maven-plugin
[INFO]   my-component
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] 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.foo -DartifactId
=my-maven-plugin -Dversion=1.0-beta-1-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.foo 
-DartifactId=my-maven-plugin -Dversion=1.0-beta-1-SNAPSHOT 
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] 
-DrepositoryId=[id]



  org.foo:my-maven-plugin:maven-plugin:1.0-beta-1-SNAPSHOT
  org.foo:my-maven-plugin:maven-plugin:1.0-beta-1-SNAPSHOT



[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 



Shouldn't it build my-maven-plugin before?!
Adrian.






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [m2.2.1] BUILD ERROR -- (attached a test case)

2009-10-02 Thread Adrian Herscu

Test case attached in root.7z

Adrian.

Adrian Herscu wrote:

Hi all,

I have the following multi-project structure:

root
+my-maven-plugin
+my-component

My component requires my Maven plugin in order to build. Hence it declares:
  build
...
plugins
  plugin
groupIdorg.foo/groupId
artifactIdmy-maven-plugin/artifactId
version1.0-beta-1-SNAPSHOT/version
extensionstrue/extensions
  /plugin
...

After deleting the org/foo hive in my local repository I ran mvn -o 
validate on the root and got:

[INFO]
NOTE: Maven is executing in offline mode. Any artifacts not already in 
your local repository will be inaccessible.


[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   root
[INFO]   my-maven-plugin
[INFO]   my-component
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] 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.foo -DartifactId
=my-maven-plugin -Dversion=1.0-beta-1-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.foo 
-DartifactId=my-maven-plugin -Dversion=1.0-beta-1-SNAPSHOT 
-Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] 
-DrepositoryId=[id]



  org.foo:my-maven-plugin:maven-plugin:1.0-beta-1-SNAPSHOT
  org.foo:my-maven-plugin:maven-plugin:1.0-beta-1-SNAPSHOT



[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 



Shouldn't it build my-maven-plugin before?!
Adrian.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org