Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Possible regression in Tycho 0.15.0 when building eclipse-junit-tests

${project.artifactId}-${project.version} is just the default name
template. You can change it to something else if you want to via pom.xml
configuration like

   <build>
      <finalName>${project.artifactId}</finalName>
   </build>

--
Regards,
Igor

On 12-07-06 3:02 PM, Thanh Ha wrote:
Hi Everyone,

I think I found a solution to this although I'm not entirely sure it's
the correct one so I hope someone can review. Below is a diff of what I
did to successfully build the junit tests on my machine.

It seems the issue is that there is a new feature in Tycho 0.15.0 which
caused this issue [1].

"The repository archive name generated by packaging type
eclipse-repository is now configurable via standard maven
property${project.build.finalName}
Note that the default archive name changed
from${project.artifactId}.zipto${project.artifactId}-${project.version}.zipto
be more compliant with maven conventions"

So I guess in Tycho 0.15.0 it is no longer producing
${project.artifactId}.zip (eclipse-junit-tests.zip) but instead is
producting ${project.artifactId}-{$project.version}.zip
(eclipse-junit-tests.zip-1.0.0-SNAPSHOT) instead. Changing the
assembly.xml to take this change into account seems to have worked. I
also modified it to use variables instead of the hardcoded text
"eclipse-junit-tests".

If this change is correct maybe we should change the destName to also
use variables too.

Thanks,

Thanh

[1] http://wiki.eclipse.org/Tycho/Release_Notes/0.15


diff --git a/TMP/eclipse-junit-tests/src/main/assembly/assembly.xml
b/TMP/eclipse-junit-tests/src/main/assembly/assembly.xml
index 86d59c1..4edc4aa 100644
--- a/TMP/eclipse-junit-tests/src/main/assembly/assembly.xml
+++ b/TMP/eclipse-junit-tests/src/main/assembly/assembly.xml
@@ -16,7 +16,7 @@
    </fileSets>
    <files>
      <file>
- <source>${project.build.directory}/eclipse-junit-tests.zip</source>
+
<source>${project.build.directory}/${project.artifactId}-${project.version}.zip</source>
        <outputDirectory>/</outputDirectory>
<destName>eclipse-junit-tests-${buildQualifier}.zip</destName>
      </file>



On 07/06/2012 10:47 AM, Thanh Ha wrote:
Hi Everyone,

I went ahead and created Bug 384485 [1] to track this issue.

Thanh

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=384485

On 07/05/2012 12:51 PM, Andrew Ross wrote:
Hi Guys,

If this issue is still present, it's probably best that a bug be
raised so we don't lose track of it. I'm guessing this is a bug for
Tycho?

Andrew

On 07/03/2012 04:54 PM, Thanh Ha wrote:
Hi Igor,

I think I may have found a possible regression in Tycho 0.15.0 when
building eclipse-junit-tests. I thought I'd try upgrading the Tycho
version in the R3_platform-aggregator repository and discovered that
I am unable to successfully build eclipse-junit-tests module after
updating the Tycho version to 0.15.0 or 0.16.0-SNAPSHOT. Instead I
am running into the error below where it seems the file
"eclipse-junit-tests.zip" is missing from the target directory after
running the build. Building with Tycho 0.14.1 is successful.

Attached is a debug log capture of the eclipse-junit-tests build.
Can you confirm if this is indeed a bug (if so I can create a bug on
bugzilla)? or perhaps we need to modify eclipse-junit-tests when
using the newer Tycho release?

Thanks,


Thanh


[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:single
(make-assembly) on project eclipse-junit-tests: Failed to create
assembly: Error adding file to archive:
/home/user/Downloads/eclipse2/R3_platform-aggregator/TMP/eclipse-junit-tests/target/eclipse-junit-tests.zip
isn't a file. -> [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] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
[ERROR]   mvn <goals> -rf :eclipse-junit-tests



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev



_______________________________________________
cbi-dev mailing list
cbi-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cbi-dev




Back to the top