OSGI example fails when maven-bundle-plugin deploys it -


i'm working through example in book "osgi , apache felix 3.0". during maven deploy phase fails message:

[error] failed execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project bookshelf-inventory-api:  execution default-deploy of goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy failed:  plugin org.apache.maven.plugins:maven-deploy-plugin:2.7 or 1 of dependencies not resolved:  repository system offline artifact org.codehaus.plexus:plexus-utils:jar:1.5.6 not available in local repository. 

what telling me , there work-around?

here pom.xml:

<groupid>osgi.example</groupid>   <artifactid>bookshelf-inventory-api</artifactid>   <version>1.0.0</version>    <packaging>bundle</packaging>    <dependencies>     <dependency>       <groupid>org.apache.felix</groupid>       <artifactid>maven-bundle-plugin</artifactid>       <version>2.4.0</version>     </dependency>   </dependencies>    <build>     <plugins>       <plugin>         <artifactid>maven-compiler-plugin</artifactid>         <inherited>true</inherited>         <configuration>           <source>1.7</source>           <target>1.7</target>         </configuration>       </plugin>       <plugin>         <groupid>org.apache.felix</groupid>         <artifactid>maven-bundle-plugin</artifactid>         <version>2.4.0</version>         <extensions>true</extensions>         <configuration>           <instructions>             <bundle-category>inventory</bundle-category>             <bundle-symbolicname>${artifactid}</bundle-symbolicname>             <export-package>osgi.example.bookshelf.inventory.api</export-package>           </instructions>           <remoteobr>repo-rel</remoteobr>           <prefixurl>file:///c:/home/src/demo/osgi/felix-3-book/releases</prefixurl>           <ignorelock>true</ignorelock>           <!--           <instructions>             <private-package>org.foo.myproject.*</private-package>             <bundle-activator>org.foo.myproject.impl1.activator</bundle-activator>           </instructions>           -->         </configuration>       </plugin>     </plugins>   </build>   <distributionmanagement>     <!-- releases repo -->     <repository>       <id>repo-rel</id>       <url>file:///c:/home/src/demo/osgi/felix-3-book/releases</url>     </repository>   </distributionmanagement>    <properties>     <project.build.sourceencoding>utf-8</project.build.sourceencoding>   </properties> 

the message saying trying build in offline mode (-o) , there dependency couldn't found: org.codehaus.plexus:plexus-utils:jar:1.5.6

if not case , online getting message, try remove ~/.m2/org/codehaus/plexus , try again. maybe file downloaded errors.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -