Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] install goals not working on Mac OS X

right, this is not specific to mac os x, but to maven 3.1.0
Try re running the build with maven 3.0.4, you won't reproduce the issue.
It appears that this section :

                    <plugin>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>build-helper-maven-plugin</artifactId>
                                <version>1.3</version>
                                <executions>
                                        <execution>
                                                <id>attach-artifacts</id>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>attach-artifact</goal>
                                                </goals>
                                                <configuration>
                                                        <artifacts>
                                                                <artifact>
                                                                        <file>kepler.target</file>
                                                                        <type>target</type>
                                                                        <classifier>kepler</classifier>
                                                                </artifact>
                                                                <artifact>
                                                                        <file>juno.target</file>
                                                                        <type>target</type>
                                                                        <classifier>juno</classifier>
                                                                </artifact>
                                                                <artifact>
                                                                        <file>indigo.target</file>
                                                                        <type>target</type>
                                                                        <classifier>indigo</classifier>
                                                                </artifact>
                                                        </artifacts>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>

makes the install plugin want to install all the targets in the local repo :

[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ me.gladwell.eclipse.m2e.android ---
[INFO] Installing /Users/anthony/workspaces/m2e-android/me.gladwell.eclipse.m2e.android/target/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT.jar to /Users/anthony/.m2/repository/me/gladwell/eclipse/m2e/android/me.gladwell.eclipse.m2e.android/1.0.0-SNAPSHOT/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT.jar
[INFO] Installing /Users/anthony/workspaces/m2e-android/me.gladwell.eclipse.m2e.android/pom.xml to /Users/anthony/.m2/repository/me/gladwell/eclipse/m2e/android/me.gladwell.eclipse.m2e.android/1.0.0-SNAPSHOT/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT.pom
[INFO] Installing /Users/anthony/workspaces/m2e-android/me.gladwell.eclipse.m2e.android/target/p2content.xml to /Users/anthony/.m2/repository/me/gladwell/eclipse/m2e/android/me.gladwell.eclipse.m2e.android/1.0.0-SNAPSHOT/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT-p2metadata.xml
[INFO] Installing /Users/anthony/workspaces/m2e-android/me.gladwell.eclipse.m2e.android/target/p2artifacts.xml to /Users/anthony/.m2/repository/me/gladwell/eclipse/m2e/android/me.gladwell.eclipse.m2e.android/1.0.0-SNAPSHOT/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT-p2artifacts.xml
[INFO] Installing /Users/anthony/workspaces/m2e-android/me.gladwell.eclipse.m2e.android/kepler.target to /Users/anthony/.m2/repository/me/gladwell/eclipse/m2e/android/me.gladwell.eclipse.m2e.android/1.0.0-SNAPSHOT/me.gladwell.eclipse.m2e.android-1.0.0-SNAPSHOT-kepler.target

Maven 3.0.4 is ok with the files not being there (the target files are only in the root of the project, not anywhere else) : it happily ignores the copy issue; but maven 3.1.0 does not tolerate this anymore, hence the :

[ERROR] Failed to execute goal org.apache.maven.plugins:maven
-install-plugin:2.3.1:install (default-install) on project me.gladwell.eclipse.m2e.android: Failed to install artifact me.gladwell.eclipse.m2e.android:me.gladwell.eclipse.m2e.android:target:kepler:1.0.0-SNAPSHOT: /Users/ricardogladwell/Projects/m2e-android/me.gladwell.eclipse.m2e.android/kepler.target (No such file or directory) -> [Help 1]

A better approach is to define target platforms in their own modules, just like : http://git.eclipse.org/c/tycho/org.eclipse.tycho-demo.git/tree/itp04-rcp/helios

Anthony




On Wed, Sep 25, 2013 at 10:49 AM, Thanh Ha <thanh.ha@xxxxxxxxxxx> wrote:
Are you sure it worked on Linux?

Looks like maybe a path issue to me from your error it's failing to find this file:
    /m2e-android/me.gladwell.eclipse.m2e.android/kepler.target

But when I look at your repo [1] the file exists in the root directory of the repo:
    /m2e-android/kepler.target

Hope this helps,


Thanh

[1] https://github.com/rgladwell/m2e-android


On 25/09/13 10:05 AM, Ricardo Gladwell wrote:
i Guys

I'm experiencing an odd problem where my Tycho project builds fine on the command line  on my Linux machine but fails with errors on Mac OS X:

$ mvn clean install
[INFO] Scanning for projects...
[INFO] Computing target platform for MavenProject: me.gladwell.eclipse.m2e.android:me.gladwell.eclipse.m2e.android:1.0.0-SNAPSHOT @ /Users/ricardogladwell/Projects/m2e-android/me.gladwell.eclipse.m2e.android/pom.xml


[INFO] Android Configurator for M2E ...................... SUCCESS [0.285s]
[INFO] Android Configurator for M2E Plug-in .............. FAILURE [2.465s]
[INFO] Android Configurator for M2E Feature .............. SKIPPED
[INFO] Android Configurator for M2E Test Suite ........... SKIPPED
[INFO] Android Configurator for M2E Repository ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.280s
[INFO] Finished at: Tue Sep 24 21:54:58 BST 2013
[INFO] Final Memory: 47M/101M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) on project me.gladwell.eclipse.m2e.android: Failed to install artifact me.gladwell.eclipse.m2e.android:me.gladwell.eclipse.m2e.android:target:kepler:1.0.0-SNAPSHOT: /Users/ricardogladwell/Projects/m2e-android/me.gladwell.eclipse.m2e.android/kepler.target (No such file or directory) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :me.gladwell.eclipse.m2e.android

Is this a bug? Am I doing something wrong?

Regards...

-- @rgladwell


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top