w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Failed to read artifact descriptor for artifact present in my localhost Nexus repo
Ah found the issue. I was using <repositories> tag. Using Maven 3 so I needed to add <pluginRepositories> tags to my pom to get this dependency <pluginRepositories> <repository> <id>public</id> <url>http://localhost:8081/nexus/content/groups/public</url> </repository> </pluginRepositories>

Categories : Maven

Packaging jar is invalid Aggregator project need pom as packaging
Maven requires the parent to be of packaging pom. You can make a pom project behave as if it were a jar project, by including a bunch of plugin executions and attaching them to their subsequent lifecycle phase. It's not a happy road. On the contrary, the following is. From an object oriented standpoint, what is it that you want? You have one object that is made up out of a bunch of other objects, right? In other words composition, as opposed to inheritance. Your final delivery is made up out of the other (jar) projects, i.e. the other projects are dependencies of the final delivery project. You will define the other projects each as dependency so that whomever uses your final delivery knows what (transitive) dependencies to get. Alternatively the final delivery jar could be packaged up

Categories : Java

Publishing in parallel for different WP versions vs publishing for different android versions
The Windows Phone and Android market do share some similarities when it comes to development and devices. As there are Android devices (either old or low end) that only run 2.2 or 2.3 and will never see 4.x and above, Windows Phone has many millions of devices that run WP7.5/7.8 that will never run 8.x. Making a decision as to which version of WP to support (or both) comes down to many factors, here are just a few... Does your target market still contain a large % of WP7 devices Does WP7 have all the features your app needs or do you need the newer APIs provided by WP8 (nearly all WP7 apps run on WP8)? Do you have the time/resources to make a WP7 and WP8 app (you can share resource between the two, so you’re not making two separate apps) Publishing When publishing apps, the Dev C

Categories : Android

Understanding .ear packaging
You can remove all maven meta-data from META-INF directory (like pom.xml and pom.properties). The main file in *.EAR (Enterprise archive) is application.xml (application server uses this file during deployment). Maven generates appication.xml file with maven-ear-plugin. So, all required data in *.EAR/META-INF: /META-INF/application.xml /META-INF/MANIFEST.MF all other data you can remove

Categories : Maven

packaging a COM addin for deployment
It seems that the installer has decided to reference my development binary and not the installed location. How can i change this value in the installer? If you believe it is the Installer responsible for the problem, check that CodeBase is not hardcoded to point to C:MyVS10Install. You should be able to see this in the Registry table of the msi database If it is hardcoded to point there, then try using [INSTALLDIR]My Install PathMyProjDLL.dll as the value

Categories : C#

packaging excel vba code
xla's are still available - at least in Excel 2010, and I imagine in 2013. An xla can be loaded manually, or can be put in a startup folder to be loaded automatically. You can password-protect a VBA project to make it more difficult (but not impossible) to edit and modify the code.

Categories : Excel

Packaging my project in Eclipse
Any time you run a program outside eclipse that changes any file within a project folder structure, the file changed is "out of sync". To bring things back in sync, right-click on the project in Package Explorer and choose "Refresh" (you can also select the project in Package Explorer and press F5). If your code is creating the database instead of using the one that is there, it suggests to me that your database location is set for your eclipse environment but not for the general case. For a java application, you have to know (or set) the "current directory" or "current folder" -- this is a folder that is the default for file operations, and from which relative file paths are set. If your current directory is "aaa", and you open a file or database at "bbb/ccc/ddd/database.db", then the

Categories : Java

Need help in packaging app using TideSDK on Windows
TideSDK currently supports bundled installation only, i.e. Package With Runtime Option within TideSDK Developer. You can also use commandline tool tidebuilder.py. The usage of the tool is documented: here The generated installer is created inside packages folder. You should be able to distribute the bundled msi installer for your application. Exact path particular to your current application: D:LABTideSDKTrialpackageswin32undleTrial.msi

Categories : Misc

How to set SIKULI_HOME env variable after jar packaging?
I don't know anything about sikuli, but you probably want to add Java and Sikuli to the path, and not replace the path with just these directories: SET PATH=%PATH%;C:JDK641.6.0.31.1in;C:Sikuli-IDE-1.0.0-Win64libs

Categories : Java

Duplicate files during packaging of an APK
this happened to me. I export jar from eclipse adt and I got the same error. I solved the problem by opening jar file with WinRAR and remove all folders except two folders: the META-INF and the package folder of classes in my case it was com folder. In my case this happened because of AndroidManifest.xml file inside jar. In your case this is because res/values/attrs.xml but might there are other conflicts and this file is the first conflict. I hope this helps.

Categories : Android

Packaging a Groovy application
The Gradle Cookbook shows how to make a "fat jar" from a groovy project: http://wiki.gradle.org/display/GRADLE/Cookbook#Cookbook-Creatingafatjar This bundles up all the dependencies, including groovy. The resulting jar file can be run on the command line like: java -jar myapp.jar

Categories : Groovy

MonoMac Packaging Error
As the exception states the pkg-config tool could not be found. It used to be copied into /usr/bin in older releases of Mono but was in conflict with other packages (e.g. macport) so it's not copied anymore. One way to fix this is to create a symlink (from /usr/bin/pkg-config) to the pkg-config tool shipped with Mono, under /Library/Frameworks/Mono.framework/...

Categories : Osx

SSLError in Requests when packaging as OS X .app
Requests uses a bundle of ceritificates to verify a servers identity. This bundle is kept (it has to be) in an independent file. Normally requests ships with its own bundle, but if packaged into a single file the bundle is lost. You can ship a new bundle alongside your app or let requests use the systemwide certificate. (I don't know, where OS X keeps this file, but on my linux box its /etc/ssl/certs/ca-certificates.crt) To see, where requests expects the file you can do this: import requests print(requests.certs.where()) To change the location, where requests looks for the bundle you can pass the verify-parameter with a string value: import requests requests.get("https://httpbin.org/", verify="path/to/your/bundle") If you don't want to pass the parameter every time, create a sessio

Categories : Python

How is a good packaging strategy in Android
You can import Classes from other packages, so you can split it up however you like. I always keep mine in MVC packages. But if you create a protectet Class or method it can only be used in the same packages.

Categories : Android

JavaFX Application Packaging example needed
I will assume that you are looking to build a Windows standalone application, so you will first need to install WiX to build the msi and Inno to build the exe. You will also need to have ant configured. This example assumes that your directory layout is as follows: +---classes +---dist +---lib where 'classes' contains the compiled .class files, and the resources that your application needs, 'lib' contains the dependencies jar files, and 'dist' is the target folder which wil contain the application jar file once packed. To pack the application create a build.xml file in the same directory containing: <project name="JavaFXSample" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant"> <target name="default"> <taskdef resource="com/sun

Categories : Java

TideSDK packaging on mac for windows or linux
The Service Platform described in above comment is the upcoming product TideKit (http://tidekit.com) It is a brand new product which is specifically designed with keeping interest of all developers in mind. Checkout the teaser video for TideKit at http://www.youtube.com/watch?v=aE7gN-d0GhU The registrations of TideKit are starting soon. Regarding your question from the log you have pasted you are trying to build a network installer. Currently only Bundled Installer (Package With Runtime) option is supported. You should be able to generate the installer using "Package with Runtime" option.

Categories : Windows

Deploy Mavenized EAR project without packaging to EAR
Michel, why don't you deploy your app from your IDE? I understand that it may take a bit more time to configure development environment, but it really worth the effort. I truly enjoy configuration: Eclipse + m2eclipse + Java EE server. Download Eclipse for Java EE developers, add plugin m2eclipse(included in Eclipse Juno), import your project as maven project, add application server to eclipse, and run your app on it. Application will be deployed on server by default as exploded archive in less than 10s, what should be huge improvement for you.

Categories : Performance

Packaging WAR with Java and Scala sources
Here is a cut down version of the pom I use for my multi-language projects. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.sksamuel</groupId> <artifactId>test</artifactId> <version>0.33-SNAPSHOT</version> <packaging>war</packaging> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <m

Categories : Scala

Maven war packaging of transitive modules
As you have it now, your "packager" POM is both an aggregator (since it has modules) and a parent (since all of the modules refer to it in their <parent> elements). Thus, the "packager" POM must have an explicit version, you may not use the ${project.version} placeholder. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>mine</groupId> <artifactId>my-webapp-packager</artifactId> <version>0.1-SNAPSHOT</version> <packaging>pom</packaging> <name>Webapp Packager

Categories : Maven

Execute a task in Maven before packaging
Try adding an execution id: <execution> <phase>generate-sources</phase> <id>my-generate-sources</id> <configuration> <tasks> <echo message="****** TEST *****" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> UPDATE I forgot the run goal, as Guillame said. Eclipse maven integration is one of the worse things I have ever seen. The way we were running it is exclusivley via maven command line, and that is what I would recommend. You can still run it from eclipse like this: create a new empty project create mvn-clean-package.launch file in it The file should look like this: <?xml version="1.0" encoding="UT

Categories : Eclipse

debian packaging - cmake project
dh command will automatically detect the buildsystem. I recommend you to check the man pages of dh. man dh You can try this code in your debian/rules file. #!/usr/bin/make -f %: dh $@ --sourcedirectory=src1 dh $@ --sourcedirectory=src2 Indent the dh lines with tabs, not with spaces because of makefile syntax.

Categories : Ubuntu

Project name different from artifact-Id
One way to rename the project is directly editing the .project file. This is a XML file located in the project folder with basic eclipse information about the project. Just change the node (it will only affect the project name in Eclipse)

Categories : Eclipse

"Copy" an artifact in Ivy
I don't think this is possible using ivy. Promoting builds is normally a feature supported by repository managers, rather than build clients. Nexus Pro has a staging suite and Artifactory supports similar features.

Categories : Ant

Use artifact outside of maven
Creating a script that makes a dependency:get call is probably going to be closest to your desired outcome. You can specify the destination of your downloaded jar this way. If you are looking for an easy way to share builds between people in/outside of your company then you can look into setting up some automated build software like Bamboo or something similar. A new build gets triggered any time a commit is made to the section where your project resides in whatever version control system you use. An artifact is then made available for each successful build and are available via Bamboo's web interface. Bamboo can be configured to run with your maven pom's. While they can bit a bit of pain to set up, going the automated build route will take a lot of the sting out of sharing your builds i

Categories : Maven

Packaging single Python module with dependencies
The simplest way I see often used is to put all your dependencies in a single file (usually named requirements.txt) and then you ask user to run the following command: pip install -r requirements.txt And here is an example for the content of the file (https://github.com/cenkalti/pypi-notifier/blob/master/requirements.txt): Flask==0.10.1 Flask-Cache==0.12 Flask-SQLAlchemy==1.0 Flask-Script==0.5.3 GitHub-Flask==0.3.4 Jinja2==2.7 MarkupSafe==0.18 SQLAlchemy==0.8.2 ...

Categories : Python

"Unknown packaging: eclipse-plugin" in Maven
The packaging type eclipse-plugin is defined by a Maven build extension called Tycho. In order to use Tycho's packaging types, you need to configure Tycho as a build extension: <build> <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-maven-plugin</artifactId> <version>${tycho-version}</version> <extensions>true</extensions> </plugin> </plugins> </build> Also, Tycho requires additional metadata files to be present, e.g. an OSGi manifest for eclipse-plugin modules. Another major difference of a Tycho project compared to a regular Maven project is that you have to configure the so-called target platform, e.g. by defining a repository with layout=p

Categories : Maven

Which maven packaging value to use for a pure documentation project?
I usually use the packaging pom for the documentation projects. This packaging type will not create any JAR. See more information about the lifecycle binding for pom.

Categories : Maven

updating Application Packaging Standard(APS) in plesk
Looks like your archive has root folder: /some_folder_name /some_folder_name/APP-META.xml /some_folder_name/ ... other files here ... whereas it should be in root of archive: /APP-META.xml /... other files here ...

Categories : Misc

Packaging an exe installer with command line switches
Start with WiX, http://wix.sourceforge.net/ , you need to learn it first, and then author your packaging using XML syntax, and then build your exe (self extractor) or MSI. MSIInstaller.exe comes with many options, and it does help you pass command line arguments to your installer package, which is the out put of your WiX authoring.

Categories : Windows

Sencha Touch 2 - Android Packaging errors
Following are steps to create Sencha android build: Create certificate using keytool command for signing android application: keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 it will create keystore for you. Open 'packager.json' file & make following changes: Give application id like bundle id eg: 'com.abcd.appname' change platform to 'Android' or 'AndroidEmulator' then give certification path: i.e. path to your newly created keystore. give your 'certificate alias' & 'certificate password'. give your android 'sdkPath' Also set 'androidAPILevel'. To find list of android api levels or targets, goto sdk-path/tools and hit ./android list target command Copy 'st-res' folder from your sencha cmd directory(

Categories : Android

Nexus: Could not find artifact
Most likely your local Maven repository has the fact that the component can not be found cached. You can force Maven to check for updates of snapshot versions and existence of previously not found version with the -U flag. So run mvn clean install -U Sometimes if thing are really weird it can help to completely delete the respective folder structure in your local repository. So in your example rm -rf ~/.m2/repository/com/shadow/

Categories : Maven

Maven - missing artifact
There are few common causes related to maven migration Your project consists of many internal dependencies (artifact created by yourself / colleagues) stored on your PC maven repository cache, as opposed in a shared internal repository. When you migrated into new PC it's no longer able to resolve these Your company has an internal maven repository (eg: nexus) and your project pom.xml isn't configured to search for this repository Your project is a multi module which aren't setup very neatly such that the topmost artifact in the dependecy map has to be installed first on your local repo before others can pull it Your new pc repository use different maven version / jdk version combinations Your pc local repo is normally located at ~/.m2/repository

Categories : Java

Nexus OSS api won't can't download zip artifact
The usage of LATEST is not really working well in Maven. You should split it up to find the latest version of the artifact in one request and then download the specific version found as the latest.

Categories : Maven

How to publish additional artifact with sbt (one-jar)
I have no experience with one-jar but here is an alternative : give sbt-assembly a try. Same principle but with an existing option to publish the jar.

Categories : Scala

HTML form gives odd artifact
Just viewed source of your page, there is simply some junk before textarea. I bet this is UFT8 BOM(special 3char sequence at beginning of utf8 encoded file). If page source comes from text file check if there is UTF8 BOM at file beginning and save file without a BOM.

Categories : HTML

Can't find artifact in SVN repository
Maven does not resolve dependencies from source repositories such as SVN. You need an artifact repository (there are both free and paid software that can provide this, or you can install your dependency to the local filesystem). If this is a non-public artifact, you should first install it to your local repository: mvn install:install-file -Dfile=path-to-file -DgroupId=group-id -DartifactId=artifact-id -Dversion=version -Dpackaging=packaging

Categories : Java

How to remove an artifact from publish
If you simply want to remove all the artifacts from the publish task then do it manually: packagedArtifacts := Map.empty Then call addArtifact with assembly Artifact: artifact in (Compile, assembly) ~= { art => art.copy(`classifier` = Some("assembly")) } Now if you call show packagedArtifacts, you'll see only assembly artifact

Categories : Scala

SAML Artifact Resolution
The artifact is for one time use. Make sure that you are not first sending i with Tomcat and the trying i with SOAP UI. Instead you must catch the Artifact resolve and stop it, then paste it into SOAP UI and send it.

Categories : Misc

Packaging python libraries with version-specific (2/3) code
distutils imports all modules to byte-compile them (i.e. create the pyc and maybe pyo files) at build time and/or install time. There is no option currently to have a module skipped. You could write your setup script so that a different sdist is generated for Python 2 and Python 3 (so for example somemodule2.py would not be included in the Python 3 sdist), but not all tools work well with different sdists, including PyPI. At the current time, I would try to make each module not raise a SyntaxError when imported by either Python 2 or 3. Or I would follow Martijn’s advice and write just one module, possibly using the six modules, if the end result is not too messy (I’ve seen really horrible 2-and-3 code so I don’t like that solution, but a big part of the community has chosen it be

Categories : Python

How to execute maven plugin before resources are filtered when using war packaging
If maven plug-ins are bound with same phase, then they executes in order of their listings within pom maven-resources-plugin is by default bounded to process-resources but it is declared in super pom and when you build, super pom, parent poms and current pom make up a single pom known as effective pom ( you can check your effective pom via mvn help:effective-pom) Now coming towards the solution, to change the order of execution of plugins. First add buildnumber-maven-plugin and bind it to process-resources Beneath buildnumber-maven-plugin add maven-resources-plugin and bind it to process-resources Now when you build both will be executed during process_resources phase but buildnumber-maven-plugin will be executed before maven-resources-plugin.

Categories : Maven



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.