[ 
http://issues.ops4j.org/browse/PAXCONSTRUCT-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11919#action_11919
 ] 

Stuart McCulloch commented on PAXCONSTRUCT-101:
-----------------------------------------------

Did you just create a new project (ie. pax-create-project) without adding any 
bundles? (ie. no pax-create-bundle / pax-wrap-jar / pax-import-bundle ?)

If so then I wouldn't expect it to create any eclipse files because there are 
only POMs in the project tree, and by default the maven-eclipse-plugin (whose 
mojo we use and extend in the maven-pax-plugin) doesn't create eclipse files 
for POMs. This is because most versions of Eclipse don't handle hierarchical 
projects very well (if at all).

Once you've started adding bundles running "mvn pax:eclipse" will generate 
project files (one per-bundle) which you can then import by selecting the 
top-most directory. Each bundle project will then show up as an individual 
project in the workspace.

If you still seeing a problem after adding bundles, please attach a testcase 
along with any relevant OS / Java / Maven details.

> No eclipse .project/.classpath is created when the command mvn pax:eclipse is 
> executed
> --------------------------------------------------------------------------------------
>
>                 Key: PAXCONSTRUCT-101
>                 URL: http://issues.ops4j.org/browse/PAXCONSTRUCT-101
>             Project: Pax Construct
>          Issue Type: Bug
>            Reporter: Charles Moulliard
>            Assignee: Stuart McCulloch
>
> Hi,
> No eclipse .project/.classpath are created when the following command is 
> executed. By the way, PAX claim that the build is successul !!
> Remark : I have downloaded from svn the last snapshot and build it.
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi>mvn 
> pax:eclipse mvn clean install pax:eclipse -DdownloadSources
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   org.apache.camel.example.reportincident.service.osgi (OSGi project)
> [INFO]   reportincident.service.osgi - plugin configuration
> [INFO]   reportincident.service.osgi - wrapper instructions
> [INFO]   reportincident.service.osgi - bundle instructions
> [INFO]   reportincident.service.osgi - imported bundles
> [INFO] Searching repository for plugin with prefix: 'pax'.
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Invalid task 'mvn': you must specify a valid lifecycle phase, or a 
> goal in the format plugin:goal or pluginGroupI
> d:pluginArtifactId:pluginVersion:goal
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Tue Feb 10 16:32:52 CET 2009
> [INFO] Final Memory: 3M/5M
> [INFO] 
> ------------------------------------------------------------------------
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi>mvn clean 
> install pax:eclipse -DdownloadSources
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   org.apache.camel.example.reportincident.service.osgi (OSGi project)
> [INFO]   reportincident.service.osgi - plugin configuration
> [INFO]   reportincident.service.osgi - wrapper instructions
> [INFO]   reportincident.service.osgi - bundle instructions
> [INFO]   reportincident.service.osgi - imported bundles
> [INFO] Searching repository for plugin with prefix: 'pax'.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building org.apache.camel.example.reportincident.service.osgi (OSGi 
> project)
> [INFO]    task-segment: [clean, install, pax:eclipse]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing 
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi\pom.xml to 
> c:\.m2\repository\org\apa
> che\camel\example\reportincident.service.osgi\1.0-SNAPSHOT\reportincident.service.osgi-1.0-SNAPSHOT.pom
> [INFO] [pax:eclipse]
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using as WTP server : null
> [INFO] Adding default classpath contaigner: 
> org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building reportincident.service.osgi - plugin configuration
> [INFO]    task-segment: [clean, install, pax:eclipse]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing 
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi\poms\pom.xml
>  to c:\.m2\repository\or
> g\apache\camel\example\reportincident\service\osgi\build\shared-plugin-settings\1.0-SNAPSHOT\shared-plugin-settings-1.0-
> SNAPSHOT.pom
> [INFO] [pax:eclipse]
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using as WTP server : null
> [INFO] Adding default classpath contaigner: 
> org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building reportincident.service.osgi - wrapper instructions
> [INFO]    task-segment: [clean, install, pax:eclipse]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing 
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi\poms\wrappers\pom.xml
>  to c:\.m2\repo
> sitory\org\apache\camel\example\reportincident\service\osgi\build\wrapper-bundle-settings\1.0-SNAPSHOT\wrapper-bundle-se
> ttings-1.0-SNAPSHOT.pom
> [INFO] [pax:eclipse]
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using as WTP server : null
> [INFO] Adding default classpath contaigner: 
> org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building reportincident.service.osgi - bundle instructions
> [INFO]    task-segment: [clean, install, pax:eclipse]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing 
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi\poms\compiled\pom.xml
>  to c:\.m2\repo
> sitory\org\apache\camel\example\reportincident\service\osgi\build\compiled-bundle-settings\1.0-SNAPSHOT\compiled-bundle-
> settings-1.0-SNAPSHOT.pom
> [INFO] [pax:eclipse]
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using as WTP server : null
> [INFO] Adding default classpath contaigner: 
> org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building reportincident.service.osgi - imported bundles
> [INFO]    task-segment: [clean, install, pax:eclipse]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] [site:attach-descriptor]
> [INFO] [install:install]
> [INFO] Installing 
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi\provision\pom.xml
>  to c:\.m2\reposito
> ry\org\apache\camel\example\reportincident\service\osgi\build\provision\1.0-SNAPSHOT\provision-1.0-SNAPSHOT.pom
> [INFO] [pax:eclipse]
> [INFO] Not running eclipse plugin goal for pom project
> [INFO] Using as WTP server : null
> [INFO] Adding default classpath contaigner: 
> org.eclipse.jdt.launching.JRE_CONTAINER
> [INFO]
> [INFO]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] org.apache.camel.example.reportincident.service.osgi (OSGi project)  
> SUCCESS [10.937s]
> [INFO] reportincident.service.osgi - plugin configuration .... SUCCESS 
> [0.079s]
> [INFO] reportincident.service.osgi - wrapper instructions .... SUCCESS 
> [0.203s]
> [INFO] reportincident.service.osgi - bundle instructions ..... SUCCESS 
> [0.047s]
> [INFO] reportincident.service.osgi - imported bundles ........ SUCCESS 
> [0.046s]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 12 seconds
> [INFO] Finished at: Tue Feb 10 16:33:12 CET 2009
> [INFO] Final Memory: 15M/28M
> [INFO] 
> ------------------------------------------------------------------------
> D:\Dvlpt\Java\workspace-ganymede\osgi\reportincident.service.osgi>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to